Adjust RPM version detection to SRPM build root without perl

epel9
Petr Písař 9 years ago
parent f10fc023f5
commit 0aefdab056

@ -1,9 +1,9 @@
# 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-Declare-Constraints-Simple
Version: 0.03
Release: 27%{?dist}
Release: 28%{?dist}
Summary: Declarative Validation of Data Structures
License: GPL+ or Artistic
Group: Development/Libraries
@ -98,6 +98,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/Declare::Constraints::Simple::Result.3*
%changelog
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 0.03-28
- Adjust RPM version detection to SRPM build root without perl
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.03-27
- Perl 5.24 rebuild

Loading…
Cancel
Save