3 # MODULE_NAME with real module name
8 License: - (enter GPL/GPL v2/GPL v3+/LGPL/MIT/Ruby License/other license name here)
9 Source0: http://rubyforge.org/frs/download.php/18699/MODULE_NAME-%{version}.tgz
11 Group: Development/Languages
12 URL: http://rubyforge.org/projects/.../
13 BuildRequires: rpmbuild(macros) >= 1.484
14 BuildRequires: ruby >= 1:1.8.6
15 BuildRequires: ruby-modules
16 %{?ruby_mod_ver_requires_eq}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 # nothing to be placed there. we're not noarch only because of ruby packaging
21 %define _enable_debug_packages 0
27 Summary: Documentation files for MODULE_NAME
29 Requires: ruby >= 1:1.8.7-4
32 Documentation files for MODULE_NAME.
35 %setup -q -n MODULE_NAME-%{version}
38 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
39 find -newer README -o -print | xargs touch --reference %{SOURCE0}
41 cp /usr/share/setup.rb .
43 # cleanup backups after patching
44 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
49 # rm -rf ri/NOT_THIS_MODULE_RELATED_DIRS
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
55 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
56 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
57 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{ruby_rubylibdir}/MODULE_NAME.rb
66 %{ruby_rubylibdir}/MODULE_NAME
67 %attr(755,root,root) %{ruby_archdir}/MODULE_NAME_ext.so
70 %defattr(644,root,root,755)
71 %{ruby_rdocdir}/%{name}-%{version}
72 %{ruby_ridir}/MODULE_NAME