[rubygem-text-format] Rebuilt for Ruby 1.9.3.

Bohuslav Kabrda bkabrda at fedoraproject.org
Mon Jan 30 14:01:38 UTC 2012


commit ee625a6e0e1468d9344a4dd13105d19ddffb15a7
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Jan 30 15:01:30 2012 +0100

    Rebuilt for Ruby 1.9.3.

 rubygem-text-format.spec |   64 ++++++++++++++++++++++++---------------------
 1 files changed, 34 insertions(+), 30 deletions(-)
---
diff --git a/rubygem-text-format.spec b/rubygem-text-format.spec
index a6c2268..9258f9d 100644
--- a/rubygem-text-format.spec
+++ b/rubygem-text-format.spec
@@ -1,26 +1,26 @@
 # Generated from text-format-1.0.0.gem by gem2rpm -*- rpm-spec -*-
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global gemname text-format
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global gem_name text-format
 
 Summary: Text::Format formats fixed-width text nicely
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
 Version: 1.0.0
-Release: 6%{?dist}
+Release: 7%{?dist}
 Group: Development/Languages
 License: Ruby
 URL: http://rubyforge.org/projects/text-format
-Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
 
 # text-hyphen currently has an ugly license situation
 # (not necessarily unacceptable for Fedora, but needs
 #  looking into, remove dependency for now)
 Patch0: remove-text-hyphen-dep.patch
 
-Requires: rubygems
-BuildRequires: rubygems
+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}
 
 %description
 Text::Format is provides the ability to nicely format fixed-width text with
@@ -31,22 +31,22 @@ hyphenate words when formatting.
 
 %prep
 %setup -q -c -T
-mkdir -p .%{gemdir}
-gem install --local --install-dir .%{gemdir} \
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
             -V \
             --force --rdoc %{SOURCE0}
 
-pushd .%{gemdir}
+pushd .%{gem_dir}
 %patch0 -p0
 
 %build
 
 %install
-mkdir -p %{buildroot}%{gemdir}
-cp -a .%{gemdir}/* %{buildroot}%{gemdir}
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
 
 # remove installer as its not needed
-pushd %{buildroot}%{geminstdir}
+pushd %{buildroot}%{gem_instdir}
 rm pre-setup.rb setup.rb metaconfig
 
 # remove dos end of line encoding
@@ -56,29 +56,33 @@ mv Rakefile.new Rakefile
 iconv -f iso8859-1 -t utf-8 README > README.conv && mv -f README.conv README
 
 popd
-pushd %{buildroot}%{gemdir}/specifications
-rm %{gemname}-%{version}.gemspec.orig
+pushd %{buildroot}%{gem_dir}/specifications
+rm %{gem_name}-%{version}.gemspec.orig
 
 %check
-pushd %{buildroot}%{geminstdir} 
-ruby tests/tc_*
+pushd %{buildroot}%{gem_instdir} 
+ruby -Ilib tests/tc_*
+popd
 
 %files
 %defattr(-, root, root, -)
-%dir %{geminstdir}
-%{geminstdir}/lib
-%doc %{gemdir}/doc/%{gemname}-%{version}
-%doc %{geminstdir}/README
-%doc %{geminstdir}/Changelog
-%doc %{geminstdir}/Install
-%doc %{geminstdir}/Rakefile
-%doc %{geminstdir}/ToDo
-%doc %{geminstdir}/tests
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%{gem_libdir}
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README
+%doc %{gem_instdir}/Changelog
+%doc %{gem_instdir}/Install
+%doc %{gem_instdir}/Rakefile
+%doc %{gem_instdir}/ToDo
+%doc %{gem_instdir}/tests
+%{gem_cache}
+%{gem_spec}
 
 
 %changelog
+* Mon Jan 30 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.0.0-7
+- Rebuilt for Ruby 1.9.3.
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list