add includedir to pkg-config --cflags (#1742986)

This commit is contained in:
Tomas Mraz 2019-08-19 10:33:32 +02:00
parent 4d1b03295c
commit b8f2f6fa87
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -up libassuan-2.5.3/src/libassuan.pc.in.includedir libassuan-2.5.3/src/libassuan.pc.in
--- libassuan-2.5.3/src/libassuan.pc.in.includedir 2018-10-25 11:20:28.000000000 +0200
+++ libassuan-2.5.3/src/libassuan.pc.in 2019-08-19 10:29:10.536279378 +0200
@@ -9,6 +9,6 @@ Name: libassuan
Description: IPC library for the GnuPG components
Requires: gpg-error
Version: @PACKAGE_VERSION@
-Cflags: @LIBASSUAN_CONFIG_CFLAGS@
+Cflags: @LIBASSUAN_CONFIG_CFLAGS@ -I${includedir}
Libs: @LIBASSUAN_CONFIG_LIBS@
URL: https://www.gnupg.org/related_software/libassuan/index.html

View File

@ -1,7 +1,7 @@
Name: libassuan Name: libassuan
Summary: GnuPG IPC library Summary: GnuPG IPC library
Version: 2.5.3 Version: 2.5.3
Release: 1%{?dist} Release: 2%{?dist}
# The library is LGPLv2+, the documentation GPLv3+ # The library is LGPLv2+, the documentation GPLv3+
License: LGPLv2+ and GPLv3+ License: LGPLv2+ and GPLv3+
@ -10,6 +10,7 @@ Source1: https://gnupg.org/ftp/gcrypt/libassuan/libassuan-%{version}.tar.bz2.sig
URL: http://www.gnupg.org/ URL: http://www.gnupg.org/
Patch1: libassuan-2.5.2-multilib.patch Patch1: libassuan-2.5.2-multilib.patch
Patch2: libassuan-2.5.3-includedir.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gawk BuildRequires: gawk
@ -36,6 +37,7 @@ This package contains files needed to develop applications using %{name}.
%setup -q %setup -q
%patch1 -p1 -b .multilib %patch1 -p1 -b .multilib
%patch2 -p1 -b .includedir
%build %build
@ -74,6 +76,9 @@ make check
%changelog %changelog
* Mon Aug 19 2019 Tomáš Mráz <tmraz@redhat.com> 2.5.3-2
- add includedir to pkg-config --cflags (#1742986)
* Sat Aug 3 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2.5.3-1 * Sat Aug 3 2019 Peter Robinson <pbrobinson@fedoraproject.org> 2.5.3-1
- new upstream release 2.5.3 - new upstream release 2.5.3