With epoch bump we can use upstream's version number again

This commit is contained in:
Paul Howarth 2017-06-02 11:36:57 +01:00
parent a3242ec8ad
commit 0e8f781327

View File

@ -1,4 +1,5 @@
# Need to stick with five digit version numbers until 3.x, to maintain upgrade path
# Need to provide five digit version numbers until 3.x,
# so that BR: perl(JSON::PP) >= 2.27200 etc. will still work
%global cpan_version 2.94
%global five_digit_version %(LC_ALL=C; printf '%.5f' '%{cpan_version}')
@ -6,8 +7,8 @@
%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e' 2>/dev/null || echo 0)
Name: perl-JSON-PP
Epoch: 1
Version: %{five_digit_version}
Epoch: 1
Version: %{cpan_version}
Release: 1%{?dist}
Summary: JSON::XS compatible pure-Perl module
License: GPL+ or Artistic