From 4583ab77e5af3f0da5b307a169d07b58dddf652f Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 12 Nov 2021 11:05:53 +0900 Subject: [PATCH] gpgme.pc: Fix library dependency and use of includedir, libdir. * src/gpgme.pc.in (Require): Move gpg-error, libassuan to... (Requires.private): ... here. (Cflags): Add -I${includedir}. (Libs): Add -L${libdir}. -- This will result better library dependency for applications using gpgme. It will break build of an application which directly uses gpg-error or libassuan without specifying them (which means, depending on redundant/wrong gpgme.pc). Signed-off-by: NIIBE Yutaka --- src/gpgme.pc.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpgme.pc.in b/src/gpgme.pc.in index be288b81..80d59de8 100644 --- a/src/gpgme.pc.in +++ b/src/gpgme.pc.in @@ -7,8 +7,8 @@ api_version=@GPGME_CONFIG_API_VERSION@ Name: gpgme Description: GnuPG Made Easy to access GnuPG -Requires: gpg-error, libassuan +Requires.private: gpg-error, libassuan Version: @PACKAGE_VERSION@ -Cflags: @GPGME_CONFIG_CFLAGS@ -Libs: @GPGME_CONFIG_LIBS@ +Cflags: -I${includedir} @GPGME_CONFIG_CFLAGS@ +Libs: -L${libdir} @GPGME_CONFIG_LIBS@ URL: https://www.gnupg.org/software/gpgme/index.html