Rebuilt for Ruby 1.9.3.

epel9
Bohuslav Kabrda 13 years ago
parent 707af3a35b
commit 64c45f6db6

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

Loading…
Cancel
Save