4 |
%define module RPM4 |
%define module RPM4 |
5 |
%define name perl-%{module} |
%define name perl-%{module} |
6 |
%define version 0.23 |
%define version 0.23 |
7 |
%define release %mkrel 14 |
%define release %mkrel 15 |
8 |
|
|
9 |
%define rpm_version %(rpm -q --queryformat '%|EPOCH?{[%{EPOCH}:%{VERSION}]}:{%{VERSION}}|' rpm) |
%define rpm_version %(rpm -q --queryformat '%|EPOCH?{[%{EPOCH}:%{VERSION}]}:{%{VERSION}}|' rpm) |
10 |
|
|
17 |
Source: %{module}-%{version}.tar.gz |
Source: %{module}-%{version}.tar.gz |
18 |
Patch0: RPM4-fix-build-with-rpm46.patch |
Patch0: RPM4-fix-build-with-rpm46.patch |
19 |
Patch1: RPM4-0.23-rpm48.patch |
Patch1: RPM4-0.23-rpm48.patch |
20 |
|
# (tv) drop support for rpm-4.4.x (too much ifdef/else/endif spaghetti and already broken since rpm-4.6 & rpm-4.8 support patches) |
21 |
|
Patch2: RPM4-0.23-drop-support-for-rpm44.diff |
22 |
|
# (tv) declare 4.8.0 & 4.8.1 in order to make 4.9.x checks work: |
23 |
|
Patch3: RPM4-0.23-rpm48-bis.patch |
24 |
|
# (tv) initial rpm-4.9.x support: |
25 |
|
Patch4: RPM4-0.23-rpm49.patch |
26 |
Url: http://search.cpan.org/dist/RPM4/ |
Url: http://search.cpan.org/dist/RPM4/ |
27 |
|
|
28 |
BuildRequires: perl-devel >= 5.8.0 |
BuildRequires: perl-devel >= 5.8.0 |
54 |
%setup -q -n %{module}-%{version} |
%setup -q -n %{module}-%{version} |
55 |
%patch0 -p1 -b .rpm46 |
%patch0 -p1 -b .rpm46 |
56 |
%patch1 -p1 |
%patch1 -p1 |
57 |
|
%patch2 -p1 |
58 |
|
%patch3 -p1 |
59 |
|
%patch4 -p1 |
60 |
|
|
61 |
%build |
%build |
62 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
%{__perl} Makefile.PL INSTALLDIRS=vendor |