[rubygem-multimap] initial import of rubygem-multimap (#672136)

Mohammed Morsi mmorsi at fedoraproject.org
Wed Jan 26 18:02:56 UTC 2011


commit 0d1e29744becc40f90e1ba895453d982a1df2d03
Author: Mohammed Morsi <mmorsi at redhat.com>
Date:   Wed Jan 26 12:57:44 2011 -0500

    initial import of rubygem-multimap (#672136)

 .gitignore            |    1 +
 multimap-tests.tgz    |  Bin 0 -> 5011 bytes
 rubygem-multimap.spec |   93 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 4 files changed, 95 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1ff7cfe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+multimap-1.1.2.gem
diff --git a/multimap-tests.tgz b/multimap-tests.tgz
new file mode 100644
index 0000000..0a087b9
Binary files /dev/null and b/multimap-tests.tgz differ
diff --git a/rubygem-multimap.spec b/rubygem-multimap.spec
new file mode 100644
index 0000000..aee22c6
--- /dev/null
+++ b/rubygem-multimap.spec
@@ -0,0 +1,93 @@
+# Generated from multimap-1.1.2.gem by gem2rpm -*- rpm-spec -*-
+%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname multimap
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+%global rubyabi 1.8
+
+Summary: Ruby multimap implementation
+Name: rubygem-%{gemname}
+Version: 1.1.2
+Release: 2%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/josh/multimap
+
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+
+# Checkout the multimap test suite like so
+# git clone http://github.com/josh/multimap.git
+# cd multimap/
+# git checkout v1.1.2
+# tar czvf multimap-tests.tgz spec/
+Source1: multimap-tests.tgz
+
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygems
+BuildRequires: ruby-devel
+BuildRequires: rubygems
+BuildRequires(check): rubygem(rspec)
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Multimap includes a Ruby multimap implementation
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires:%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gemdir}
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+gem install --local --install-dir .%{gemdir} \
+            --force -V --rdoc %{SOURCE0}
+
+# move the tests into place
+tar xzvf %{SOURCE1} -C .%{geminstdir}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* %{buildroot}%{gemdir}
+
+mkdir -p %{buildroot}%{ruby_sitearch}
+mv %{buildroot}%{geminstdir}/ext/nested_multimap_ext.so %{buildroot}%{ruby_sitearch}
+rm -rf %{buildroot}%{geminstdir}/ext
+
+%clean
+
+%check
+pushd %{buildroot}%{geminstdir} 
+spec spec/
+
+%files
+%defattr(-, root, root, -)
+%{ruby_sitearch}/nested_multimap_ext.so
+%dir %{geminstdir}
+%{geminstdir}/lib
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/LICENSE
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%defattr(-, root, root, -)
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{geminstdir}/spec
+
+
+%changelog
+* Mon Jan 24 2011 Mo Morsi <mmorsi at redhat.com> - 1.1.2-2
+- split out docs subpackage
+- few small fixes for fedora compliance
+
+* Sun Jan 23 2011 Mo Morsi <mmorsi at redhat.com> - 1.1.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..9a2006b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+29ef53c0cc383548137ebbe2140487df  multimap-1.1.2.gem


More information about the scm-commits mailing list