%global gem_name coderay Summary: Fast syntax highlighter engine for many programming languages Name: rubygem-%{gem_name} Version: 1.0.6 Release: 1%{?dist} Group: Development/Languages 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(rubygems) Requires: rubygem(term-ansicolor) BuildRequires: rubygems-devel BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description Coderay is a Ruby library for syntax highlighting. CodeRay is build to be easy to use and intuitive, but at the same time fully featured, complete, fast and efficient. %prep %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 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} %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 * Sun Apr 08 2012 Jan Klepek - 1.0.6-1 - Update to new version * Mon Feb 06 2012 Vít Ondruch - 1.0.4-3 - Rebuilt for Ruby 1.9.3. * Sat Jan 14 2012 Fedora Release Engineering - 1.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Nov 17 2011 Jan Klepek - 1.0.4-1 - new version * Sat Oct 15 2011 Jan Klepek - 1.0.0-1 - new version * Sat Jul 23 2011 Jan Klepek - 0.9.8-1 - new version * Thu Mar 10 2011 Jan Klepek - 0.9.7-1 - updated to 0.9.7 * Wed Feb 09 2011 Fedora Release Engineering - 0.8.312-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jul 26 2009 Fedora Release Engineering - 0.8.312-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 03 2009 Jan Klepek - 0.8.312-3 - correct directory ownership, fixed license * Wed Jun 24 2009 Jan Klepek - 0.8.312-2 - consistent macro usage, rewritten description, removed term-ansicolor during install * Sun Jun 14 2009 Jan Klepek - 0.8.312-1 - Initial package