[rubygem-shoulda] Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

Vít Ondruch vondruch at fedoraproject.org
Sun Mar 10 17:34:12 UTC 2013


commit e392241f66dd79edad5d35a0690d9fe0aae2acb7
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Mar 8 20:04:14 2013 +0100

    Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0

 rubygem-shoulda.spec |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/rubygem-shoulda.spec b/rubygem-shoulda.spec
index 3795d9b..bbe2fd5 100644
--- a/rubygem-shoulda.spec
+++ b/rubygem-shoulda.spec
@@ -4,7 +4,7 @@
 Summary: Making tests easy on the fingers and eyes
 Name: rubygem-%{gem_name}
 Version: 2.11.3
-Release: 6%{?dist}
+Release: 7%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://thoughtbot.com/community/
@@ -22,7 +22,7 @@ Source2:        rubygem-shoulda-init.rb
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: ruby(rubygems)
-Requires: ruby(abi) = 1.9.1
+Requires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: dos2unix
 BuildRequires: rubygem(cucumber)
@@ -47,17 +47,21 @@ Documentation for %{name}.
 
 
 %prep
+%setup -q -c -T
+%gem_install -n %{SOURCE0}
 
 %build
 
 %install
-rm -rf %{buildroot}
 mkdir -p %{buildroot}%{gem_dir}
-gem install --local --install-dir %{buildroot}%{gem_dir} \
-            --force --rdoc %{SOURCE0}
-mkdir -p %{buildroot}/%{_bindir}
-mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
-rmdir %{buildroot}%{gem_dir}/bin
+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
 
 # Notified upstream of lack of ability to run tests after running gem install 
@@ -116,6 +120,9 @@ popd
 
 
 %changelog
+* Fri Mar 08 2013 Vít Ondruch <vondruch at redhat.com> - 2.11.3-7
+- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.11.3-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list