public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/cpanspec] epel10: Fix #739461 and #708377
Date: Wed, 21 Oct 2026 16:04:25 GMT [thread overview]
Message-ID: <179259866526.1.2062433338541867869.rpms-cpanspec-7435562649b2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cpanspec
Branch : epel10
Commit : 7435562649b27674c301c6d70c5815a1ce3d16c6
Author : Petr Šabata <contyk@redhat.com>
Date : 2014-11-06T15:46:57+01:00
Stats : +71/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/cpanspec/c/7435562649b27674c301c6d70c5815a1ce3d16c6?branch=epel10
Log:
Fix #739461 and #708377
Use %{optflags} instead of %{optimize} (#739461, b0bdaf23)
Strip META perl version BR (#708377, c4069558)
---
diff --git a/cpanspec-1.78-Change-optimize-to-optflags.patch b/cpanspec-1.78-Change-optimize-to-optflags.patch
new file mode 100644
index 0000000..cc726ba
--- /dev/null
+++ b/cpanspec-1.78-Change-optimize-to-optflags.patch
@@ -0,0 +1,29 @@
+From b0bdaf235941165e74d5db24a9f87fdb4bcf57ce Mon Sep 17 00:00:00 2001
+From: Gavin Carr <gavin@openfusion.com.au>
+Date: Tue, 8 Feb 2011 16:40:02 +0000
+Subject: [PATCH] Change %{optimize} to %{optflags}.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Šabata <contyk@redhat.com>
+---
+ cpanspec | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cpanspec b/cpanspec
+index 5eaa63d..7b697ff 100755
+--- a/cpanspec
++++ b/cpanspec
+@@ -265,7 +265,7 @@ my @MACROS = (
+
+ # 1 is for the macros.
+ {
+- 'optimize' => '%{optimize}',
++ 'optimize' => '%{optflags}',
+ 'buildroot' => '%{buildroot}',
+ },
+ );
+--
+1.9.3
+
diff --git a/cpanspec-1.78-Strip-any-version-comparison-operator-from-the-perl-BR.patch b/cpanspec-1.78-Strip-any-version-comparison-operator-from-the-perl-BR.patch
new file mode 100644
index 0000000..ece4ea2
--- /dev/null
+++ b/cpanspec-1.78-Strip-any-version-comparison-operator-from-the-perl-BR.patch
@@ -0,0 +1,33 @@
+From c406955800472398c0105c72f46ba5b73ade5597 Mon Sep 17 00:00:00 2001
+From: Dennis Kaarsemaker <dennis@kaarsemaker.net>
+Date: Fri, 19 Aug 2011 08:23:50 +0200
+Subject: [PATCH] Strip any version comparison operator from the 'perl' build
+ requirement
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Because cpanspec does things with the epoch, and already adds version
+comparison operators itself, they should be stripped from whatever
+META.yml specifies so cpanspec does not generate invalid spec files.
+
+Signed-off-by: Petr Šabata <contyk@redhat.com>
+---
+ cpanspec | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/cpanspec b/cpanspec
+index 8e9334a..f7fc1fc 100755
+--- a/cpanspec
++++ b/cpanspec
+@@ -1015,6 +1015,7 @@ END
+ }
+
+ if (defined($build_requires{perl})) {
++ $build_requires{perl} =~ s/^[<>=]+ *//;
+ printf $spec "%-16s%s >= %s\n", "BuildRequires:", "perl",
+ (($build_requires{perl} lt "5.6.0" ? "0:" : "1:")
+ . $build_requires{perl}) if $build_requires{perl};
+--
+1.9.3
+
diff --git a/cpanspec.spec b/cpanspec.spec
index ca9282e..12fd746 100644
--- a/cpanspec.spec
+++ b/cpanspec.spec
@@ -1,11 +1,13 @@
Name: cpanspec
Version: 1.78
-Release: 17%{?dist}
+Release: 18%{?dist}
Summary: RPM spec file generation utility
License: GPL+ or Artistic
Group: Development/Tools
URL: http://cpanspec.sourceforge.net/
Source0: http://sourceforge.net/downloads/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
+Patch0: %{name}-1.78-Change-optimize-to-optflags.patch
+Patch1: %{name}-1.78-Strip-any-version-comparison-operator-from-the-perl-BR.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Module::Build)
@@ -24,6 +26,8 @@ contained in the spec file is correct.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
%{__perl} Build.PL installdirs=vendor
@@ -53,6 +57,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/*
%changelog
+* Thu Nov 06 2014 Petr Šabata <contyk@redhat.com> - 1.78-18
+- Use %%{optflags} instead of %%{optimize} (#739461, b0bdaf23)
+- Strip META perl version BR (#708377, c4069558)
+
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.78-17
- Perl 5.20 rebuild
reply other threads:[~2026-10-21 16:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179259866526.1.2062433338541867869.rpms-cpanspec-7435562649b2@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox