Created
April 16, 2010 15:35
-
-
Save andreimaxim/368573 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary: RubyGems is the premier ruby packaging system | |
Name: rubygems | |
Version: 1.3.6 | |
Release: 1%{?dist} | |
License: Ruby | |
Group: Development/Libraries | |
URL: http://rubyforge.org/projects/rubygems/ | |
Source0: %{name}-%{version}.tgz | |
BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
BuildRequires: ruby >= 1.8.6 | |
Requires: ruby >= 1.8.6 | |
Provides: %{name} = %{version} | |
%description | |
RubyGems is the premier ruby packaging system | |
%prep | |
%setup -q -n %{name}-%{version} | |
%build | |
# nothing to build | |
%install | |
rm -rf %{buildroot} | |
ruby setup.rb --prefix=%{buildroot} | |
mkdir -p %{buildroot}%{_prefix}/bin | |
mv %{buildroot}/bin/gem %{buildroot}%{_prefix}/bin/ | |
mkdir -p %{buildroot}%{_libdir}/ruby/site_ruby/1.8 | |
mv %{buildroot}/lib/* %{buildroot}%{_libdir}/ruby/site_ruby/1.8 | |
%clean | |
rm -rf %{buildroot} | |
%files | |
%defattr(-,root,root,-) | |
%{_bindir}/gem | |
%{_libdir}/ruby/site_ruby/1.8/rubygems.rb | |
%{_libdir}/ruby/site_ruby/1.8/gauntlet_rubygems.rb | |
%{_libdir}/ruby/site_ruby/1.8/ubygems.rb | |
%{_libdir}/ruby/site_ruby/1.8/rbconfig/* | |
%{_libdir}/ruby/site_ruby/1.8/rubygems/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment