From 250b716f2ebaad75365c82a41519a194032b6304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Sun, 1 Apr 2018 14:35:12 +0200 Subject: [PATCH] Add patch for proper pkgconfig location --- ...clobber_pkgconfig-dir_from_configure.patch | 39 +++++++++++++++++++ libkcapi.spec | 6 +-- 2 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 libkcapi-1.0.3-Makefile_Do_not_clobber_pkgconfig-dir_from_configure.patch diff --git a/libkcapi-1.0.3-Makefile_Do_not_clobber_pkgconfig-dir_from_configure.patch b/libkcapi-1.0.3-Makefile_Do_not_clobber_pkgconfig-dir_from_configure.patch new file mode 100644 index 0000000..85764b1 --- /dev/null +++ b/libkcapi-1.0.3-Makefile_Do_not_clobber_pkgconfig-dir_from_configure.patch @@ -0,0 +1,39 @@ +From f2ea3459e4d9e2f989bbc5fa5045bdac1742af9b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= +Date: Sat, 31 Mar 2018 15:28:06 +0200 +Subject: [PATCH] Makefile: Do not clobber pkgconfig-dir from configure + +--- + Makefile.am | 2 +- + configure.ac | 5 +++++ + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 8e195b6..15eadb1 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -24,7 +24,7 @@ man_MANS = + + DOC_TARGETS = + +-pkgconfigdir=$(libdir)/pkgconfig ++pkgconfigdir = @pkgconfigdir@ + pkgconfig_DATA = libkcapi.pc + + if DISABLE_LIB_SYM +diff --git a/configure.ac b/configure.ac +index aa89eef..b9554d1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -122,6 +122,11 @@ if test "$with_lib_kpp" = "yes"; then + fi + + PKG_INSTALLDIR ++if test "x$pkgconfigdir" = "x"; then ++ pkgconfigdir = "${libdir}/pkgconfig" ++fi ++AC_SUBST([pkgconfigdir], [$pkgconfigdir]) ++ + AC_CONFIG_FILES([libkcapi.pc]) + + AC_OUTPUT diff --git a/libkcapi.spec b/libkcapi.spec index 48f51a1..d7bbb5b 100644 --- a/libkcapi.spec +++ b/libkcapi.spec @@ -88,6 +88,7 @@ Source0: http://www.chronox.de/%{name}/%{name}-%{version}.tar.xz Source1: http://www.chronox.de/%{name}/%{name}-%{version}.tar.xz.asc Patch0: %{giturl}/compare/v1.0.3...master.patch#/%{name}-1.0.3-to_master.patch +Patch1: %{giturl}/pull/48.patch#/%{name}-1.0.3-Makefile_Do_not_clobber_pkgconfig-dir_from_configure.patch BuildRequires: clang BuildRequires: coreutils @@ -312,10 +313,6 @@ EOF %{__rm} -f %{buildroot}%{_bindir}/sha*hmac %endif -# Move pkgconfig-dir to proper location. -%{__mkdir_p} %{buildroot}%{_libdir} -%{__mv} -f %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir} - # We don't ship autocrap dumplings. %{_bindir}/find %{buildroot} -type f -name '*.la' -print -delete @@ -431,7 +428,6 @@ popd %changelog * Sat Mar 31 2018 Björn Esser - 1.0.3-10 - Replace single patches with a monolitic one from upstream -- Move pkgconfig-dir to proper location - Obsolete replacements subpackage * Thu Mar 08 2018 Ondrej Mosnáček - 1.0.3-9