Rebuilt for Ruby 1.9.3.

This commit is contained in:
Vít Ondruch 2012-02-06 13:51:01 +01:00
parent 6c15a85a77
commit 3fd4637108

View File

@ -1,23 +1,20 @@
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname coderay
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global gem_name coderay
Summary: Fast syntax highlighter engine for many programming languages
Name: rubygem-%{gemname}
Name: rubygem-%{gem_name}
Version: 1.0.4
Release: 2%{?dist}
Release: 3%{?dist}
Group: Development/Languages
License: LGPLv2+
URL: http://coderay.rubychan.de
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = 1.8
Requires: rubygems
Requires: ruby(abi) = 1.9.1
Requires: ruby(rubygems)
Requires: rubygem(term-ansicolor)
BuildRequires: rubygems
BuildRequires: rubygems-devel
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
Provides: rubygem(%{gem_name}) = %{version}
%description
Coderay is a Ruby library for syntax highlighting. CodeRay is build to be easy
@ -31,15 +28,15 @@ efficient.
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
gem install --local --install-dir %{buildroot}%{gemdir} \
mkdir -p %{buildroot}%{gem_dir}
gem install --local --install-dir %{buildroot}%{gem_dir} \
--force --rdoc %{SOURCE0}
mkdir -p %{buildroot}/%{_bindir}
mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gemdir}/bin
rm -rf %{buildroot}/%{geminstdir}/lib/term
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
find %{buildroot}/%{geminstdir}/bin -type f | xargs sed -i 's/\r//' $FILES
mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}%{gem_dir}/bin
rm -rf %{buildroot}/%{gem_libdir}/term
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
find %{buildroot}/%{gem_instdir}/bin -type f | xargs sed -i 's/\r//' $FILES
%clean
rm -rf %{buildroot}
@ -47,21 +44,24 @@ rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%{_bindir}/coderay
%dir %{geminstdir}/
%dir %{geminstdir}/lib
%dir %{geminstdir}/test
%{geminstdir}/test/*
%{geminstdir}/bin
%{geminstdir}/lib/[cC]*
%doc %{gemdir}/doc/%{gemname}-%{version}
%doc %{geminstdir}/LICENSE
%doc %{geminstdir}/Rakefile
%doc %{geminstdir}/README_INDEX.rdoc
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%dir %{gem_instdir}/
%dir %{gem_libdir}
%dir %{gem_instdir}/test
%{gem_instdir}/test/*
%{gem_instdir}/bin
%{gem_libdir}/[cC]*
%doc %{gem_docdir}
%doc %{gem_instdir}/LICENSE
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/README_INDEX.rdoc
%{gem_cache}
%{gem_spec}
%changelog
* Mon Feb 06 2012 Vít Ondruch <vondruch@redhat.com> - 1.0.4-3
- Rebuilt for Ruby 1.9.3.
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild