[CentOS-devel] rubygems rpm spec file

Manuel Wolfshant wolfy at nobugconsulting.ro
Wed Nov 19 01:02:32 UTC 2008

On 11/18/2008 07:54 PM, Matt Rose wrote:
> Whoops, see comments in the previous email.  Attached is the updated spec
I've cleaned up a bit the spec, making it closer to the Fedora 
guidelines. It still has some errors because the list of files passed to 
% files includes the following files and directories which are already 
owned by other packages (and with no chance to be left unowned, should 
rubygems be uninstalled):
/usr/bin (owned by filesystem)
/usr/lib (owned by filesystem)
/usr/lib/ruby (owned by ruby-libs)
/usr/lib/ruby/site_ruby (owned by ruby-libs)
/usr/lib/ruby/site_ruby/1.8 (owned by ruby-libs)

And last but not least, I think that a %test section would be nice to be 
included. Unfortunately I know no ruby at all, so I cannot create this 
part of the spec for you. And I am to busy^H^H^H^Hlazy to read the docs now.

Hope this helps.
-------------- next part --------------
Summary: RubyGem
Name: rubygems
Version: 1.3.1
Release: 1
Requires: ruby-libs >= 1.8.5
Source0: http://rubyforge.org/frs/download.php/45905/%{name}-%{version}.tgz
License: Ruby or GPLv2+
URL: http://rubyforge.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: ruby >= 1.8.5
Group: Development/Tools

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

%setup -q

#nothing to build

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}
%doc ChangeLog GPL.txt LICENSE.txt README TODO doc/

* Tue Nov 18 2008 Matt Rose <real mail should be here but I did not fill it on purpose> 1.3.1-1
- First version

More information about the CentOS-devel mailing list