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) $
57 lines
2.4 KiB
Makefile
57 lines
2.4 KiB
Makefile
# Makefile for rpm scripts.
|
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
|
|
|
EXTRA_DIST = \
|
|
brp-adjust_libraries brp-alt brp-bytecompile_python \
|
|
brp-cleanup brp-compress brp-fix-perms brp-fixup brp-strip brp-verify_elf \
|
|
compress_files check-files convertrpmrc.sh cross-build \
|
|
delayed_rebuilddb find-lang find-package find-prov.pl find-req.pl \
|
|
cpanflute cpanflute2 Specfile.pm find-provides.perl find-requires.perl \
|
|
fixup-binconfig fixup-pkgconfig fixup-libtool fixup-libraries \
|
|
get_magic.pl getpo.sh http.req \
|
|
files.req files.req.files files.req.list \
|
|
functions magic.prov magic.req \
|
|
ldd lib.req lib.req.files lib.prov lib.prov.files shlib.req.awk \
|
|
pam.req pam.req.files pam.prov pam.prov.files perl.prov perl.req \
|
|
pkgconfig.req pkgconfig.req.files \
|
|
rpmdiff rpmdiff.cgi rpm.daily rpm.log rpm.xinetd rpm2cpio.sh \
|
|
shebang.req shebang.req.files \
|
|
shell.req shell.req.files shell.prov shell.prov.files \
|
|
sql.prov sql.req strip_files \
|
|
static.req static.req.files \
|
|
symlinks.req symlinks.req.files \
|
|
tcl.req trpm u_pkg.sh verify-elf vpkg-provides.sh vpkg-provides2.sh
|
|
|
|
installprefix = $(DESTDIR)
|
|
|
|
all:
|
|
|
|
configdir = ${prefix}/lib/rpm
|
|
config_SCRIPTS = \
|
|
brp-adjust_libraries brp-alt brp-bytecompile_python \
|
|
brp-cleanup brp-compress brp-fix-perms brp-fixup brp-strip brp-verify_elf \
|
|
compress_files check-files convertrpmrc.sh cross-build \
|
|
delayed_rebuilddb find-lang find-package find-prov.pl find-req.pl \
|
|
cpanflute cpanflute2 Specfile.pm find-provides.perl find-requires.perl \
|
|
fixup-binconfig fixup-pkgconfig fixup-libtool fixup-libraries \
|
|
get_magic.pl getpo.sh http.req \
|
|
files.req files.req.files files.req.list \
|
|
functions magic.prov magic.req \
|
|
ldd lib.req lib.req.files lib.prov lib.prov.files shlib.req.awk \
|
|
pam.req pam.req.files pam.prov pam.prov.files perl.prov perl.req \
|
|
pkgconfig.req pkgconfig.req.files \
|
|
rpmdiff rpmdiff.cgi rpm.daily rpm.log rpm.xinetd rpm2cpio.sh \
|
|
shebang.req shebang.req.files \
|
|
shell.req shell.req.files shell.prov shell.prov.files \
|
|
sql.prov sql.req strip_files \
|
|
static.req static.req.files \
|
|
symlinks.req symlinks.req.files \
|
|
tcl.req trpm u_pkg.sh verify-elf vpkg-provides.sh vpkg-provides2.sh
|
|
|
|
install-data-local:
|
|
@LN_S@ pkgconfig.req $(DESTDIR)$(configdir)/pkgconfig.prov
|
|
@LN_S@ pkgconfig.req $(DESTDIR)$(configdir)/pkgconfiglib.req
|
|
@LN_S@ pkgconfig.req.files $(DESTDIR)$(configdir)/pkgconfig.prov.files
|
|
@LN_S@ pkgconfig.req.files $(DESTDIR)$(configdir)/pkgconfiglib.req.files
|