diff --git a/rubygem-thor.spec b/rubygem-thor.spec index b65b53b..bcf4215 100644 --- a/rubygem-thor.spec +++ b/rubygem-thor.spec @@ -1,18 +1,16 @@ # Generated from thor-0.12.0.gem by gem2rpm -*- rpm-spec -*- -%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) -%global gemname thor -%global geminstdir %{gemdir}/gems/%{gemname}-%{version} +%global gem_name thor -%global rubyabi 1.8 +%global rubyabi 1.9.1 Summary: Scripting framework that replaces rake, sake and rubigen -Name: rubygem-%{gemname} +Name: rubygem-%{gem_name} Version: 0.14.6 -Release: 3%{?dist} +Release: 4%{?dist} Group: Development/Languages License: MIT URL: http://github.com/wycats/thor -Source0: http://rubygems.org/download/%{gemname}-%{version}.gem +Source0: http://rubygems.org/download/%{gem_name}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: ruby(rubygems) Requires: ruby(abi) = %{rubyabi} @@ -20,13 +18,13 @@ Requires: rubygem(ruby2ruby) Requires: rubygem(ParseTree) Requires: rubygem(rake) Requires: rubygem(diff-lcs) -BuildRequires: ruby(rubygems) +BuildRequires: rubygems-devel BuildRequires: ruby(abi) = %{rubyabi} #BuildRequires(check): rubygem(rspec) # No rdoc or fakeweb gem packages yet #BuildRequires(check): rubygem(rake), rubygem(diff-lcs), rubygem(rdoc), rubygem(fakeweb) BuildArch: noarch -Provides: rubygem(%{gemname}) = %{version} +Provides: rubygem(%{gem_name}) = %{version} %description Thor is a scripting framework that replaces rake, sake and rubigen. @@ -44,24 +42,24 @@ This package contains documentation for %{name}. %setup -q -c -T %build -mkdir -p .%{gemdir} +mkdir -p .%{gem_dir} gem install -V \ --local \ - --install-dir $(pwd)/%{gemdir} \ + --install-dir $(pwd)/%{gem_dir} \ --force --rdoc \ %{SOURCE0} %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}/ mkdir -p %{buildroot}/%{_bindir} -mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} -rmdir %{buildroot}%{gemdir}/bin -find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x +mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir} +rmdir %{buildroot}%{gem_dir}/bin +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x -find %{buildroot}%{geminstdir}/bin -type f | \ +find %{buildroot}%{gem_instdir}/bin -type f | \ xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"' %clean @@ -71,34 +69,37 @@ rm -rf %{buildroot} # We'll also have to add a patch removing the simplecov # dependency until ruby 1.9 is in Fedora #%check -#pushd %{buildroot}%{geminstdir} +#pushd %{buildroot}%{gem_instdir} #rspec spec # Can't yet run %%check missing a couple dependencies #%check -#pushd .%{geminstdir} +#pushd .%{gem_instdir} #ruby -Ilib bin/thor :spec %files %defattr(-,root,root,-) %{_bindir}/thor %{_bindir}/rake2thor -%doc %{geminstdir}/CHANGELOG.rdoc -%doc %{geminstdir}/LICENSE -%doc %{geminstdir}/README.md -%dir %{geminstdir} -%{geminstdir}/bin -%{geminstdir}/lib -%{gemdir}/cache/%{gemname}-%{version}.gem -%{gemdir}/specifications/%{gemname}-%{version}.gemspec +%doc %{gem_instdir}/CHANGELOG.rdoc +%doc %{gem_instdir}/LICENSE +%doc %{gem_instdir}/README.md +%dir %{gem_instdir} +%{gem_instdir}/bin +%{gem_libdir} +%{gem_cache} +%{gem_spec} %files doc %defattr(-,root,root,-) -%{geminstdir}/Thorfile -%{geminstdir}/spec -%{gemdir}/doc/%{gemname}-%{version} +%{gem_instdir}/Thorfile +%{gem_instdir}/spec +%{gem_docdir} %changelog +* Mon Jan 30 2012 Bohuslav Kabrda - 0.14.6-4 +- Rebuilt for Ruby 1.9.3. + * Sat Jan 14 2012 Fedora Release Engineering - 0.14.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild