1 |
tv |
152850 |
Name: perl-RPM2 |
2 |
|
|
Version: 1.0 |
3 |
umeabot |
372184 |
Release: %mkrel 7 |
4 |
tv |
152850 |
Summary: Perl bindings for the RPM Package Manager API |
5 |
|
|
License: GPL+ or Artistic |
6 |
shlomif |
298689 |
Group: Development/Perl |
7 |
tv |
152850 |
URL: http://search.cpan.org/dist/RPM2/ |
8 |
|
|
Source0: http://www.cpan.org/authors/id/L/LK/LKUNDRAK/RPM2-%{version}.tar.gz |
9 |
|
|
Patch0: %{name}-1.0-testplan.patch |
10 |
tv |
260484 |
Patch1: %{name}-switchofffunctions.patch |
11 |
tv |
152853 |
BuildRequires: rpm-devel perl-devel |
12 |
tv |
152850 |
BuildRequires: perl(Module::Build) |
13 |
|
|
# Tests |
14 |
|
|
BuildRequires: perl(Test) |
15 |
|
|
BuildRequires: perl(POSIX) |
16 |
|
|
|
17 |
|
|
%description |
18 |
|
|
The RPM2 module provides an object-oriented interface to querying both the |
19 |
|
|
installed RPM database as well as files on the filesystem, providing Perl |
20 |
|
|
bindings for the RPM Package Manager API. |
21 |
|
|
|
22 |
|
|
%prep |
23 |
|
|
%setup -q -n RPM2-%{version} |
24 |
tv |
260500 |
%apply_patches |
25 |
tv |
152850 |
|
26 |
|
|
%build |
27 |
|
|
%{__perl} Build.PL installdirs=vendor |
28 |
|
|
./Build |
29 |
|
|
|
30 |
|
|
%install |
31 |
|
|
./Build install destdir=%{buildroot} create_packlist=0 |
32 |
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; |
33 |
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; |
34 |
|
|
|
35 |
|
|
%check |
36 |
|
|
#./Build test verbose=1 |
37 |
|
|
|
38 |
|
|
%files |
39 |
|
|
%doc Changes README |
40 |
|
|
%{perl_vendorarch}/auto/* |
41 |
|
|
%{perl_vendorarch}/RPM2* |
42 |
|
|
%{_mandir}/man3/* |
43 |
|
|
|