Fix versions in Perl module dependencies again

Perl module versions do not have anything like revisions. E.g.
perl(Locale::Maketext::Gettext) >= 1.27-1.2 is simply wrong and not
satisfied by any package because:

$ repoquery --repoid=rawhide --provides perl-Locale-Maketext-Gettext
perl(Locale::Maketext::Gettext) = 1.27
[...]

and

$ rpmdev-vercmp '1.27' '1.27-1.2'
1.27 < 1.27-1.2

It passes in koji just because of a bug in yum.
This commit is contained in:
Petr Písař 2014-04-30 09:21:19 +02:00
parent f53c47f1f3
commit 5d37a6fb1d
1 changed files with 6 additions and 3 deletions

View File

@ -22,7 +22,7 @@
Name: publican
Version: 4.2.6
Release: 0%{?dist}
Release: 1%{?dist}
Summary: Common files and scripts for publishing with DocBook XML
# For a breakdown of the licensing, refer to LICENSE
License: (GPLv2+ or Artistic) and CC0
@ -53,7 +53,7 @@ BuildRequires: perl(Archive::Tar) => 1.84
BuildRequires: perl(Archive::Zip)
# Not reall required, but sometimes koji pulls in a conflicting dep...
BuildRequires: perl(Compress::Zlib) => 2.030
BuildRequires: perl(Locale::Maketext::Gettext) >= 1.27-1.2
BuildRequires: perl(Locale::Maketext::Gettext) >= 1.27
BuildRequires: perl(Carp)
BuildRequires: perl(Config::Simple)
BuildRequires: perl(Cwd)
@ -115,7 +115,7 @@ BuildRequires: rpm-build libicu-devel
# Most of these are handled automatically
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Locale::Maketext::Gettext) >= 1.27-1.2
Requires: perl(Locale::Maketext::Gettext) >= 1.27
Requires: rpm-build
Requires: docbook-style-xsl >= 1.77.1
Requires: perl(XML::LibXML) >= 1.70
@ -340,6 +340,9 @@ rm -rf $RPM_BUILD_ROOT
%{wwwdir}/common-db5
%changelog
* Tue Feb 24 2015 Petr Pisar <ppisar@redhat.com> - 4.2.6-1
- Fix versions in Perl module dependencies again
* Tue Oct 21 2014 Jeff Fearn <jfearn@redhat.com> 4.2.6-0
- Fix External_Links translation not merging. BZ #1153911