From 4f96d324b22c86eca7fa87c1ec53b8307272b9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Fri, 22 Jul 2016 08:23:42 +0200 Subject: Adjust RPM version detection to SRPM build root without perl
--- perl-Sub-Exporter.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-Sub-Exporter.spec b/perl-Sub-Exporter.spec index 4855543..ed027a5 100644 --- a/perl-Sub-Exporter.spec +++ b/perl-Sub-Exporter.spec @@ -3,11 +3,11 @@ %global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0) # Provides/Requires filtering is different from rpm 4.9 onwards -%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e') +%global rpm49 0%(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e') Name: perl-Sub-Exporter Version: 0.987 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Sophisticated exporter for custom-built routines License: GPL+ or Artistic Group: Development/Libraries @@ -111,6 +111,9 @@ rm -rf %{buildroot} %{_mandir}/man3/Sub::Exporter::Util.3* %changelog +* Fri Jul 22 2016 Petr Pisar <ppi...@redhat.com> - 0.987-10 +- Adjust RPM version detection to SRPM build root without perl + * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.987-9 - Perl 5.24 rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Sub-Exporter.git/commit/?h=master&id=4f96d324b22c86eca7fa87c1ec53b8307272b9f6 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org