Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a3fc185e789c07474d6fc4220fe252a7 > files > 3

perl-RPM-0.40-4mdk.src.rpm

%define name perl-RPM
%define real_name Perl-RPM
%define rversion 0.40
%define version 0.40
%define release 4mdk

Summary: Perl-RPM - Native bindings to the RPM Package Manager API for Perl.
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://www.cpan.org/modules/by-authors/id/RJRAY/%{real_name}-%{rversion}.tar.bz2
Patch0: Perl-RPM-0.40-64bit-fixes.patch.bz2
Url: http://www.blackperl.com/Perl-RPM/
License: GPL
Group: Development/Perl
BuildRequires: bzip2 popt-devel rpm-devel zlib-devel
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Requires: perl

%description
The Perl-RPM package is an attempt to provide Perl-level access to the complete
application programming interface that is a part of the RPM Package Manager
(RPM). Rather than have scripts rely on executing RPM commands and parse the
resultant output, this modules aims to provide Perl programmers the ability
to do anything that would otherwise have been done in C or C++.

The interface is being designed and laid out as a collection of classes, at
least some of which are also available as tied-hash implementations.

At this time, the interface only provides access to the database of installed
packages, and header data retrieval for RPM and SRPM files not yet installed.

%prep
%setup -q -n %{real_name}-%{rversion}
%patch0 -p1 -b .64bit-fixes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make OPTIMIZE="$RPM_OPT_FLAGS" 
make test

%install
rm -rf $RPM_BUILD_ROOT
make install PREFIX="$RPM_BUILD_ROOT/%{prefix}"

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README*
%{_bindir}/rpmprune
%{perl_vendorarch}/auto/RPM*
%{perl_vendorarch}/RPM*
%{_mandir}/*/*

%changelog
* Fri Feb 14 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.40-4mdk
- Ship with rpmprune
- Patch0: 64-bit fixes

* Mon Aug  5 2002 Pixel <pixel@mandrakesoft.com> 0.40-3mdk
- rebuild for perl thread-multi

* Tue Jul  9 2002 Pixel <pixel@mandrakesoft.com> 0.40-2mdk
- rebuild for perl 5.8.0

* Mon May 13 2002 Pixel <pixel@mandrakesoft.com> 0.40-1mdk
- new release

* Wed Mar 20 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.32-5mdk
- rebuild for rpmlib 4.0.4

* Wed Dec 12 2001 Pixel <pixel@mandrakesoft.com> 0.32-4mdk
- patch for upward-compatibility-for-unknown-tags (thanks to Troels Liebe Bentsen and Anton Berezin)

* Wed Jul 18 2001 Pixel <pixel@mandrakesoft.com> 0.32-3mdk
- rebuild for new rpm

* Wed Jun 20 2001 Pixel <pixel@mandrakesoft.com> 0.32-2mdk
- rebuild for new rpm
- fix build for rpm 4.0.3

* Wed May 16 2001 Pixel <pixel@mandrakesoft.com> 0.32-1mdk
- new version

* Sun Mar 11 2001 Pixel <pixel@mandrakesoft.com> 0.30-1mdk
- new version

* Wed Jan  3 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.29.2-3mdk
- Don't do make test on alpha.

* Fri Dec 15 2000 Pixel <pixel@mandrakesoft.com> 0.29.2-2mdk
- add "make test", make it work :)

* Thu Nov 16 2000 Pixel <pixel@mandrakesoft.com> 0.29.2-1mdk
- new version

* Thu Oct 19 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.29.1-2mdk
- rpmv4 aware.

* Sat Oct 14 2000 Pixel <pixel@mandrakesoft.com> 0.29.1-1mdk
- new version (0.291 that is)

* Tue Aug 22 2000 Pixel <pixel@mandrakesoft.com> 0.28-2mdk
- use %%{perl_vendorarch}

* Sun Aug 20 2000 Pixel <pixel@mandrakesoft.com> 0.28-1mdk
- new version

* Fri Aug 18 2000 Pixel <pixel@mandrakesoft.com> 0.27-2mdk
- rebuild with new clean_perl in spec-helper

* Tue Aug  8 2000 Pixel <pixel@mandrakesoft.com> 0.27-1mdk
- new version

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.26-2mdk
- automatically added BuildRequires

* Fri Jul 21 2000 Pixel <pixel@mandrakesoft.com> 0.26-1mdk
- new version, BM

* Sun Jul  9 2000 Pixel <pixel@mandrakesoft.com> 0.25-1mdk
- new version

* Tue Jul  4 2000 Pixel <pixel@mandrakesoft.com> 0.2-2mdk
- and RPM.pm to %%files (chmousux)

* Fri Jun 09 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.2-1mdk
- First Mandrake version.