Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > by-pkgid > 83de3f7bde88fa5c40c8bec177b6f8d3 > files > 1

ruby-tar-0.1-3mdk.src.rpm

%define rname tar
%define name ruby-%{rname}
%define version 0.1
%define release %mkrel 3

Summary: Ruby implementation of the Unix 'tar' format
Name: %{name}
Version: %{version}
Release: %{release}
URL: http://ruby.jamisbuck.org/
Source0: %{rname}-%{version}.tar.bz2
License: GPL
Group: Development/Other
BuildRoot: %{_tmppath}/%{name}-buildroot
Requires: ruby >= 1.8
BuildRequires: ruby-devel
BuildArch: noarch 

%define ruby_libdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')
%define ruby_archdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')

%description
A pure Ruby implementation of the Unix 'tar' file format. It is a library
that allows you to easily read, write, and append to tar files, whether the
'tar' command exists on your system or not. Right now it handles archives
containing regular files very well--links, block devices, and so forth are
not handled yet.

%prep
%setup -q -n %{rname}-%{version} 

%build
ruby setup.rb config 
ruby setup.rb setup

%install
rm -rf %buildroot
ruby setup.rb install --prefix=%buildroot

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%{ruby_libdir}/*.rb
%doc LICENSE ChangeLog doc samples

%changelog
* Sat Nov 12 2005 Pascal Terjan <pterjan@mandriva.org> 0.1-3mdk
- fix lib64

* Fri Sep 02 2005 Pascal Terjan <pterjan@mandriva.org> 0.1-2mdk
- birthday rebuild
- mkrel

* Tue Aug 25 2004 Pascal Terjan <pterjan@mandrake.org> 0.1-1mdk 
- first mdk release