1 %define pkgname coderay
2 Summary: Fast syntax highlighter engine for many programming languages
7 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
8 # Source0-md5: 2e2619f9dc74f6443c80118c429752e1
9 Group: Development/Languages
10 URL: http://coderay.rubychan.de/
11 BuildRequires: rpm-rubyprov
12 BuildRequires: rpmbuild(macros) >= 1.656
13 BuildRequires: sed >= 4.0
14 %if %(locale -a | grep -q '^en_US$'; echo $?)
15 BuildRequires: glibc-localedb-all
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Coderay is a Ruby library for syntax highlighting. CodeRay is build to
22 be easy to use and intuitive, but at the same time fully featured,
23 complete, fast and efficient.
26 Summary: HTML documentation for %{pkgname}
27 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
29 Requires: ruby >= 1:1.8.7-4
32 HTML documentation for %{pkgname}.
34 %description rdoc -l pl.UTF-8
35 Dokumentacja w formacie HTML dla %{pkgname}.
38 Summary: ri documentation for %{pkgname}
39 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
44 ri documentation for %{pkgname}.
46 %description ri -l pl.UTF-8
47 Dokumentacji w formacie ri dla %{pkgname}.
50 %setup -q -n %{pkgname}-%{version}
51 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
56 # UTF8 locale needed for doc generation
57 export LC_ALL=en_US.UTF-8
60 rm -fr ri/{GZip,String}
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir},%{ruby_specdir},%{ruby_ridir},%{ruby_rdocdir}}
68 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
69 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
70 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
71 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
72 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc README_INDEX.rdoc
80 %attr(755,root,root) %{_bindir}/coderay
81 %{ruby_vendorlibdir}/coderay.rb
82 %{ruby_vendorlibdir}/coderay
83 %{ruby_specdir}/coderay-%{version}.gemspec
86 %defattr(644,root,root,755)
87 %{ruby_rdocdir}/%{name}-%{version}
90 %defattr(644,root,root,755)