From a1976ff1b2bccc8689182505828f7e3814d0d21b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 28 Dec 2018 15:15:47 +0100 Subject: Adding packaging files Adding the necessary packaging files for the AGL supported distributions. OpenSUSE, Fedora, Ubuntu and Debian. Bug-AGL: SPEC-2097 Change-Id: I81fe9b614366c2d9f3337f18082ed221b8931e6a Signed-off-by: Romain Forlot --- packaging/deb/agl-libafb-helpers.dsc | 21 ++++++++++++++++ .../deb/debian.agl-libafb-helpers-bin.install | 1 + .../deb/debian.agl-libafb-helpers-dev.install | 2 ++ packaging/deb/debian.changelog | 5 ++++ packaging/deb/debian.compat | 1 + packaging/deb/debian.control | 28 ++++++++++++++++++++++ packaging/deb/debian.rules | 17 +++++++++++++ 7 files changed, 75 insertions(+) create mode 100644 packaging/deb/agl-libafb-helpers.dsc create mode 100644 packaging/deb/debian.agl-libafb-helpers-bin.install create mode 100644 packaging/deb/debian.agl-libafb-helpers-dev.install create mode 100644 packaging/deb/debian.changelog create mode 100644 packaging/deb/debian.compat create mode 100644 packaging/deb/debian.control create mode 100644 packaging/deb/debian.rules (limited to 'packaging/deb') diff --git a/packaging/deb/agl-libafb-helpers.dsc b/packaging/deb/agl-libafb-helpers.dsc new file mode 100644 index 0000000..a03063b --- /dev/null +++ b/packaging/deb/agl-libafb-helpers.dsc @@ -0,0 +1,21 @@ +Format: 1.0 +Source: agl-libafb-helpers +Binary: agl-libafb-helpers-bin, agl-libafb-helpers-dev +Architecture: any +Version: 2.0-0 +Maintainer: romain.forlot +Standards-Version: 3.8.2 +Homepage: https://gerrit.automotivelinux.org/gerrit/src/libafb-helpers +Build-Depends: debhelper (>= 5), + cmake, + dpkg-dev, + pkg-config, + libjson-c-dev, + libsystemd-dev, + libcurl4-openssl-dev, + libqt5websockets5-dev, + agl-app-framework-binder-bin, + agl-app-framework-binder-dev, +DEBTRANSFORM-RELEASE: 1 +Files: + libafb-helpers_2.0.tar.gz diff --git a/packaging/deb/debian.agl-libafb-helpers-bin.install b/packaging/deb/debian.agl-libafb-helpers-bin.install new file mode 100644 index 0000000..8bd0adf --- /dev/null +++ b/packaging/deb/debian.agl-libafb-helpers-bin.install @@ -0,0 +1 @@ +/opt/AGL/lib/*/libafb-helpers*.a diff --git a/packaging/deb/debian.agl-libafb-helpers-dev.install b/packaging/deb/debian.agl-libafb-helpers-dev.install new file mode 100644 index 0000000..005c650 --- /dev/null +++ b/packaging/deb/debian.agl-libafb-helpers-dev.install @@ -0,0 +1,2 @@ +/opt/AGL/lib/*/pkgconfig/*.pc +/opt/AGL/include/* diff --git a/packaging/deb/debian.changelog b/packaging/deb/debian.changelog new file mode 100644 index 0000000..0336ba0 --- /dev/null +++ b/packaging/deb/debian.changelog @@ -0,0 +1,5 @@ +agl-libafb-helpers (2.0-0) unstable; urgency=low + + * init build + + -- Romain Forlot Fri, 28 Dec 2018 10:50:38 +0100 diff --git a/packaging/deb/debian.compat b/packaging/deb/debian.compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/packaging/deb/debian.compat @@ -0,0 +1 @@ +9 diff --git a/packaging/deb/debian.control b/packaging/deb/debian.control new file mode 100644 index 0000000..60a8c59 --- /dev/null +++ b/packaging/deb/debian.control @@ -0,0 +1,28 @@ +Priority: optional +Maintainer: romain.forlot +Source: agl-libafb-helpers +Build-Depends: + debhelper (>= 5), + pkg-config, + cmake, + libjson-c-dev, + libsystemd-dev, + libcurl4-openssl-dev, + libqt5websockets5-dev, + agl-app-framework-binder-bin, + agl-app-framework-binder-dev, +Standards-Version: 3.8.2 +Homepage: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/apps/libafb-helpers + +Package: agl-libafb-helpers-bin +Section: libs +Architecture: any +Description: libafb-helpers provides helpful functions to be used in a binding for the + Application Framework Binder + +Package: agl-libafb-helpers-dev +Section: libs +Architecture: any +Depends: agl-libafb-helpers-bin +Description: libafb-helpers provides helpful functions to be used in a binding for the + Application Framework Binder diff --git a/packaging/deb/debian.rules b/packaging/deb/debian.rules new file mode 100644 index 0000000..c4b4d59 --- /dev/null +++ b/packaging/deb/debian.rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +export VERSION=$(shell grep -E "^Version" ../*dsc | sed -r 's/^.*: (.*)-.*/\1/') + +%: + bash /etc/profile.d/AGL-app-framework-binder.sh + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- -DVERSION=${VERSION} -DAFB_HELPERS_QT=ON -DCMAKE_INSTALL_PREFIX=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/${DEB_HOST_MULTIARCH} + +override_dh_auto_install: + dh_auto_install --destdir=/usr/src/packages/BUILD/debian/tmp + +override_dh_auto_test: -- cgit 1.2.3-korg