1 |
jquelin |
14433 |
# This spec is in the SVN |
2 |
|
|
# $Id: perl-RPM4.spec 141783 2007-03-12 14:05:45Z nanardon $ |
3 |
|
|
|
4 |
|
|
%define module RPM4 |
5 |
|
|
%define name perl-%{module} |
6 |
tv |
181577 |
%define version 0.25 |
7 |
tv |
182191 |
%define release %mkrel 3 |
8 |
jquelin |
14433 |
|
9 |
|
|
%define rpm_version %(rpm -q --queryformat '%|EPOCH?{[%{EPOCH}:%{VERSION}]}:{%{VERSION}}|' rpm) |
10 |
|
|
|
11 |
|
|
Name: %{name} |
12 |
|
|
Version: %{version} |
13 |
|
|
Release: %{release} |
14 |
|
|
Summary: Perl bindings to use rpmlib and manage hdlist files |
15 |
|
|
License: GPL |
16 |
|
|
Group: Development/Perl |
17 |
|
|
Source: %{module}-%{version}.tar.gz |
18 |
tv |
182199 |
# disable 3 tests with rpm-4.8: |
19 |
|
|
Patch0: RPM4-0.25-disable-more-tests.diff |
20 |
jquelin |
14433 |
Url: http://search.cpan.org/dist/RPM4/ |
21 |
sander85 |
104940 |
|
22 |
|
|
BuildRequires: perl-devel >= 5.8.0 |
23 |
|
|
BuildRequires: rpm-devel |
24 |
|
|
BuildRequires: perl-Digest-SHA1 |
25 |
|
|
BuildRequires: librpmconstant-devel |
26 |
|
|
BuildRequires: packdrake |
27 |
|
|
BuildRequires: perl-MDV-Packdrakeng |
28 |
|
|
BuildRequires: gnupg |
29 |
|
|
|
30 |
jquelin |
14433 |
Requires: perl |
31 |
|
|
# we can now expect librpm API to be at least backward compatible |
32 |
|
|
Requires: rpm >= %{rpm_version} |
33 |
|
|
|
34 |
|
|
%description |
35 |
|
|
This module provides a perl interface to the rpmlib. |
36 |
|
|
|
37 |
|
|
It allows to write scripts to: |
38 |
|
|
- query rpm headers, |
39 |
|
|
- query rpm database, |
40 |
|
|
- build rpm specs, |
41 |
|
|
- install/uninstall specfiles, |
42 |
|
|
- check dependencies. |
43 |
|
|
|
44 |
|
|
It include: |
45 |
|
|
- rpm_produced, give what rpm will be produced by a src.rpm or a specfile. |
46 |
|
|
|
47 |
|
|
%prep |
48 |
|
|
%setup -q -n %{module}-%{version} |
49 |
|
|
|
50 |
|
|
%build |
51 |
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor |
52 |
|
|
%make |
53 |
|
|
|
54 |
|
|
%check |
55 |
|
|
PERL5DIR=`pwd`/src/blib/arch TMPDIR=/tmp %make test |
56 |
|
|
|
57 |
|
|
%clean |
58 |
|
|
rm -rf $RPM_BUILD_ROOT |
59 |
|
|
|
60 |
|
|
%install |
61 |
|
|
rm -rf $RPM_BUILD_ROOT |
62 |
|
|
%makeinstall_std |
63 |
|
|
|
64 |
|
|
%files |
65 |
|
|
%defattr(-,root,root) |
66 |
tv |
165905 |
%doc README |
67 |
jquelin |
14433 |
%doc examples |
68 |
|
|
%_bindir/* |
69 |
|
|
%{perl_vendorarch}/* |
70 |
|
|
%{_mandir}/*/* |
71 |
|
|
|
72 |
|
|
|