From f439aa358d2be81cf03acdb7f5ff097892657069f3cbd063fd9ab7b85c611289 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 6 Sep 2020 11:53:51 +0000 Subject: [PATCH] - Move headers to distinct directory to enforce pkg-config correctness on library users. OBS-URL: https://build.opensuse.org/package/show/network:telephony/libasn1c?expand=0&rev=19 --- libasn1c.changes | 2 ++ libasn1c.spec | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libasn1c.changes b/libasn1c.changes index 799601c..034b49e 100644 --- a/libasn1c.changes +++ b/libasn1c.changes @@ -2,6 +2,8 @@ Sun Sep 6 11:45:01 UTC 2020 - Jan Engelhardt - Remove old specfile constructs. +- Move headers to distinct directory to enforce pkg-config + correctness on library users. ------------------------------------------------------------------- Thu Aug 15 04:54:16 UTC 2019 - Jan Engelhardt diff --git a/libasn1c.spec b/libasn1c.spec index 1729c88..310e12a 100644 --- a/libasn1c.spec +++ b/libasn1c.spec @@ -70,8 +70,9 @@ applications that want to make use of libasn1c. %build echo %version >.tarball-version autoreconf -fi -%configure --disable-static -make %{?_smp_mflags} +# bugzilla.opensuse.org/795968 for rationale +%configure --disable-static --includedir="%_includedir/%name" +%make_build %install %make_install @@ -90,7 +91,7 @@ fi %files -n libasn1c-devel %license COPYING -%_includedir/asn1c/ +%_includedir/%name/ %_libdir/pkgconfig/*.pc %_libdir/libasn1c.so