Summary: - Name: ruby- Version: - Release: 0.1 License: - (enter GPL/GPL v2/GPL v3+/LGPL/MIT/Ruby License/other license name here) Source0: http://rubyforge.org/frs/download.php/... # Source0-md5: - Group: Development/Languages URL: http://rubyforge.org/projects/.../ BuildRequires: rpmbuild(macros) >= 1.484 BuildRequires: ruby >= 1:1.8.6 BuildRequires: ruby-modules %{?ruby_mod_ver_requires_eq} #BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # nothing to be placed there. we're not noarch only because of ruby packaging %define _enable_debug_packages 0 %description ... %package rdoc Summary: Documentation files for ... Group: Documentation Requires: ruby >= 1:1.8.7-4 %description rdoc Documentation files for .... %prep %setup -q -n ...-%{version} # gem install %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz find -newer README -o -print | xargs touch --reference %{SOURCE0} cp /usr/share/setup.rb . # cleanup backups after patching find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f %build rdoc --ri --op ri lib rdoc --op rdoc lib rm -f ri/created.rid %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}} cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir} cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGELOG README %files rdoc %defattr(644,root,root,755) %{ruby_rdocdir}/%{name}-%{version} %{ruby_ridir}/...