BR: pkgconfig(foo)

Elan Ruusamäe glen at pld-linux.org
Fri Dec 28 17:04:09 CET 2012


hi

what's the opinion of using (for example) "BR: 
pkgconfig(gsettings-desktop-schemas)" instead of
"BR gsettings-desktop-schemas-devel"

i find it pretty convinient to fill deps this way, as mostly 
configure.ac requires those pkg-config names, not exact (rpm)packages

as for example, a build requires -only- *icon-theme.pc, but the .pc 
could be in main package (gnome-icon-theme) or -devel package 
(mate-icon-theme-devel), filling pkgconfig dep gets exactly there what 
is wanted, not as filling package name into dep

the pkgconfig deps are even versioned properly (code versions, not rpm 
versions), so can fill versioned dependencies without thinking which 
epoch is accurate.

-- 
glen



More information about the pld-devel-en mailing list