Blame SOURCES/popt-1.16-pkgconfig.patch

2fee6c
Patch by Robert Scheck <robert@fedoraproject.org> for popt <= 1.16 which changes
2fee6c
$(pkgconfigdir) on 64 bit systems from /usr/lib/pkgconfig to /usr/lib64/pkgconfig.
2fee6c
Using $(libdir)/pkgconfig rather $(prefix)/lib/pkgconfig seems to be common when
2fee6c
searching on the Internet. This patch however is not really compliant with Fedora
2fee6c
/%{_lib} vs. %{_libdir} handling before the UsrMove with Fedora 17. Alternatively
2fee6c
--with-pkgconfigdir or similar should be implemented.
2fee6c
2fee6c
This patch was proposed to upstream: http://rpm5.org/community/popt-devel/0265.html
2fee6c
2fee6c
--- popt-1.16/Makefile.in			2010-05-04 22:55:59.000000000 +0200
2fee6c
+++ popt-1.16/Makefile.in.pkgconfig		2013-11-24 15:06:43.000000000 +0100
2fee6c
@@ -370,7 +370,7 @@
2fee6c
 libpopt_la_SOURCES = popt.c poptparse.c poptconfig.c popthelp.c poptint.c
2fee6c
 libpopt_la_LDFLAGS = -no-undefined @LTLIBINTL@ @LTLIBICONV@ \
2fee6c
 	$(am__append_1)
2fee6c
-pkgconfigdir = $(prefix)/lib/pkgconfig
2fee6c
+pkgconfigdir = $(libdir)/pkgconfig
2fee6c
 pkgconfig_DATA = popt.pc
2fee6c
 man_MANS = popt.3
2fee6c
 BUILT_SOURCES = popt.pc # popt.lcd
2fee6c
--- popt-1.16/Makefile.am			2010-05-04 22:55:54.000000000 +0200
2fee6c
+++ popt-1.16/Makefile.am.pkgconfig		2013-11-24 15:02:21.000000000 +0100
2fee6c
@@ -47,7 +47,7 @@
2fee6c
 libpopt_la_SOURCES = popt.c poptparse.c poptconfig.c popthelp.c poptint.c
2fee6c
 libpopt_la_LDFLAGS = -no-undefined @LTLIBINTL@ @LTLIBICONV@
2fee6c
 
2fee6c
-pkgconfigdir = $(prefix)/lib/pkgconfig
2fee6c
+pkgconfigdir = $(libdir)/pkgconfig
2fee6c
 pkgconfig_DATA = popt.pc
2fee6c
 
2fee6c
 if HAVE_LD_VERSION_SCRIPT