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.
Summary: RubyGem Name: rubygems Version: 1.3.1 Release: 1 Requires: ruby-libs >= 1.8.5 Source0: http://rubyforge.org/frs/download.php/45905/%%7Bname%7D-%%7Bversion%7D.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
%description RubyGems is the Ruby standard for publishing and managing third party libraries
%prep %setup -q
%build #nothing to build
%install rm -rf $RPM_BUILD_ROOT ruby setup.rb --destdir $RPM_BUILD_ROOT/usr --no-rdoc --no-ri
cd $RPM_BUILD_ROOT 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}
%clean rm -rf $RPM_BUILD_ROOT
%files -f ../file.list.%{name} %doc ChangeLog GPL.txt LICENSE.txt README TODO doc/
%changelog * 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