public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cpanspec] epel10: Include a Module::Build::Tiny compatibility fix, ghpr#5
@ 2026-10-21 16:04 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-21 16:04 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/cpanspec
            Branch : epel10
            Commit : 468baec42e42583954f07d8c2ff63a443bb3245c
            Author : Petr Šabata <contyk@redhat.com>
            Date   : 2017-05-30T09:56:57+02:00
            Stats  : +39/-3 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/cpanspec/c/468baec42e42583954f07d8c2ff63a443bb3245c?branch=epel10

            Log:
            Include a Module::Build::Tiny compatibility fix, ghpr#5

Signed-off-by: Petr Šabata <contyk@redhat.com>

---
diff --git a/cpanspec-1.78-Fix-build-arguments-for-Build.PL-spec-conformance.patch b/cpanspec-1.78-Fix-build-arguments-for-Build.PL-spec-conformance.patch
new file mode 100644
index 0000000..93a80e7
--- /dev/null
+++ b/cpanspec-1.78-Fix-build-arguments-for-Build.PL-spec-conformance.patch
@@ -0,0 +1,32 @@
+From ce89117d8dc4ad7ef66b7f6e2b8579cefbd51643 Mon Sep 17 00:00:00 2001
+From: Leon Timmermans <fawaka@gmail.com>
+Date: Mon, 20 May 2013 15:08:38 +0200
+Subject: [PATCH] Fix build arguments for Build.PL spec conformance
+
+This makes it compatible with tools such as Module::Build::Tiny
+---
+ cpanspec | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/cpanspec b/cpanspec
+index 2f8377e..d972d1c 100755
+--- a/cpanspec
++++ b/cpanspec
+@@ -1214,7 +1214,7 @@ END
+ 
+     if ($usebuildpl) {
+         print $spec <<END;
+-\%{__perl} Build.PL installdirs=vendor@{[$noarch ? '' : qq{ optimize="$macro{optimize}"} ]}
++\%{__perl} Build.PL --installdirs=vendor@{[$noarch ? '' : qq{ --optimize="$macro{optimize}"} ]}
+ ./Build
+ END
+     } else {
+@@ -1240,7 +1240,7 @@ END
+ 
+     if ($usebuildpl) {
+         print $spec
+-            "./Build install destdir=$macro{buildroot} create_packlist=0\n";
++            "./Build install --destdir=$macro{buildroot} --create_packlist=0\n";
+     } else {
+         print $spec <<END;
+ make pure_install PERL_INSTALL_ROOT=$macro{buildroot}

diff --git a/cpanspec.spec b/cpanspec.spec
index 6c563da..3c23c8b 100644
--- a/cpanspec.spec
+++ b/cpanspec.spec
@@ -1,6 +1,6 @@
 Name:           cpanspec
 Version:        1.78
-Release:        26%{?dist}
+Release:        27%{?dist}
 Summary:        RPM spec file generation utility
 License:        GPL+ or Artistic
 Group:          Development/Tools
@@ -10,8 +10,8 @@ Patch0:         %{name}-1.78-Change-optimize-to-optflags.patch
 Patch1:         %{name}-1.78-Strip-any-version-comparison-operator-from-the-perl-BR.patch
 Patch2:         %{name}-1.78-Escape-slashes-in-filters.patch
 Patch3:         %{name}-1.78-Prefer-dnf-over-repoquery.patch
+Patch4:         %{name}-1.78-Fix-build-arguments-for-Build.PL-spec-conformance.patch
 BuildArch:      noarch
-BuildRequires:  coreutils
 BuildRequires:  findutils
 BuildRequires:  perl
 BuildRequires:  perl-generators
@@ -35,6 +35,7 @@ contained in the spec file is correct.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 perl Build.PL installdirs=vendor
@@ -42,7 +43,7 @@ perl Build.PL installdirs=vendor
 
 %install
 ./Build install destdir=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} +
+find %{buildroot} -type f -name .packlist -delete
 %{_fixperms} %{buildroot}/*
 
 %files
@@ -53,6 +54,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} +
 %{_mandir}/man1/*
 
 %changelog
+* Tue May 30 2017 Petr Šabata <contyk@redhat.com> - 1.78-27
+- Include a Module::Build::Tiny compatibility fix, ghpr#5
+
 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.78-26
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-21 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 16:04 [rpms/cpanspec] epel10: Include a Module::Build::Tiny compatibility fix, ghpr#5 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox