[gspell/wip/api-version: 2/2] build: use GSPELL_API_VERSION for the pkg-config file
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell/wip/api-version: 2/2] build: use GSPELL_API_VERSION for the pkg-config file
- Date: Thu, 10 Mar 2016 17:12:17 +0000 (UTC)
commit cbac96c9b0884b0dcd93ff39cc807f2ca695c7c3
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Mar 10 17:42:12 2016 +0100
build: use GSPELL_API_VERSION for the pkg-config file
Makefile.am | 7 +++----
configure.ac | 2 +-
gspell-1.pc.in => gspell.pc.in | 4 ++--
3 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 9926b37..fc58994 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,9 +1,8 @@
SUBDIRS = gspell po docs tests testsuite
-pkgconfig_DATA = gspell-1.pc
-
-EXTRA_DIST = \
- gspell-1.pc.in
+pkgconfig_DATA = gspell-$(GSPELL_API_VERSION).pc
+DISTCLEANFILES = $(pkgconfig_DATA)
+EXTRA_DIST = gspell.pc.in
MAINTAINERCLEANFILES = \
ABOUT-NLS \
diff --git a/configure.ac b/configure.ac
index 9ae3ad5..e7f7f65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -194,7 +194,7 @@ fi
# Output files
AC_CONFIG_FILES([
- gspell-1.pc
+ gspell-$GSPELL_API_VERSION.pc:gspell.pc.in
Makefile
docs/Makefile
docs/reference/Makefile
diff --git a/gspell-1.pc.in b/gspell.pc.in
similarity index 71%
rename from gspell-1.pc.in
rename to gspell.pc.in
index 7b2c3e9..d8ddbd3 100644
--- a/gspell-1.pc.in
+++ b/gspell.pc.in
@@ -8,5 +8,5 @@ Description: Spell checking for GTK+
Version: @PACKAGE_VERSION@
Requires: @AX_PACKAGE_REQUIRES@
Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
-Libs: -L${libdir} -lgspell-1
-Cflags: -I${includedir}/gspell-1
+Libs: -L${libdir} -lgspell- GSPELL_API_VERSION@
+Cflags: -I${includedir}/gspell- GSPELL_API_VERSION@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]