]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- new macro: requires_releq (requires name = version-release)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 20 Feb 2002 15:03:33 +0000 (15:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.63

rpm.macros

index c4c5b061d17b9c10efd31c462e4baaedb51fd578..726aa8dc5c4057f1a4e5fa2f361b755e48696cae 100644 (file)
 # If non-empty "debug" macro defined, add "dbg" suffix to release number
 %_rpmfilename          %%{NAME}-%%{VERSION}-%%{RELEASE}%{?debug:dbg}.%%{ARCH}.rpm
 
+%requires_eq()  %(LC_ALL="C" rpm -q --queryformat 'Requires:%%{NAME} = %%{VERSION}-%%{RELEASE}' %1| grep -v "is not")
+
 #-----------------------------------------------------------------
 # find and gzip all files in %{_mandir} and %{infodir}
 #
This page took 0.033915 seconds and 4 git commands to generate.