[rubygem-rots/f19] initial package import (RHBZ #1027444)

Ken Dreyer ktdreyer at fedoraproject.org
Mon Nov 11 23:28:18 UTC 2013


commit 59b57092b2d02a102214784fdb9d610dd69dd2f8
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Mon Nov 11 16:24:27 2013 -0700

    initial package import (RHBZ #1027444)

 .gitignore        |    1 +
 rubygem-rots.spec |  116 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 118 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ffa0ac9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rots-0.2.1.gem
diff --git a/rubygem-rots.spec b/rubygem-rots.spec
new file mode 100644
index 0000000..25017aa
--- /dev/null
+++ b/rubygem-rots.spec
@@ -0,0 +1,116 @@
+%global gem_name rots
+
+%global commitdate 20131106
+%global commit babb5559aae8914556da528147b6649b9c48f48c
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: rubygem-%{gem_name}
+Version: 0.2.1
+Release: 3.%{commitdate}git%{shortcommit}%{?dist}
+Summary: OpenID server for testing OpenID client implementations
+Group: Development/Languages
+License: MIT
+URL: https://github.com/roman/rots
+# To obtain this gem:
+# git clone git://github.com/roman/rots.git
+# cd rots
+# git checkout babb5559aae8914556da528147b6649b9c48f48c
+# gem build rots.gemspec
+# mv rots-0.2.1.gem ..
+Source0: %{gem_name}-%{version}.gem
+Requires: ruby(release)
+Requires: ruby(rubygems)
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(rspec)
+BuildRequires: rubygem(rack)
+BuildRequires: rubygem(ruby-openid)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+# The ruby(release) package already provides a usable Ruby interpreter.
+# Filter the extra /usr/bin/ruby requirement here.
+%global __requires_exclude ^/usr/bin/ruby$
+
+%description
+Ruby OpenID Test Server (ROST) provides a basic OpenID server made in top of
+the Rack gem. With this small server, you can make dummy OpenID request for
+testing purposes, the success of the response will depend on a parameter
+given on the URL of the authentication request.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n  %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+# Fix shebang
+sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' bin/%{gem_name}
+
+# Fix for RSpec1
+sed -i -e '/require "spec"/d' spec/spec_helper.rb
+
+# Remove developer-only file.
+rm Rakefile
+sed -i "s|\"Rakefile\",||g" %{gem_name}.gemspec
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+%gem_install
+
+# Remove unnecessary gemspec
+rm -rf .%{gem_instdir}/%{gem_name}.gemspec
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+mkdir -p %{buildroot}%{_bindir}
+cp -pa .%{_bindir}/* \
+        %{buildroot}%{_bindir}/
+
+find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
+
+%check
+pushd .%{gem_instdir}
+  rspec -Ilib spec
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/README
+%{_bindir}/rots
+%{gem_instdir}/bin
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/AUTHORS
+%exclude %{gem_instdir}/Rakefile
+%exclude %{gem_instdir}/spec
+
+%changelog
+* Sat Nov 09 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.2.1-3.20131106gitbabb555
+- Adjust Description
+
+* Sat Nov 09 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.2.1-2.20131106gitbabb555
+- Adjust Summary and changelog
+
+* Wed Nov 06 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 0.2.1-1
+- Initial package, created with gem2rpm 0.9.2
diff --git a/sources b/sources
index e69de29..e52a71d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+270ffa55332e9a4060dc48224793878f  rots-0.2.1.gem


More information about the scm-commits mailing list