1 |
vip-ire |
1.1 |
Name: perl-RPM2 |
2 |
|
|
Version: 1.0 |
3 |
|
|
Release: 1%{?dist} |
4 |
|
|
Summary: Perl bindings for the RPM Package Manager API |
5 |
|
|
License: GPL+ or Artistic |
6 |
|
|
Group: Development/Libraries |
7 |
|
|
URL: http://search.cpan.org/dist/RPM2/ |
8 |
|
|
Source0: http://www.cpan.org/authors/id/L/LK/LKUNDRAK/RPM2-%{version}.tar.gz |
9 |
vip-ire |
1.2 |
Patch0: perl-RPM2-1.0-switchofffunctions.patch |
10 |
|
|
Patch1: perl-RPM2-1.0-60_tests.patch |
11 |
vip-ire |
1.1 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
12 |
|
|
BuildRequires: perl(ExtUtils::CBuilder) |
13 |
|
|
BuildRequires: perl(File::Spec) |
14 |
|
|
BuildRequires: perl(Module::Build) |
15 |
|
|
BuildRequires: rpm-devel |
16 |
|
|
Requires: perl(File::Spec) |
17 |
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
18 |
|
|
|
19 |
|
|
%description |
20 |
|
|
The RPM2 module provides an object-oriented interface to querying both the |
21 |
|
|
installed RPM database as well as files on the filesystem. |
22 |
|
|
|
23 |
|
|
%prep |
24 |
|
|
%setup -q -n RPM2-%{version} |
25 |
|
|
%patch0 -p1 |
26 |
|
|
%patch1 -p1 |
27 |
|
|
|
28 |
|
|
%build |
29 |
|
|
%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" |
30 |
|
|
./Build |
31 |
|
|
|
32 |
|
|
%install |
33 |
|
|
rm -rf $RPM_BUILD_ROOT |
34 |
|
|
|
35 |
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 |
36 |
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; |
37 |
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
38 |
|
|
|
39 |
|
|
%{_fixperms} $RPM_BUILD_ROOT/* |
40 |
|
|
|
41 |
|
|
%check |
42 |
|
|
./Build test verbose=1 |
43 |
|
|
|
44 |
|
|
%clean |
45 |
|
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
|
47 |
|
|
%files |
48 |
|
|
%defattr(-,root,root,-) |
49 |
|
|
%doc Changes hdlist-test.hdr META.yml README test-rpm-1.0-1.noarch.rpm test-rpm-1.0-1.src.rpm |
50 |
|
|
%{perl_vendorarch}/auto/* |
51 |
|
|
%{perl_vendorarch}/RPM2* |
52 |
|
|
%{_mandir}/man3/* |
53 |
|
|
|
54 |
|
|
%changelog |
55 |
|
|
* Thu Mar 17 2016 Daniel Berteaud <daniel@firewall-servuces.com> 1.0-1 |
56 |
|
|
- First build using cpanspec [SME: 9330] |