summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2011-06-15 17:27:29 +0200
committerVít Ondruch <vondruch@redhat.com>2011-10-12 15:18:33 +0200
commit934ae315a4e8f45a1849b2752ee3e3618e9992f3 (patch)
treeb80422a091f56e22f4fa77f934f259d4dfdf9003
parent6e74c6b5929f4038a6c7756fe3a989881be04519 (diff)
downloadrubygem-oauth-934ae315a4e8f45a1849b2752ee3e3618e9992f3.tar.gz
rubygem-oauth-934ae315a4e8f45a1849b2752ee3e3618e9992f3.tar.xz
rubygem-oauth-934ae315a4e8f45a1849b2752ee3e3618e9992f3.zip
Initial import (#713508).
-rw-r--r--.gitignore1
-rw-r--r--rubygem-oauth.spec114
-rw-r--r--sources1
3 files changed, 116 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d73955b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/oauth-0.4.4.gem
diff --git a/rubygem-oauth.spec b/rubygem-oauth.spec
new file mode 100644
index 0000000..9f3cfa2
--- /dev/null
+++ b/rubygem-oauth.spec
@@ -0,0 +1,114 @@
+# Generated from oauth-0.4.4.gem by gem2rpm -*- rpm-spec -*-
+%global gemname oauth
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+# Can be enabled if build system has connectivity into internet.
+# Unfortunatelly this is not the case of Koji atm.
+%global has_network_connectivity 0
+
+Summary: OAuth Core Ruby implementation
+Name: rubygem-%{gemname}
+Version: 0.4.4
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+URL: https://github.com/oauth/oauth-ruby
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+Requires: ruby
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems)
+BuildRequires: ruby
+BuildRequires: rubygem(mocha)
+BuildRequires: rubygem(typhoeus)
+BuildRequires: rubygem(curb)
+BuildRequires: rubygem(actionpack)
+BuildRequires: rubygem(actionpack)
+# Enable when available in Fedora.
+# BuildRequires: rubygem(em-http-request)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+This is a RubyGem for implementing both OAuth clients and servers
+in Ruby applications.
+
+See the OAuth specs http://oauth.net/core/1.0/
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+ --bindir .%{_bindir} \
+ --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* \
+ %{buildroot}%{gemdir}/
+
+mkdir -p %{buildroot}%{_bindir}
+cp -a .%{_bindir}/* \
+ %{buildroot}%{_bindir}/
+
+find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
+
+rm %{buildroot}%{geminstdir}/.gitignore
+chmod a-x %{buildroot}%{geminstdir}/examples/yql.rb
+
+%check
+pushd .%{geminstdir}
+# The following test fails due to Rails 3 incompatibility. Oauth my fail also,
+# but it seems that Rails 3 users don't care.
+# https://github.com/oauth/oauth-ruby/issues/13
+mv test/test_action_controller_request_proxy.rb test/test_action_controller_request_proxy.rb.disabled
+
+# Disable test which needs internet connectivity."
+%if 0%{?has_network_connectivity} < 1
+sed -i '207,+24d' test/test_net_http_client.rb
+%endif
+
+RUBYOPT="Ilib" ruby -e "Dir.glob('test/**/test_*.rb').each {|t| require t}"
+popd
+
+%files
+%dir %{geminstdir}
+%doc %{geminstdir}/LICENSE
+%{_bindir}/oauth
+%{geminstdir}/bin
+%{geminstdir}/lib
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{geminstdir}/HISTORY
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/TODO
+%{geminstdir}/Gemfile*
+%{geminstdir}/oauth.gemspec
+%{geminstdir}/Rakefile
+%doc %{geminstdir}/examples
+%{geminstdir}/tasks
+%{geminstdir}/test
+
+
+%changelog
+* Wed Jun 15 2011 Vít Ondruch <vondruch@redhat.com> - 0.4.4-1
+- Initial package
diff --git a/sources b/sources
index e69de29..9d0ac0c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7184bffb14ea556924d8b24078865d30 oauth-0.4.4.gem