3 |
|
|
4 |
%define module RPM4 |
%define module RPM4 |
5 |
%define name perl-%{module} |
%define name perl-%{module} |
6 |
%define version 0.23 |
%define version 0.24 |
7 |
%define release %mkrel 15 |
%define release %mkrel 0.1 |
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 |
|
|
15 |
License: GPL |
License: GPL |
16 |
Group: Development/Perl |
Group: Development/Perl |
17 |
Source: %{module}-%{version}.tar.gz |
Source: %{module}-%{version}.tar.gz |
|
Patch0: RPM4-fix-build-with-rpm46.patch |
|
|
Patch1: RPM4-0.23-rpm48.patch |
|
|
# (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) |
|
|
Patch2: RPM4-0.23-drop-support-for-rpm44.diff |
|
|
# (tv) declare 4.8.0 & 4.8.1 in order to make 4.9.x checks work: |
|
|
Patch3: RPM4-0.23-rpm48-bis.patch |
|
|
# (tv) initial rpm-4.9.x support: |
|
|
Patch4: RPM4-0.23-rpm49.patch |
|
18 |
Url: http://search.cpan.org/dist/RPM4/ |
Url: http://search.cpan.org/dist/RPM4/ |
19 |
|
|
20 |
BuildRequires: perl-devel >= 5.8.0 |
BuildRequires: perl-devel >= 5.8.0 |
44 |
|
|
45 |
%prep |
%prep |
46 |
%setup -q -n %{module}-%{version} |
%setup -q -n %{module}-%{version} |
|
%patch0 -p1 -b .rpm46 |
|
|
%patch1 -p1 |
|
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
|
%patch4 -p1 |
|
47 |
|
|
48 |
%build |
%build |
49 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
%{__perl} Makefile.PL INSTALLDIRS=vendor |