0e085c0a83
This will grab libraries from ^Libs: clause and map each library to rpm dependency, which is typically lib*-devel package. $ grep ^Libs: /usr/lib/pkgconfig/directfb.pc Libs: -ldirectfb -lpthread -ldl -lz $ It works like this: $ ln -s pkgconfig.req.in scripts/pkgconfiglib.req.in $ scripts/pkgconfiglib.req.in -v /usr/lib/pkgconfig/directfb.pc pkgconfiglib.req.in: /usr/lib/pkgconfig/directfb.pc: libdirectfb.so -> libdirectfb-devel libdirectfb-devel pkgconfiglib.req.in: /usr/lib/pkgconfig/directfb.pc: libz.so -> zlib-devel zlib-devel pkgconfiglib.req.in: /usr/lib/pkgconfig/directfb.pc: libfusion.so -> libdirectfb-devel libdirectfb-devel pkgconfiglib.req.in: /usr/lib/pkgconfig/directfb.pc: libdirect.so -> libdirectfb-devel libdirectfb-devel pkgconfiglib.req.in: /usr/lib/pkgconfig/directfb.pc: libpthread.so -> glibc-devel (skip) pkgconfiglib.req.in: /usr/lib/pkgconfig/directfb.pc: libdl.so -> glibc-devel (skip) $ Some minor problems: $ scripts/pkgconfiglib.req.in /usr/lib/pkgconfig/*.pc >/dev/null pkgconfiglib.req.in: /usr/lib/pkgconfig/avahi-qt3.pc: cannot find libavahi-qt3.so library path (skip) pkgconfiglib.req.in: /usr/lib/pkgconfig/libgdiplus.pc: cannot find libexif.so library path (skip) pkgconfiglib.req.in: /usr/lib/pkgconfig/valgrind.pc: cannot find libcoregrind.so library path (skip) pkgconfiglib.req.in: /usr/lib/pkgconfig/valgrind.pc: cannot find libvex.so library path (skip) pkgconfiglib.req.in: /usr/lib/pkgconfig/valgrind.pc: cannot find libgcc.so library path (skip) $ |
||
---|---|---|
.. | ||
.cvsignore | ||
brp-adjust_libraries.in | ||
brp-alt.in | ||
brp-bytecompile_python.in | ||
brp-cleanup.in | ||
brp-compress.in | ||
brp-fix-perms.in | ||
brp-fixup.in | ||
brp-strip.in | ||
brp-verify_elf.in | ||
check-files.in | ||
compress_files.in | ||
convertrpmrc.sh | ||
cpanflute | ||
cpanflute2 | ||
cross-build | ||
delayed_rebuilddb | ||
files.req.files.in | ||
files.req.in | ||
files.req.list | ||
find-lang.in | ||
find-package.in | ||
find-prov.pl | ||
find-provides.perl | ||
find-req.pl | ||
find-requires.perl | ||
fixup-binconfig.in | ||
fixup-libraries | ||
fixup-libtool.in | ||
fixup-pkgconfig.in | ||
functions | ||
get_magic.pl | ||
getpo.sh | ||
http.req | ||
javadeps.c | ||
ldd.in | ||
lib.prov.files | ||
lib.prov.in | ||
lib.req.files | ||
lib.req.in | ||
magic.prov | ||
magic.req | ||
Makefile.am | ||
pam.prov.files | ||
pam.prov.in | ||
pam.req.files | ||
pam.req.in | ||
perl.prov | ||
perl.req | ||
pkgconfig.req.files | ||
pkgconfig.req.in | ||
rpm2cpio.sh | ||
rpm.daily | ||
rpm.log | ||
rpm.xinetd | ||
rpmdiff | ||
rpmdiff.cgi | ||
shebang.req.files | ||
shebang.req.in | ||
shell.prov.files | ||
shell.prov.in | ||
shell.req.files | ||
shell.req.in | ||
shlib.req.awk | ||
Specfile.pm | ||
sql.prov | ||
sql.req | ||
static.req.files | ||
static.req.in | ||
strip_files.in | ||
symlinks.req.files | ||
symlinks.req.in | ||
tcl.req | ||
trpm | ||
u_pkg.sh | ||
verify-elf.in | ||
vpkg-provides2.sh | ||
vpkg-provides.sh |