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

Dag Wieers dag at wieers.com
Wed Dec 20 15:21:59 CET 2006


On Wed, 20 Dec 2006, Dries Verachtert wrote:

> On Tuesday 19 December 2006 5:43 pm, Rex Dieter wrote:
> > $ 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
> 
> Hello,
> I've added something like that to the spec file. Thanks for the info!
> Dries

One important reason to not use sed -i, but perl -i instead is that RH7 
and EL2 do not have a capable sed :)

That's why I would refrain from using sed -i, especially for tools that we 
still support on EL2 and RH7.

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[all I want is a warm bed and a kind word and unlimited power]


More information about the packagers mailing list