Detecting version in a SPEC file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

I'm refactoring a package (perl module) that needs to build on CentOS4/RHEL4 
and FC6/RHEL5.  This package depends on GnuPG, whose version changed from 
FC3 -> FC6.  The change from gpg 1.2 to gpg 1.4 actually means that the tests 
(%check) will fail unless I use a different set of test results for the two 
versions.

I would like to test (in a %if %endif block) which version of GnuPG is 
installed on the system.  I could run an "rpm --queryformat" command to get 
the version, but I was hoping that there is a better way, since rpmbuild 
already can check versions of installed packages for BuildRequires.
-- 
Lamont Peterson <lamont@xxxxxxxxxxxx>
Senior Instructor
Guru Labs, L.C. [ http://www.GuruLabs.com/ ]

NOTE:  All messages from this email address should be digitally signed with my
       0xDC0DD409 GPG key. It is available on the pgp.mit.edu keyserver as
       well as other keyservers that sync with MIT's.

Attachment: pgp2fWr3I2L3d.pgp
Description: PGP signature

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux