Do not use perl to compute Provides version
Provides declaration must valid when building SRPM. There is no perl in the SRPM build root. This patch uses shell's printf command instead of perl.
This commit is contained in:
parent
3a1a59d662
commit
882228aaf5
@ -1,6 +1,6 @@
|
|||||||
Name: perl-CPAN-Meta-Requirements
|
Name: perl-CPAN-Meta-Requirements
|
||||||
Version: 2.140
|
Version: 2.140
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Set of version requirements for a CPAN dist
|
Summary: Set of version requirements for a CPAN dist
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -53,7 +53,7 @@ Requires: perl(version) >= 0.88
|
|||||||
Conflicts: perl-CPAN-Meta < 2.120921
|
Conflicts: perl-CPAN-Meta < 2.120921
|
||||||
|
|
||||||
# Had a six-digit version in a previous life
|
# Had a six-digit version in a previous life
|
||||||
%global six_digit_version %(echo %{version} | perl -p -e 's/(.*)/sprintf("%.6f", $1)/e')
|
%global six_digit_version %(LC_ALL=C; printf '%.6f' '%{version}')
|
||||||
|
|
||||||
# Provide the six-digit version of the module
|
# Provide the six-digit version of the module
|
||||||
%if "%{version}" != "%{six_digit_version}"
|
%if "%{version}" != "%{six_digit_version}"
|
||||||
@ -95,6 +95,9 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
|||||||
%{_mandir}/man3/CPAN::Meta::Requirements.3*
|
%{_mandir}/man3/CPAN::Meta::Requirements.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 2.140-5
|
||||||
|
- Do not use perl to compute Provides version
|
||||||
|
|
||||||
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-4
|
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.140-4
|
||||||
- Perl 5.24 re-rebuild of bootstrapped packages
|
- Perl 5.24 re-rebuild of bootstrapped packages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user