On Wed, Mar 30, 2005 at 08:43:38AM -0500, Matthias Clasen wrote: > .pc files contain dependencies, e.g. the gdk-pixbuf-2.0.pc file has the > line > > Requires: gobject-2.0,gmodule-no-export-2.0 > > which means you'll get errors from pgk-config if you try to use the gdk- > pixbuf-2.0.pc file without having glib-devel installed (which contains > the gobject-2.0.pc and gmodule-no-export-2.0.pc files). Since rpm does > not pick up these dependencies on its own, Wouldn't It Be Cool(tm) if rpm did pick these dependencies automatically? for i in $RPM_BUILD_DIR{%{_libdir},%{_datadir}}/pkgconfig/*.pc; do set -- $(sed -n 's/^Requires: //p' < "$i") for dep; do f=%{_libdir}/pkgconfig/$dep.pc [ -f "$f" ] && { rpm -qf "$f"; continue; } f=%{_datadir}/pkgconfig/$dep.pc [ -f "$f" ] && { rpm -qf "$f"; continue; } echo "pkg-config file $dep.pc not found" >&2 done done Anyone care to integrate the above into the RPM scripts? Mirek