Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > c300f9dfd89802a065cfcf9e856ee749 > files > 1

ruby-RubyGems-0.9.0-3mdv2008.0.src.rpm

%define rname RubyGems
%define	oname	rubygems
%define	name	ruby-%{rname}

%define	version	0.9.0
%define	release	%mkrel 3

Summary:	Ruby package manager
Name:		%name
Version:	%version
Release:	%release
License:	GPL
Group:		Development/Ruby
URL: 		http://docs.rubygems.org/
Source0:	%{oname}-%{version}.tar.bz2
Patch0:		rubygems-0.8.11-post.patch
Patch1:		rubygems-0.9.0-gemsdir.patch
BuildArch:	noarch
BuildRequires:	ruby-devel
Requires:	ruby
Provides:	%{oname}
BuildRoot:	%{_tmppath}/%{name}-buildroot

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

%prep
%setup -q -n rubygems-%{version}
%patch0 -p1
%patch1 -p1 -b .gemsdir
ruby setup.rb config
ruby setup.rb setup

%install
rm -rf %buildroot
mkdir -p %buildroot%{ruby_gemdir}
ruby setup.rb install --prefix=%buildroot
DESTDIR=%buildroot ruby manual-post.rb

for f in `find %buildroot%{ruby_sitelibdir} -name \*.rb`
do
	if head -n1 "$f" | grep '^#!' >/dev/null;
	then
		sed -i 's|/usr/local/bin|/usr/bin|' "$f"
		chmod 0755 "$f"
	else
		chmod 0644 "$f"
	fi
done


%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc README*
%attr(755,root,root) %{_bindir}/*
%{ruby_sitelibdir}/*
%{ruby_gemdir}



%changelog
* Sat Apr 21 2007 Pascal Terjan <pterjan@mandriva.org> 0.9.0-3mdv2008.0
+ Revision: 16663
- Use Development/Ruby group
- Use std macros

  + Mandriva <devel@mandriva.com>


* Fri Aug 25 2006 Olivier Blin <blino@mandriva.com> 0.9.0-2mdv2007.0
- Patch1: fix ruby gems dir on x86_64 (and make the package really noarch)

* Fri Aug 25 2006 Pascal Terjan <pterjan@mandriva.org> 0.9.0-1mdv2007.0
- 0.9.0

* Mon Jul 18 2005 Pascal Terjan <pterjan@mandriva.org> 0.8.11-1mdk
- First Mandriva version