[CentOS-devel] rubygems rpm spec file

Matt Rose mrose at n-able.com
Tue Nov 18 17:54:03 UTC 2008

Skipped content of type multipart/alternative-------------- next part --------------
Summary: RubyGem
Name: rubygems
Version: 1.3.1
Release: 1
requires: ruby >= 1.8.5, ruby-libs >= 1.8.5
Source0: %{name}-%{version}.tgz
License: Ruby License/GPL
URL: http://rubyforge.org/frs/download.php/45905/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: ruby >= 1.8.5, ruby-libs >= 1.8.5
Group: Development/Tools

RubyGems is the Ruby standard for publishing and managing third party libraries

%setup -q

ruby setup.rb --destdir $RPM_BUILD_ROOT/usr --no-rdoc --no-ri

find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}

%files -f ../file.list.%{name}

More information about the CentOS-devel mailing list