5 License: - (enter GPL/GPL v2/GPL v3+/LGPL/MIT/Ruby License/other license name here)
6 Source0: http://rubyforge.org/frs/download.php/...
8 Group: Development/Languages
9 URL: http://rubyforge.org/projects/.../
10 BuildRequires: rpmbuild(macros) >= 1.484
11 BuildRequires: ruby >= 1:1.8.6
12 BuildRequires: ruby-modules
13 %{?ruby_mod_ver_requires_eq}
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 # nothing to be placed there. we're not noarch only because of ruby packaging
18 %define _enable_debug_packages 0
24 Summary: Documentation files for ...
26 Requires: ruby >= 1:1.8.7-4
29 Documentation files for ....
32 %setup -q -n ...-%{version}
35 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
36 find -newer README -o -print | xargs touch --reference %{SOURCE0}
38 cp /usr/share/setup.rb .
40 # cleanup backups after patching
41 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
51 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
52 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
53 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
63 %defattr(644,root,root,755)
64 %{ruby_rdocdir}/%{name}-%{version}