[packages/perl-rpm-packaging] Up to 1.3
arekm
arekm at pld-linux.org
Thu Oct 29 23:19:16 CET 2026
commit 22799737112da532ce5ee50da9cd9f9fb78861b2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 29 23:15:59 2026 +0100
Up to 1.3
Upstream now carries the --perln and ">=" fixes. perl.req also
recognises "use Foo();" and "use Foo" with arguments on the next line,
as Fedora perl-generators does.
fix-reverse-condition.patch | 11 -----------
perl-rpm-packaging-requires-ge.patch | 19 -------------------
perl-rpm-packaging-use-args.patch | 13 +++++++++++++
perl-rpm-packaging.spec | 10 ++++------
rpm-perl_req-INC_dirs.patch | 12 ++++++------
5 files changed, 23 insertions(+), 42 deletions(-)
---
diff --git a/perl-rpm-packaging.spec b/perl-rpm-packaging.spec
index 9532905..6787354 100644
--- a/perl-rpm-packaging.spec
+++ b/perl-rpm-packaging.spec
@@ -2,18 +2,17 @@ Summary: Additional utilities for checking Perl provides/requires in RPM package
Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
Name: perl-rpm-packaging
-Version: 1.1
-Release: 5
+Version: 1.3
+Release: 1
License: GPL v2
Group: Base
Source0: https://github.com/rpm-software-management/perl-rpm-packaging/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 7dfd1670fd1c3c002719b604bd2801e3
+# Source0-md5: 9f2e13ef7142b1a959dfcf8f2ae329a6
Source1: perl.prov
Patch0: rpm-perl-macros.patch
Patch1: rpm-perl-req-perlfile.patch
Patch2: rpm-perl_req-INC_dirs.patch
-Patch3: fix-reverse-condition.patch
-Patch4: %{name}-requires-ge.patch
+Patch3: %{name}-use-args.patch
URL: https://github.com/rpm-software-management/perl-rpm-packaging
BuildRequires: rpm-build >= 4.6
Requires: perl-Encode
@@ -44,7 +43,6 @@ pakietach RPM.
%patch -P1 -p1
%patch -P2 -p0
%patch -P3 -p1
-%patch -P4 -p1
install %{SOURCE1} scripts/perl.prov
diff --git a/fix-reverse-condition.patch b/fix-reverse-condition.patch
deleted file mode 100644
index 8a3e2c3..0000000
--- a/fix-reverse-condition.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- perl-rpm-packaging-1.1/scripts/perl.req~ 2025-02-05 19:40:44.000000000 +0100
-+++ perl-rpm-packaging-1.1/scripts/perl.req 2025-02-05 20:00:27.886663997 +0100
-@@ -87,7 +87,7 @@
- foreach my $module (sort grep length, keys %require) {
- if (length($require{$module}) == 0) {
- print "perl($module)\n";
-- print "perln($module)\n" if !$perln;
-+ print "perln($module)\n" if $perln;
- } else {
-
- # I am not using rpm3.0 so I do not want spaces around my
diff --git a/perl-rpm-packaging-requires-ge.patch b/perl-rpm-packaging-requires-ge.patch
deleted file mode 100644
index f4358b1..0000000
--- a/perl-rpm-packaging-requires-ge.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- perl-rpm-packaging-1.1/scripts/perl.req.orig 2025-04-11 17:39:49.058273534 +0200
-+++ perl-rpm-packaging-1.1/scripts/perl.req 2025-04-11 17:40:40.051330614 +0200
-@@ -98,13 +98,13 @@ foreach my $module (sort grep length, ke
- $v =~ s/^v//;
- if($normalversion)
- {
-- print "perl($module) = $normv\n";
-+ print "perl($module) >= $normv\n";
- }
- else
- {
-- print "perl($module) = $require{$module}\n";
-+ print "perl($module) >= $require{$module}\n";
- }
-- print "perln($module) = $normv\n" if $perln;
-+ print "perln($module) >= $normv\n" if $perln;
- }
- }
-
diff --git a/perl-rpm-packaging-use-args.patch b/perl-rpm-packaging-use-args.patch
new file mode 100644
index 0000000..d695522
--- /dev/null
+++ b/perl-rpm-packaging-use-args.patch
@@ -0,0 +1,13 @@
+# recognise "use Foo();" and "use Foo" with arguments on the next line;
+# same fix as Fedora perl-generators, https://github.com/jplesnik/generators
+--- perl-rpm-packaging-1.3/scripts/perl.req.orig
++++ perl-rpm-packaging-1.3/scripts/perl.req
+@@ -295,7 +295,7 @@
+ (m/^(\s*) # we hope the inclusion starts the line
+ (require|use)\s+(?!\{) # do not want 'do {' loops
+ # quotes around name are always legal
+- ['"]?([\w:\.\/]+?)['"]?[\t; ]
++ ['"]?([\w:\.\/]+?)['"]?(?:[\t;( ]|$)
+ # the syntax for 'use' allows version requirements
+ # the latter part is for "use base qw(Foo)" and friends special case
+ \s*($modver_re|(qw\s*[(\/'"]\s*|['"])[^)\/"'\$]*?\s*[)\/"'])?
diff --git a/rpm-perl_req-INC_dirs.patch b/rpm-perl_req-INC_dirs.patch
index 89b1075..c928894 100644
--- a/rpm-perl_req-INC_dirs.patch
+++ b/rpm-perl_req-INC_dirs.patch
@@ -1,6 +1,6 @@
---- scripts/perl.req~ 2004-04-16 13:27:10.000000000 +0200
-+++ scripts/perl.req 2004-04-26 23:54:42.128568344 +0200
-@@ -39,9 +39,18 @@
+--- scripts/perl.req~
++++ scripts/perl.req
+@@ -56,9 +56,18 @@
}
}
@@ -21,14 +21,14 @@
if (! m=(/(doc|man|info|usr/src)/|\.(so|ph|h|html|pod)$)=) {
process_file($_) if -f;
}
-@@ -53,7 +64,9 @@
+@@ -73,7 +82,9 @@
foreach $perlver (sort keys %perlreq) {
print "perl >= $perlver\n";
}
+-foreach $module (sort keys %require) {
+print "$_\n" for sort grep $inc{$_}, keys %inc;
+
--foreach $module (sort keys %require) {
+foreach my $module (sort grep length, keys %require) {
if (length($require{$module}) == 0) {
print "perl($module)\n";
- print "perln($module)\n" if !$perln;
+ print "perln($module)\n" if $perln;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-rpm-packaging.git/commitdiff/22799737112da532ce5ee50da9cd9f9fb78861b2
More information about the pld-cvs-commit
mailing list