Re: Using RPM to evaluate installed RPMS while building

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

 



working on openjade and some docbook stuff..

I have this in a %post for docbook-style-dsssl

%post
for centralized in /etc/sgml/*-docbook-*.cat
do /usr/bin/install-catalog --add $centralized /usr/share/sgml/openjade-%{openjadever}/catalog > /dev/null 2>/dev/null
/usr/bin/install-catalog --remove $centralized /usr/share/sgml/docbook/dsssl-stylesheets-*/catalog >/dev/null 2>/dev/null
/usr/bin/install-catalog --add $centralized /usr/share/sgml/docbook/dsssl-stylesheets-%{version}/catalog > /dev/null 2>/dev/null
done


openjade installs with its version on the path name... Am I better of patching so it is just openjade instead of openjade-1.2.3 ??

Mike

Matthew Miller wrote:

On Fri, Jul 02, 2004 at 10:05:50AM +1200, Michael Honeyfield wrote:


Example:
%define foobarver %(rpm -q foobar --qf '%{RPMTAG_VERSION}' | tail -1)
Is this the best way? Or should I query the app directly like:
foobar --version
and trim the out put?



Ideally, neither. :) What are you trying to do?






_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux