rpm-build/scripts
Alexey Tourbin 0e085c0a83 pkgconfiglib.req: new pkgconfig.req mode (makes dependencies on Libs)
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)
$
2007-08-28 20:40:22 +04:00
..
.cvsignore re-added .lclintrc and .cvsignore files from CVS 2002-03-25 20:27:37 +00:00
brp-adjust_libraries.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
brp-alt.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
brp-bytecompile_python.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
brp-cleanup.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
brp-compress.in scripts/brp-compress.in: 2006-09-16 22:20:03 +00:00
brp-fix-perms.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
brp-fixup.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
brp-strip.in scripts/brp-compress.in: 2006-09-16 22:20:03 +00:00
brp-verify_elf.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
check-files.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
compress_files.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
convertrpmrc.sh added cvsid 2003-11-08 19:52:04 +00:00
cpanflute sync with rpm4 branch: s/redhat/altlinux/g 2002-03-25 21:48:59 +00:00
cpanflute2 sync with rpm4 branch: s/redhat/altlinux/g 2002-03-25 21:48:59 +00:00
cross-build sync with rpm4 branch: s/redhat/RPM/g 2002-03-25 21:50:17 +00:00
delayed_rebuilddb sync with rpm4 branch: added new files 2002-03-25 20:37:46 +00:00
files.req.files.in factored files.req 2007-03-12 15:05:18 +03:00
files.req.in factored files.req 2007-03-12 15:05:18 +03:00
files.req.list scripts/files.req.list: Add /etc/hooks 2007-03-27 22:36:28 +00:00
find-lang.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
find-package.in find-package (FindByPath): use CanonPath before contens_index search 2007-08-27 21:27:05 +04:00
find-prov.pl Initial revision 2002-03-25 20:16:26 +00:00
find-provides.perl Initial revision 2002-03-25 20:16:26 +00:00
find-req.pl Initial revision 2002-03-25 20:16:26 +00:00
find-requires.perl Initial revision 2002-03-25 20:16:26 +00:00
fixup-binconfig.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
fixup-libraries Removed cvsid tags. 2006-05-14 17:05:34 +04:00
fixup-libtool.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
fixup-pkgconfig.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
functions scripts/functions: CanonPath: new function (canonicalize each path component except for the last) 2007-08-27 21:00:00 +04:00
get_magic.pl Initial revision 2002-03-25 20:16:26 +00:00
getpo.sh Initial revision 2002-03-25 20:16:26 +00:00
http.req Initial revision 2002-03-25 20:16:26 +00:00
javadeps.c sync with rpm4 branch: added new files 2002-03-25 20:37:46 +00:00
ldd.in scripts/ldd.in: adapted for empty RPM_BUILD_ROOT 2007-03-11 15:00:32 +03:00
lib.prov.files factored lib.req and lib.prov 2007-03-11 15:00:33 +03:00
lib.prov.in factored lib.req and lib.prov 2007-03-11 15:00:33 +03:00
lib.req.files lib.req.files: added "executable not executable" warning 2007-03-12 15:06:08 +03:00
lib.req.in factored lib.req and lib.prov 2007-03-11 15:00:33 +03:00
magic.prov Initial revision 2002-03-25 20:16:26 +00:00
magic.req Initial revision 2002-03-25 20:16:26 +00:00
Makefile.am pkgconfiglib.req: new pkgconfig.req mode (makes dependencies on Libs) 2007-08-28 20:40:22 +04:00
pam.prov.files adapted pam.req and pam.prov 2007-03-12 15:06:07 +03:00
pam.prov.in adapted pam.req and pam.prov 2007-03-12 15:06:07 +03:00
pam.req.files adapted pam.req and pam.prov 2007-03-12 15:06:07 +03:00
pam.req.in adapted pam.req and pam.prov 2007-03-12 15:06:07 +03:00
perl.prov updated version from at@ 2003-09-12 16:27:18 +00:00
perl.req fix parser from perl maintainer 2003-09-22 13:56:20 +00:00
pkgconfig.req.files pkgconfig.req.files: check for *" text"* type 2007-08-28 18:29:27 +04:00
pkgconfig.req.in pkgconfiglib.req: new pkgconfig.req mode (makes dependencies on Libs) 2007-08-28 20:40:22 +04:00
rpm2cpio.sh Initial revision 2002-03-25 20:16:26 +00:00
rpm.daily sync with rpm4 branch 2002-03-25 21:51:30 +00:00
rpm.log Initial revision 2002-03-25 20:16:26 +00:00
rpm.xinetd Initial revision 2002-03-25 20:16:26 +00:00
rpmdiff Initial revision 2002-03-25 20:16:26 +00:00
rpmdiff.cgi Initial revision 2002-03-25 20:16:26 +00:00
shebang.req.files factored shebang.req 2007-03-11 15:00:24 +03:00
shebang.req.in factored shebang.req 2007-03-11 15:00:24 +03:00
shell.prov.files adapted shell.req and shell.prov 2007-03-11 15:00:23 +03:00
shell.prov.in adapted shell.req and shell.prov 2007-03-11 15:00:23 +03:00
shell.req.files adapted shell.req and shell.prov 2007-03-11 15:00:23 +03:00
shell.req.in shell.req: use "file -bL" 2007-08-28 02:12:58 +04:00
shlib.req.awk Add shlib.req.awk 2006-01-11 00:39:39 +00:00
Specfile.pm Initial revision 2002-03-25 20:16:26 +00:00
sql.prov Initial revision 2002-03-25 20:16:26 +00:00
sql.req Initial revision 2002-03-25 20:16:26 +00:00
static.req.files factored static.req 2007-03-11 15:00:35 +03:00
static.req.in factored static.req 2007-03-11 15:00:35 +03:00
strip_files.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
symlinks.req.files implemented symlinks.req 2007-03-12 15:06:09 +03:00
symlinks.req.in implemented symlinks.req 2007-03-12 15:06:09 +03:00
tcl.req fixed perl syntax 2003-09-22 13:54:41 +00:00
trpm Initial revision 2002-03-25 20:16:26 +00:00
u_pkg.sh Initial revision 2002-03-25 20:16:26 +00:00
verify-elf.in Removed cvsid tags. 2006-05-14 17:05:34 +04:00
vpkg-provides2.sh Initial revision 2002-03-25 20:16:26 +00:00
vpkg-provides.sh Initial revision 2002-03-25 20:16:26 +00:00