[packagers] exiv2-0.12-1.el4.rf

Rex Dieter rdieter at math.unl.edu
Tue Dec 19 17:43:46 CET 2006


$ rpm -q exiv2-devel
exiv2-devel-0.12-1.el4.rf
$ pkg-config --modversion exiv2
Unknown keyword 'URL' in '/usr/lib/pkgconfig/exiv2.pc'

Here's the specfile hack I use in Extras' exiv2 packaging (in %prep 
section, after %setup):

# Hack for older pkgconfig that doesn't grok "URL:", like rhel4 -- Rex
%if "%(pkg-config --version 2>/dev/null ||: )"  < "0.16.0"
sed -i -e "s|^URL: |#URL: |" config/exiv2.pc.in
%endif


-- Rex


More information about the packagers mailing list