From 5f06de040287a5df88d21367da9e8725d8585ba1 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 5 Nov 2018 10:38:16 +0100 Subject: Adding packaging files Change-Id: I70d30588c59e6a0d3c451c74fc6cc565b5eea167 Signed-off-by: Romain Forlot --- packaging/deb/agl-cmake-apps-module.dsc | 14 +++++++ .../deb/debian.agl-cmake-apps-module-bin.install | 1 + packaging/deb/debian.changelog | 5 +++ packaging/deb/debian.compat | 1 + packaging/deb/debian.control | 14 +++++++ packaging/deb/debian.rules | 9 ++++ packaging/rpm/agl-cmake-apps-module.spec | 49 ++++++++++++++++++++++ 7 files changed, 93 insertions(+) create mode 100644 packaging/deb/agl-cmake-apps-module.dsc create mode 100644 packaging/deb/debian.agl-cmake-apps-module-bin.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 create mode 100644 packaging/rpm/agl-cmake-apps-module.spec (limited to 'packaging') diff --git a/packaging/deb/agl-cmake-apps-module.dsc b/packaging/deb/agl-cmake-apps-module.dsc new file mode 100644 index 0000000..11749b5 --- /dev/null +++ b/packaging/deb/agl-cmake-apps-module.dsc @@ -0,0 +1,14 @@ +Format: 3.0 (native) +Source: agl-cmake-apps-module +Binary: agl-cmake-apps-module-bin, agl-cmake-apps-module-dev +Architecture: any +Version: 6.90-0 +Maintainer: Romain Forlot +Standards-Version: 3.8.2 +Homepage: https://gerrit.automotivelinux.org/gerrit/src/cmake-apps-module +Build-Depends: debhelper (>= 5), + dpkg-dev, + cmake, +DEBTRANSFORM-RELEASE: 1 +Files: + cmake-apps-module_6.90.tar.gz diff --git a/packaging/deb/debian.agl-cmake-apps-module-bin.install b/packaging/deb/debian.agl-cmake-apps-module-bin.install new file mode 100644 index 0000000..d9da1b1 --- /dev/null +++ b/packaging/deb/debian.agl-cmake-apps-module-bin.install @@ -0,0 +1 @@ +usr/share/*/Modules/CMakeAfbTemplates* diff --git a/packaging/deb/debian.changelog b/packaging/deb/debian.changelog new file mode 100644 index 0000000..a245cdf --- /dev/null +++ b/packaging/deb/debian.changelog @@ -0,0 +1,5 @@ +agl-cmake-apps-module (6.90-0) unstable; urgency=low + + * init build + + -- Romain Forlot Mon, 5 Oct 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..0bac4c7 --- /dev/null +++ b/packaging/deb/debian.control @@ -0,0 +1,14 @@ +Priority: optional +Maintainer: Romain Forlot +Source: agl-cmake-apps-module +Build-Depends: + debhelper (>= 5), + cmake, +Standards-Version: 3.8.2 +Homepage: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/cmake-apps-module + +Package: agl-cmake-apps-module-bin +Section: devel +Architecture: any +Description: agl-cmake-apps-module is a CMake module made to ease application + framework binding. diff --git a/packaging/deb/debian.rules b/packaging/deb/debian.rules new file mode 100644 index 0000000..9a535f2 --- /dev/null +++ b/packaging/deb/debian.rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Uncomment this to turn on verbose mode. + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install --destdir=/usr/src/packages/BUILD/debian/tmp diff --git a/packaging/rpm/agl-cmake-apps-module.spec b/packaging/rpm/agl-cmake-apps-module.spec new file mode 100644 index 0000000..950514c --- /dev/null +++ b/packaging/rpm/agl-cmake-apps-module.spec @@ -0,0 +1,49 @@ +# +# spec file for package cmake-apps-module +# + +%define __cmake cmake + +%if 0%{?fedora_version} +%global debug_package %{nil} +%endif + +Name: agl-cmake-apps-module +# WARNING {name} is not used for tar file name in source nor for setup +# Check hard coded values required to match git directory naming +BuildArchitectures: noarch +Version: 6.90 +Release: 0 +License: Apache-2.0 +Summary: AGL cmake-apps-module +Group: Development/Libraries/C and C++ +Url: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/cmake-apps-module +Source: cmake-apps-module-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This is a CMake module made to ease development of binding and application +framework binder apps. + +%prep +%setup -q -n cmake-apps-module-%{version} + +%build +[ ! -d build ] && mkdir build +cd build +cmake .. + +%install +[ -d build ] && cd build +%make_install + +%files +%defattr(-,root,root) +%dir %{_datadir}/cmake/Modules/ +%{_datadir}/cmake/Modules/* + +%changelog +* Thu Nov 5 2018 Romain +- initial creation -- cgit 1.2.3-korg