Rebuilt for Ruby 1.9.3.

epel9
Vít Ondruch 13 years ago
parent f832dc28cf
commit 260c42f2a9

@ -1,27 +1,26 @@
%global gemname childprocess %global gem_name childprocess
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global rubyabi 1.9.1
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global rubyabi 1.8
Summary: A simple and reliable gem for controlling external programs Summary: A simple and reliable gem for controlling external programs
Name: rubygem-%{gemname} Name: rubygem-%{gem_name}
Version: 0.2.0 Version: 0.2.0
Release: 2%{?dist} Release: 3%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://github.com/jarib/childprocess URL: http://github.com/jarib/childprocess
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(abi) = %{rubyabi} Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems) Requires: ruby(rubygems)
Requires: ruby Requires: ruby
Requires: rubygem(ffi) => 1.0.6 Requires: rubygem(ffi) => 1.0.6
Requires: rubygem(ffi) < 1.1 Requires: rubygem(ffi) < 1.1
BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(rubygems) BuildRequires: rubygems-devel
BuildRequires: ruby BuildRequires: ruby
BuildRequires: rubygem(rspec-core)
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version} Provides: rubygem(%{gem_name}) = %{version}
%description %description
This gem aims at being a simple and reliable solution for controlling external This gem aims at being a simple and reliable solution for controlling external
@ -40,37 +39,45 @@ Documentation for %{name}
%prep %prep
%setup -q -c -T %setup -q -c -T
mkdir -p .%{gemdir} mkdir -p .%{gem_dir}
gem install --local --install-dir .%{gemdir} --force %{SOURCE0} gem install --local --install-dir .%{gem_dir} --force %{SOURCE0}
%build %build
%install %install
mkdir -p %{buildroot}%{gemdir} mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
rm -f %{buildroot}%{geminstdir}/.document %{buildroot}%{geminstdir}/.gitignore rm -f %{buildroot}%{gem_instdir}/.document %{buildroot}%{gem_instdir}/.gitignore
rm -f %{buildroot}%{geminstdir}/.rspec %{buildroot}%{geminstdir}/Rakefile rm -f %{buildroot}%{gem_instdir}/.rspec %{buildroot}%{gem_instdir}/Rakefile
rm -f %{buildroot}%{geminstdir}/childprocess.gemspec rm -f %{buildroot}%{gem_instdir}/childprocess.gemspec
rm -f %{buildroot}%{geminstdir}/Gemfile rm -f %{buildroot}%{gem_instdir}/Gemfile
chmod 644 %{buildroot}%{geminstdir}/lib/childprocess/jruby/process.rb chmod 644 %{buildroot}%{gem_libdir}/childprocess/jruby/process.rb
chmod 644 %{buildroot}%{geminstdir}/lib/childprocess/windows/process.rb chmod 644 %{buildroot}%{gem_libdir}/childprocess/windows/process.rb
chmod 644 %{buildroot}%{geminstdir}/spec/*.rb chmod 644 %{buildroot}%{gem_instdir}/spec/*.rb
%check
pushd .%{gem_instdir}
rspec spec
popd
%files %files
%dir %{geminstdir} %dir %{gem_instdir}
%doc %{geminstdir}/LICENSE %doc %{gem_instdir}/LICENSE
%doc %{geminstdir}/README.md %doc %{gem_instdir}/README.md
%{geminstdir}/lib %{gem_libdir}
%{gemdir}/cache/%{gemname}-%{version}.gem %{gem_cache}
%{gemdir}/specifications/%{gemname}-%{version}.gemspec %{gem_spec}
%files doc %files doc
%doc %{gemdir}/doc/%{gemname}-%{version} %doc %{gem_docdir}
%doc %{geminstdir}/spec %doc %{gem_instdir}/spec
%changelog %changelog
* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.2.0-3
- Rebuilt for Ruby 1.9.3.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

Loading…
Cancel
Save