Whoops, see comments in the previous email.* Attached is the updated
spec
Matt
Ralph Angenendt wrote:
Matt Rose wrote:
requires: ruby >= 1.8.5, ruby-libs >= 1.8.5
Are you sure about that? I only have
Requires: ruby(abi) = 1.8
in my spec (which is for 1.1.1 though)
Source0: %{name}-%{version}.tgz
License: GPL
I think naming both licenses is correct here:
License: Ruby License/GPL
BuildPreReq: ruby >= 1.8.5, ruby-libs >= 1.8.5
Hmmm. Why PreReq?
I have BuildRequires: ruby, ruby-irb, ruby-rdoc in my spec.
%description
Ruby Gems
RubyGems is the Ruby standard for publishing and managing third party
libraries.
Yours is a tad short
cd $RPM_BUILD_ROOT
rm -rf %{buildroot}
Hmmm. Either or, I think. Not both in one spec file
I also have a wad of rubygems which are packaged and should be published
somewhere (like a complete rails 2.1 environment, mod_passenger and other
stuff).
Cheers,
Ralph
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
%description
RubyGems is the Ruby standard for publishing and managing third party libraries
%prep
%setup -q
%install
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}
%files -f ../file.list.%{name}
%clean
rm -rf $RPM_BUILD_ROOT
_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel