]> TLD Linux GIT Repositories - packages/rpm.git/blob - rpm-pkgconfig.patch
- modified to support rpm-tld-macros which replaced rpm-build-macros
[packages/rpm.git] / rpm-pkgconfig.patch
1 --- rpm-4.5/Makefile.am~        2008-06-10 01:48:59.000000000 +0300
2 +++ rpm-4.5/Makefile.am 2009-10-15 00:00:46.263391619 +0300
3 @@ -51,6 +51,15 @@
4  
5  noinst_HEADERS = build.h debug.h system.h
6  
7 +pkgconfigdir = $(libdir)/pkgconfig
8 +pkgconfig_DATA = rpm.pc
9 +rpm.pc: $(top_srcdir)/rpm.pc.in
10 +       @$(SED) \
11 +         -e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
12 +         < $(top_srcdir)/rpm.pc.in > rpm.pc.tmp \
13 +         && ( cd $(top_builddir) && ./config.status --file=${subdir}/rpm.pc:${subdir}/rpm.pc.tmp )
14 +EXTRA_DIST += rpm.pc.in
15 +
16  rpm_SOURCES =          $(top_srcdir)/build.c
17  rpm_LDFLAGS =          $(myLDFLAGS) $(staticLDFLAGS)
18  rpm_LDADD =            rpm.o $(top_builddir)/build/.libs/librpmbuild.a $(myLDADD)
19 --- /dev/null   2007-02-13 18:29:53.000000000 +0200
20 +++ rpm/rpm.pc.in       2009-10-14 23:59:01.260069165 +0300
21 @@ -0,0 +1,15 @@
22 +prefix=@prefix@
23 +exec_prefix=@exec_prefix@
24 +libdir=@libdir@
25 +includedir=@includedir@/rpm
26 +rpmhome=@RPMCONFIGDIR@
27 +
28 +Name: RPM
29 +Description: RPM Package Manager
30 +Version: @VERSION@
31 +URL: http://rpm5.org
32 +# Requires: 
33 +# Conflicts:
34 +Cflags: -I${includedir}
35 +Libs: -L${libdir} -lrpm -lrpmio
36 +Libs.private: -lpopt -lrt -lpthread @WITH_SELINUX_LIB@ @WITH_SQLITE3_LIB@ -ldb