[rubygem-atomic] Initial import (#960139).

Vít Ondruch vondruch at fedoraproject.org
Mon May 13 09:55:07 UTC 2013


commit 2cc9a98ef8bd6cb1436348c1e03ada6f2a2c9932
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Mon May 6 16:45:01 2013 +0200

    Initial import (#960139).

 rubygem-atomic.spec |   49 ++++++++++++++++++++++---------------------------
 sources             |    1 +
 2 files changed, 23 insertions(+), 27 deletions(-)
---
diff --git a/rubygem-atomic.spec b/rubygem-atomic.spec
index f7e1c87..5d563cc 100644
--- a/rubygem-atomic.spec
+++ b/rubygem-atomic.spec
@@ -6,7 +6,7 @@ Version: 1.1.8
 Release: 1%{?dist}
 Summary: An atomic reference implementation for JRuby, Rubinius, and MRI
 Group: Development/Languages
-License: Apache-2.0
+License: ASL 2.0
 URL: http://github.com/headius/ruby-atomic
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
 Requires: ruby(release)
@@ -14,22 +14,13 @@ Requires: ruby(rubygems)
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel 
 BuildRequires: ruby-devel 
+BuildRequires: rubygem(minitest)
 Provides: rubygem(%{gem_name}) = %{version}
 
+%{?rubygems_default_filter}
+
 %description
-= An atomic reference implementation for JRuby, Rubinius, and MRI.
-== Changes since 1.1.7
-* 0b1cd2d Add license to gemspec.
-* e8d43f1 Limit gem description to just commit log.
-* 6869b89 Version 1.1.8.
-* ed84820 Add numeric CAS logic for fallback, MRI, and Rubinius.
-* 40eca8e Make test work under 1.8-compat.
-* b6398e5 Add some missing license headers.
-* c291231 Allow forcing fallback impl.
-* 6c2ce92 Fix #21 by moving win32 CFLAGS tweak above other test compiles.
-* e59e92b Add CAS tests for more numeric types.
-* 0749145 Add pkg/ and *.gem to gitignore.
-* 073b4c1 Partial fix for numeric idempotence differences across Rubies.
+An atomic reference implementation for JRuby, Rubinius, and MRI.
 
 
 %package doc
@@ -42,19 +33,10 @@ BuildArch: noarch
 Documentation for %{name}
 
 %prep
-gem unpack %{SOURCE0}
-
-%setup -q -D -T -n  %{gem_name}-%{version}
-
-gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+%setup -q -c -T
+%gem_install -n %{SOURCE0}
 
 %build
-# Create the gem as gem install only works on a gem file
-gem build %{gem_name}.gemspec
-
-# %%gem_install compiles any C extensions and installs the gem into ./%gem_dir
-# by default, so that we can move it into the buildroot in %%install
-%gem_install
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
@@ -62,13 +44,21 @@ cp -pa .%{gem_dir}/* \
         %{buildroot}%{gem_dir}/
 
 mkdir -p %{buildroot}%{gem_extdir_mri}/lib
-# TODO: move the extensions
-mv %{buildroot}%{gem_instdir}/lib/shared_object.so %{buildroot}%{gem_extdir_mri}/lib/
+mv %{buildroot}%{gem_instdir}/lib/atomic_reference.so %{buildroot}%{gem_extdir_mri}/lib/
+
+# Remove useless shebangs.
+sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/examples/*.rb
 
+%check
+pushd .%{gem_instdir}
+testrb -Ilib test
+popd
 
 
 %files
 %dir %{gem_instdir}
+%exclude %{gem_instdir}/.*
+%doc %{gem_instdir}/LICENSE
 %{gem_libdir}
 %exclude %{gem_instdir}/ext
 %{gem_extdir_mri}
@@ -77,6 +67,11 @@ mv %{buildroot}%{gem_instdir}/lib/shared_object.so %{buildroot}%{gem_extdir_mri}
 
 %files doc
 %doc %{gem_docdir}
+%doc %{gem_instdir}/README.rdoc
+%{gem_instdir}/Rakefile
+%{gem_instdir}/%{gem_name}.gemspec
+%{gem_instdir}/examples
+%{gem_instdir}/test
 
 %changelog
 * Mon May 06 2013 Vít Ondruch <vondruch at redhat.com> - 1.1.8-1
diff --git a/sources b/sources
index e69de29..e8e1d44 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ca0cc70155d129cc58427645aa37156a  atomic-1.1.8.gem


More information about the scm-commits mailing list