[Fedora-packaging] disttag

Matthias Saou thias at spam.spam.spam.spam.spam.spam.spam.egg.and.spam.freshrpms.net
Fri Feb 25 10:42:27 UTC 2005


Tom 'spot' Callaway wrote :

> %disttaglong %{expand:%%(rpm -qi `rpm -qf /etc/redhat-release` |grep
> Version | cut -d ":" -f 2 | cut -d " " -f 2 | perl -pe 's/^\s+//')}

Hmm, haven't had enough coffee yet, but is the above just to get the
version of the package that contains the redhat-release file!? If so, what
about this instead :

%(rpm -qf --qf '%{version}' /etc/redhat-release)

I _must_ be missing something...

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 3 (Heidelberg) - Linux kernel 2.6.10-1.766_FC3.radeon
Load : 0.23 0.57 0.70




More information about the Fedora-packaging mailing list