diff --git a/rubygem-coderay.spec b/rubygem-coderay.spec index 8780da5..d24f693 100644 --- a/rubygem-coderay.spec +++ b/rubygem-coderay.spec @@ -9,7 +9,7 @@ License: LGPLv2+ URL: http://coderay.rubychan.de Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: ruby(abi) = 1.9.1 +Requires: ruby(release) Requires: ruby(rubygems) Requires: rubygem(term-ansicolor) BuildRequires: rubygems-devel @@ -23,26 +23,27 @@ efficient. %prep +%setup -q -c -T +%gem_install -n %{SOURCE0} %build %install -rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} -gem install --local --install-dir %{buildroot}%{gem_dir} \ - --force --rdoc %{SOURCE0} -mkdir -p %{buildroot}/%{_bindir} -mv %{buildroot}%{gem_dir}/bin/* %{buildroot}/%{_bindir} -rmdir %{buildroot}%{gem_dir}/bin +cp -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + + +mkdir -p %{buildroot}%{_bindir} +cp -pa .%{_bindir}/* \ + %{buildroot}%{_bindir}/ + 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} - %files -%defattr(-, root, root, -) %{_bindir}/coderay %dir %{gem_instdir}/ %dir %{gem_libdir} @@ -54,7 +55,7 @@ rm -rf %{buildroot} #%doc %{gem_instdir}/LICENSE %doc %{gem_instdir}/Rakefile %doc %{gem_instdir}/README_INDEX.rdoc -%{gem_cache} +%exclude %{gem_cache} %{gem_spec} @@ -64,6 +65,14 @@ rm -rf %{buildroot} * Sun Aug 19 2012 Jan Klepek - 1.0.7-1 - update to new version +* Sun Aug 04 2013 Fedora Release Engineering - 1.0.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Mar 05 2013 Vít Ondruch - 1.0.6-4 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 1.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild