]> git.pld-linux.org Git - packages/rpm.git/commit
- requires_eq, requires_eq_to now convert Requires to BuildRequires, making spec...
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 11 Feb 2009 19:39:45 +0000 (19:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
commit0761c5b33cd0897bb18f2bead637c6b821647b85
tree1426b554f1b9792c4280be3a93d815cde1845164
parent7f26883ca324ce29e49648934a462ba8ec3d871c
- requires_eq, requires_eq_to now convert Requires to BuildRequires, making spec syntax valid if packages are not present
- side effect is that requires_eq now accepts only one paramter, contrary to previous where it accepted long list.

The test results of the new macros:
$ rpm -q xulrunner zlib
package xulrunner is not installed
zlib-1.2.3-7.i686

$ rpm -E '%requires_eq'
ERROR
$ rpm -E '%requires_eq zlib'
Requires: zlib = 0:1.2.3
$ rpm -E '%requires_eq xulrunner'
BuildRequires: xulrunner
$ rpm -E '%requires_eq xulrunner zlib'
ERROR
$ rpm -E '%requires_eq_to'
ERROR
$ rpm -E '%requires_eq_to zlib'
ERROR
$ rpm -E '%requires_eq_to xulrunner zlib'
Requires: xulrunner = 0:1.2.3
$ rpm -E '%requires_eq_to xulrunner zlib zl'
ERROR
$ rpm -E '%requires_eq_to xulrunner xulrunner'
BuildRequires: xulrunner

Changed files:
    rpm.macros -> 1.503
rpm.macros
This page took 0.070692 seconds and 4 git commands to generate.