summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWook Song <wook16.song@samsung.com>2020-09-15 16:54:01 +0900
committerGichan Jang <gichan2.jang@samsung.com>2021-05-13 11:44:20 +0900
commit6e0ad18036e8055b17ded05aee5911678d342cdf (patch)
tree3f77bce836880aa90bd06fdec7e0961a92cae403
parentf36d79b5bbe4671b65fa40b6d252dd5fe29b9b40 (diff)
downloadflatbuffers-6e0ad18036e8055b17ded05aee5911678d342cdf.tar.gz
flatbuffers-6e0ad18036e8055b17ded05aee5911678d342cdf.tar.bz2
flatbuffers-6e0ad18036e8055b17ded05aee5911678d342cdf.zip
[Dist/Debian] Include .pc file in the dev-kit package
This patch revises the packaging files for Debian/Ubuntu to include .pc file in the development kit package. Change-Id: Ib94702ace3a970cfe5ab435c34795ac03296e02e Signed-off-by: Wook Song <wook16.song@samsung.com>
-rw-r--r--debian/changelog6
-rw-r--r--debian/control2
-rw-r--r--debian/libflatbuffers-dev.install1
-rwxr-xr-xdebian/rules9
4 files changed, 15 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index ea6233d4..f7befddd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+flatbuffers (1.12.0-3) unstable; urgency=medium
+
+ * Include flatbuffers.pc to the dev-kit package
+
+ -- Wook Song <wook16.song@samsung.com> Tue, 15 Sep 2020 16:44:44 +0900
+
flatbuffers (1.12.0-2) unstable; urgency=medium
* Do not use gcc-10 for backward compatibility
diff --git a/debian/control b/debian/control
index 63fea84b..8ad479b4 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: flatbuffers
Section: libdevel
Priority: optional
Build-Depends: debhelper (>=9), cmake,
- gcc-9 | gcc-8 | gcc-7 | gcc-6 | gcc-5 (>=5.4)
+ gcc-9 | gcc-8 | gcc-7 | gcc-6 | gcc-5 (>>5.4)
Maintainer: Wook Song <wook16.song@samsung.com>
Standards-Version: 3.6.1
Homepage: https://github.com/google/flatbuffers
diff --git a/debian/libflatbuffers-dev.install b/debian/libflatbuffers-dev.install
index ecb5e929..86952021 100644
--- a/debian/libflatbuffers-dev.install
+++ b/debian/libflatbuffers-dev.install
@@ -1,4 +1,5 @@
/usr/lib/*/libflatbuffers.so
/usr/lib/*/libflatbuffers.a
+/usr/lib/*/pkgconfig/*
/usr/include/flatbuffers/*
/usr/lib/*/cmake/*
diff --git a/debian/rules b/debian/rules
index 0d8e27f7..fa699795 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,7 @@ export DEB_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
else
export DEB_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
endif
+export VERSION:=1.12.0
export DEB_CMAKE_EXTRA_FLAGS += -DFLATBUFFERS_INSTALL=ON \
-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
@@ -22,5 +23,9 @@ export DEB_CMAKE_EXTRA_FLAGS += -DFLATBUFFERS_INSTALL=ON \
override_dh_auto_configure:
dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
-
-
+override_dh_auto_install:
+ dh_auto_install --
+ install -D -m 644 packaging/flatbuffers.pc.in debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc
+ sed -i 's#@version@#$(VERSION)#g' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc
+ sed -i 's#@libdir@#/usr/lib/$(DEB_HOST_MULTIARCH)#g' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc
+ sed -i 's#@includedir@#/usr/include#g' debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/flatbuffers.pc