[rubygem-plist] Rebuilt for Ruby 1.9.3.

Vít Ondruch vondruch at fedoraproject.org
Fri Feb 3 11:29:35 UTC 2012


commit 9604ea10a578b47c0c02f0adea30586cce15b4ed
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Fri Feb 3 12:29:28 2012 +0100

    Rebuilt for Ruby 1.9.3.

 rubygem-plist.spec |   56 ++++++++++++++++++++++++++-------------------------
 1 files changed, 29 insertions(+), 27 deletions(-)
---
diff --git a/rubygem-plist.spec b/rubygem-plist.spec
index f4c67de..3a25561 100644
--- a/rubygem-plist.spec
+++ b/rubygem-plist.spec
@@ -1,23 +1,21 @@
 # Generated from plist-3.1.0.gem by gem2rpm -*- rpm-spec -*-
 
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gemname plist
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global gem_name plist
 
 Summary: All-purpose Property List manipulation library
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
 Version: 3.1.0
-Release: 7%{?dist}
+Release: 8%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://plist.rubyforge.org
-Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
-Requires: ruby(abi) = 1.8
-Requires: rubygems
-BuildRequires: rubygems
-BuildRequires: rubygem(rake)
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(abi) = 1.9.1
+Requires: ruby(rubygems)
+BuildRequires: rubygems-devel
+BuildRequires: rubygem(minitest)
 BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
 
 # Mamoru Tasaka applied this patch during the review of this package.
 # 
@@ -50,12 +48,12 @@ This package contains Rakefile, test directory and documentation for
 
 %install
 rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gemdir}
-gem install -V --local --install-dir %{buildroot}%{gemdir} --rdoc %{SOURCE0}
-find %{buildroot}%{geminstdir}/lib -name *.rb -exec chmod 755 {} \;
+mkdir -p %{buildroot}%{gem_dir}
+gem install -V --local --install-dir %{buildroot}%{gem_dir} --rdoc %{SOURCE0}
+find %{buildroot}%{gem_libdir} -name *.rb -exec chmod 755 {} \;
 
 # Apply the patch which is needed that the tests successfully complete
-cd  %{buildroot}%{geminstdir}
+cd  %{buildroot}%{gem_instdir}
 patch -p0 < %{PATCH0}
 
 
@@ -64,32 +62,36 @@ rm -rf %{buildroot}
 
 
 %check
-pushd %{buildroot}%{geminstdir}
-rake test
+pushd %{buildroot}%{gem_instdir}
+testrb -Ilib test
+popd
 
 
 %files
 %defattr(-, root, root, -)
-%dir %{geminstdir}
-%doc %{geminstdir}/CHANGELOG
-%doc %{geminstdir}/LICENSE
-%doc %{geminstdir}/README.rdoc
-%{geminstdir}/lib
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%doc %{gem_instdir}/CHANGELOG
+%doc %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/README.rdoc
+%{gem_libdir}
+%{gem_cache}
+%{gem_spec}
 
 %files doc
 %defattr(-, root, root, -)
-%{geminstdir}/Rakefile
+%{gem_instdir}/Rakefile
 # mark this as documentation to get not
 #  W: no-documentation
 #  E: non-executable-script  (for *.rb files)
 # from rpmlint
-%doc %{geminstdir}/test
-%{gemdir}/doc/%{gemname}-%{version}
+%doc %{gem_instdir}/test
+%{gem_docdir}
 
 
 %changelog
+* Fri Feb 03 2012 Vít Ondruch <vondruch at redhat.com> - 3.1.0-8
+- Rebuilt for Ruby 1.9.3.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.1.0-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list