From e976bd35ee67f27478faa816a618bfa1757fc301 Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Tue, 31 Jan 2012 13:22:37 +0100 Subject: [PATCH] Rebuilt for Ruby 1.9.3. --- rubygem-mime-types.spec | 66 +++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/rubygem-mime-types.spec b/rubygem-mime-types.spec index 11bfbec..4c045c4 100644 --- a/rubygem-mime-types.spec +++ b/rubygem-mime-types.spec @@ -1,18 +1,16 @@ # Generated from mime-types-1.16.gem by gem2rpm -*- rpm-spec -*- -%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) -%global gemname mime-types -%global geminstdir %{gemdir}/gems/%{gemname}-%{version} +%global gem_name mime-types -%global rubyabi 1.8 +%global rubyabi 1.9.1 Summary: Return the MIME Content-Type for a given filename -Name: rubygem-%{gemname} +Name: rubygem-%{gem_name} Version: 1.16 -Release: 6%{?dist} +Release: 7%{?dist} Group: Development/Languages License: GPL+ or Ruby or Artistic URL: http://mime-types.rubyforge.org/ -Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem # Currently produces a "RCov is not available" warning and fails with newer rcov # installed. Reported upstream via # http://rubyforge.org/tracker/?func=detail&aid=27623&group_id=293&atid=1191 @@ -20,11 +18,11 @@ Patch0: mime-types-1.16-no_rcov.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: ruby(rubygems) Requires: ruby(abi) = %{rubyabi} -BuildRequires: ruby(rubygems) +BuildRequires: rubygems-devel BuildRequires: ruby(abi) = %{rubyabi} -BuildRequires: rubygem(hoe) +BuildRequires: rubygem(minitest) BuildArch: noarch -Provides: rubygem(%{gemname}) = %{version} +Provides: rubygem(%{gem_name}) = %{version} %description MIME::Types for Ruby manages a MIME Content-Type database that will return the @@ -47,55 +45,59 @@ This package contains documentation for %{name}. %prep %setup -q -c -T -mkdir -p .%{gemdir} +mkdir -p .%{gem_dir} gem install -V \ --local \ - --install-dir $(pwd)/%{gemdir} \ + --install-dir $(pwd)/%{gem_dir} \ --force --rdoc \ %{SOURCE0} -pushd .%{geminstdir} +pushd .%{gem_instdir} %patch0 -p1 %build %install rm -rf %{buildroot} -mkdir -p %{buildroot}%{gemdir} -cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ # These aren't executables -find %{buildroot}%{geminstdir}/{Rakefile,test} -type f | \ +find %{buildroot}%{gem_instdir}/{Rakefile,test} -type f | \ xargs -n 1 sed -i -e '/^#! \/usr\/bin\/env .*/d' %clean rm -rf %{buildroot} %check -pushd .%{geminstdir} -rake test +pushd .%{gem_instdir} +testrb -Ilib test/* +popd %files %defattr(-,root,root,-) -%doc %{geminstdir}/History.txt -%doc %{geminstdir}/Install.txt -%doc %{geminstdir}/Licence.txt -%doc %{geminstdir}/README.txt -%dir %{geminstdir} -%{geminstdir}/lib -%{gemdir}/cache/%{gemname}-%{version}.gem -%{gemdir}/specifications/%{gemname}-%{version}.gemspec +%doc %{gem_instdir}/History.txt +%doc %{gem_instdir}/Install.txt +%doc %{gem_instdir}/Licence.txt +%doc %{gem_instdir}/README.txt +%dir %{gem_instdir} +%{gem_libdir} +%{gem_cache} +%{gem_spec} %files doc %defattr(-,root,root,-) -%{geminstdir}/Rakefile -%{geminstdir}/setup.rb -%{geminstdir}/mime-types.gemspec -%{geminstdir}/Manifest.txt -%{geminstdir}/test -%{gemdir}/doc/%{gemname}-%{version} +%{gem_instdir}/Rakefile +%{gem_instdir}/setup.rb +%{gem_instdir}/mime-types.gemspec +%{gem_instdir}/Manifest.txt +%{gem_instdir}/test +%{gem_docdir} %changelog +* Tue Jan 31 2012 Bohuslav Kabrda - 1.16-7 +- Rebuilt for Ruby 1.9.3. + * Sat Jan 14 2012 Fedora Release Engineering - 1.16-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild