1 |
# 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 |
%define version 0.29 |
7 |
%define release %mkrel 1 |
8 |
|
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.xz |
18 |
Url: http://search.cpan.org/dist/RPM4/ |
19 |
|
20 |
BuildRequires: perl-devel >= 5.8.0 |
21 |
BuildRequires: rpm-devel |
22 |
BuildRequires: perl-Digest-SHA1 |
23 |
BuildRequires: librpmconstant-devel |
24 |
BuildRequires: packdrake |
25 |
BuildRequires: perl-MDV-Packdrakeng |
26 |
BuildRequires: gnupg |
27 |
|
28 |
# we can now expect librpm API to be at least backward compatible |
29 |
Requires: rpm >= %{rpm_version} |
30 |
|
31 |
%description |
32 |
This module provides a perl interface to the rpmlib. |
33 |
|
34 |
It allows to write scripts to: |
35 |
- query rpm headers, |
36 |
- query rpm database, |
37 |
- build rpm specs, |
38 |
- install/uninstall specfiles, |
39 |
- check dependencies. |
40 |
|
41 |
It includes: |
42 |
- rpm_produced, give what rpm will be produced by a src.rpm or a specfile. |
43 |
|
44 |
%prep |
45 |
%setup -q -n %{module}-%{version} |
46 |
|
47 |
%build |
48 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
49 |
%make |
50 |
|
51 |
%check |
52 |
PERL5DIR=`pwd`/src/blib/arch TMPDIR=/tmp %make test |
53 |
|
54 |
%clean |
55 |
rm -rf $RPM_BUILD_ROOT |
56 |
|
57 |
%install |
58 |
rm -rf $RPM_BUILD_ROOT |
59 |
%makeinstall_std |
60 |
|
61 |
%files |
62 |
%defattr(-,root,root) |
63 |
%doc README |
64 |
%doc examples |
65 |
%_bindir/* |
66 |
%{perl_vendorarch}/* |
67 |
%{_mandir}/*/* |
68 |
|
69 |
|