2009-07-16 12:54:11 +00:00
|
|
|
%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}
|
|
|
|
|
|
|
|
Summary: Fast syntax highlighter engine for many programming languages
|
|
|
|
Name: rubygem-%{gemname}
|
2011-10-15 10:27:18 +00:00
|
|
|
Version: 1.0.0
|
2011-03-10 12:35:38 +00:00
|
|
|
Release: 1%{?dist}
|
2009-07-16 12:54:11 +00:00
|
|
|
Group: Development/Languages
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://coderay.rubychan.de
|
|
|
|
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
Requires: rubygems
|
|
|
|
Requires: rubygem(term-ansicolor)
|
|
|
|
BuildRequires: rubygems
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gemname}) = %{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}%{gemdir}
|
|
|
|
gem install --local --install-dir %{buildroot}%{gemdir} \
|
|
|
|
--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
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%{_bindir}/coderay
|
|
|
|
%dir %{geminstdir}/
|
|
|
|
%dir %{geminstdir}/lib
|
2011-03-10 12:35:38 +00:00
|
|
|
%dir %{geminstdir}/test
|
|
|
|
%{geminstdir}/test/*
|
2009-07-16 12:54:11 +00:00
|
|
|
%{geminstdir}/bin
|
|
|
|
%{geminstdir}/lib/[cC]*
|
|
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
%doc %{geminstdir}/LICENSE
|
2011-03-10 12:35:38 +00:00
|
|
|
%doc %{geminstdir}/Rakefile
|
2011-10-15 10:27:18 +00:00
|
|
|
%doc %{geminstdir}/README_INDEX.rdoc
|
2009-07-16 12:54:11 +00:00
|
|
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-10-15 10:27:18 +00:00
|
|
|
* Sat Oct 15 2011 Jan Klepek <jan.klepek at, gmail.com> - 1.0.0-1
|
|
|
|
- new version
|
|
|
|
|
2011-07-23 09:03:17 +00:00
|
|
|
* Sat Jul 23 2011 Jan Klepek <jan.klepek at, gmail.com> - 0.9.8-1
|
|
|
|
- new version
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Thu Mar 10 2011 Jan Klepek <jan.klepek at, gmail.com> - 0.9.7-1
|
|
|
|
- updated to 0.9.7
|
|
|
|
|
2011-02-09 09:36:01 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.312-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-07-27 03:27:23 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.312-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Fri Jul 03 2009 Jan Klepek <jan.klepekat, gmail.com> - 0.8.312-3
|
2009-07-16 12:54:11 +00:00
|
|
|
- correct directory ownership, fixed license
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Wed Jun 24 2009 Jan Klepek <jan.klepekat, gmail.com> - 0.8.312-2
|
2009-07-16 12:54:11 +00:00
|
|
|
- consistent macro usage, rewritten description, removed term-ansicolor during install
|
|
|
|
|
2011-03-10 12:35:38 +00:00
|
|
|
* Sun Jun 14 2009 Jan Klepek <jan.klepekat, gmail.com> - 0.8.312-1
|
2009-07-16 12:54:11 +00:00
|
|
|
- Initial package
|