aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-06 18:44:37 +0200
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-06-07 08:12:31 +0200
commit0c97b16872a20c0f1b6dffc52e607e69a8d823f1 (patch)
treeab6b140c2c7527d869c9db1598eebcb63f9b0c3d
parent45254bf97b5f0d2b2eb3d909e2c3f675694ca61d (diff)
Add rpm and deb packaging
Change-Id: I604cb02ea9a9ee94105583223dbacb4116d299ff Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
-rw-r--r--packaging/app-framework-binder.dsc18
-rw-r--r--packaging/app-framework-binder.spec79
-rw-r--r--packaging/debian.app-framework-binder-bin.install13
-rw-r--r--packaging/debian.app-framework-binder-dev.install20
-rw-r--r--packaging/debian.changelog5
-rw-r--r--packaging/debian.compat1
-rw-r--r--packaging/debian.control25
-rw-r--r--packaging/debian.rules80
8 files changed, 241 insertions, 0 deletions
diff --git a/packaging/app-framework-binder.dsc b/packaging/app-framework-binder.dsc
new file mode 100644
index 00000000..f0a97ebc
--- /dev/null
+++ b/packaging/app-framework-binder.dsc
@@ -0,0 +1,18 @@
+Format: 1.0
+Source: app-framework-binder
+Binary: app-framework-binder-bin, app-framework-binder-dev
+Architecture: any
+Version: 2.0-0
+Maintainer: unknown <unknown@debian.org>
+Standards-Version: 3.8.2
+Homepage: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder
+Build-Depends: debhelper (>= 5),
+ libmicrohttpd-dev ,
+ cmake,
+ libsystemd-dev,
+ libssl-dev,
+ uuid-dev,
+ libgcrypt20-dev,
+ libjson-c-dev,
+ libmagic-dev
+Debtransform-Tar: app-framework-binder_2.0.orig.tar.gz
diff --git a/packaging/app-framework-binder.spec b/packaging/app-framework-binder.spec
new file mode 100644
index 00000000..3bdb7682
--- /dev/null
+++ b/packaging/app-framework-binder.spec
@@ -0,0 +1,79 @@
+#
+# spec file for package app-framework-binder
+#
+
+Name: app-framework-binder
+Version: 2.0
+Release: 0
+License: GPL-2.0
+Summary: app-framework-binder
+Group: Development/Libraries/C and C++
+Url: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder
+Source: %{name}_%{version}.orig.tar.gz
+#BuildRequires: gdb
+BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.54
+BuildRequires: make
+BuildRequires: cmake
+BuildRequires: pkgconfig(libsystemd)
+BuildRequires: pkgconfig(openssl)
+BuildRequires: pkgconfig(uuid)
+BuildRequires: libgcrypt-devel
+BuildRequires: pkgconfig(gnutls)
+BuildRequires: pkgconfig(json-c)
+BuildRequires: file-devel
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+app-framework-binder
+
+%package devel
+Summary: app-framework-binder-devel
+Group: Development/Libraries/C and C++
+Requires: %{name} = %{version}
+
+%description devel
+app-framework-binder-devel
+
+%prep
+%setup -q
+
+%build
+%cmake
+%__make %{?_smp_mflags}
+
+
+%install
+[ -d build ] && cd build
+%make_install
+
+%post
+
+%postun
+
+%files
+%defattr(-,root,root)
+%{_bindir}/afb-client-demo
+%{_bindir}/afb-daemon
+%{_bindir}/afb-genskel
+%{_bindir}/afb-exprefs
+%{_bindir}/afb-json2c
+
+%dir %{_libdir}/afb
+%{_libdir}/afb/afb-dbus-binding.so
+%{_libdir}/afb/authLogin.so
+%{_libdir}/libafbwsc.so.1
+%{_libdir}/libafbwsc.so.1.0
+
+#app-framework-binder demo
+%{_libdir}/afb/demoContext.so
+%{_libdir}/afb/demoPost.so
+%{_libdir}/afb/helloWorld.so
+%{_libdir}/afb/tic-tac-toe.so
+
+%files devel
+%defattr(-,root,root)
+%{_libdir}/libafbwsc.so
+%dir %{_includedir}/afb
+%{_includedir}/afb/*.h
+%{_libdir}/pkgconfig/*.pc
diff --git a/packaging/debian.app-framework-binder-bin.install b/packaging/debian.app-framework-binder-bin.install
new file mode 100644
index 00000000..dc404956
--- /dev/null
+++ b/packaging/debian.app-framework-binder-bin.install
@@ -0,0 +1,13 @@
+/usr/lib/*/libafbwsc.so.1.0
+/usr/lib/*/libafbwsc.so.1
+/usr/lib/*/afb/authLogin.so
+/usr/lib/*/afb/demoPost.so
+/usr/lib/*/afb/afb-dbus-binding.so
+/usr/lib/*/afb/tic-tac-toe.so
+/usr/lib/*/afb/helloWorld.so
+/usr/lib/*/afb/demoContext.so
+/usr/bin/afb-json2c
+/usr/bin/afb-daemon
+/usr/bin/afb-exprefs
+/usr/bin/afb-client-demo
+/usr/bin/afb-genskel
diff --git a/packaging/debian.app-framework-binder-dev.install b/packaging/debian.app-framework-binder-dev.install
new file mode 100644
index 00000000..28bedfd6
--- /dev/null
+++ b/packaging/debian.app-framework-binder-dev.install
@@ -0,0 +1,20 @@
+/usr/include/afb/afb-daemon-v1.h
+/usr/include/afb/afb-req-itf.h
+/usr/include/afb/afb-session-v1.h
+/usr/include/afb/afb-event-itf.h
+/usr/include/afb/afb-auth.h
+/usr/include/afb/afb-ws-client.h
+/usr/include/afb/afb-session-v2.h
+/usr/include/afb/afb-daemon-v2.h
+/usr/include/afb/afb-service-itf.h
+/usr/include/afb/afb-binding-v2.h
+/usr/include/afb/afb-service-common.h
+/usr/include/afb/afb-binding.h
+/usr/include/afb/afb-binding-v1.h
+/usr/include/afb/afb-wsj1.h
+/usr/include/afb/afb-service-v2.h
+/usr/include/afb/afb-service-v1.h
+/usr/include/afb/afb-daemon-common.h
+/usr/lib/*/pkgconfig/libafbwsc.pc
+/usr/lib/*/pkgconfig/afb-daemon.pc
+/usr/lib/*/libafbwsc.so
diff --git a/packaging/debian.changelog b/packaging/debian.changelog
new file mode 100644
index 00000000..c1b0e043
--- /dev/null
+++ b/packaging/debian.changelog
@@ -0,0 +1,5 @@
+app-framework-binder (2.0-0) unstable; urgency=low
+
+ * init build
+
+ -- Ronan Le Martret <ronan.lemartret@iot.bzh> Mon, 25 Dec 2007 10:50:38 +0100
diff --git a/packaging/debian.compat b/packaging/debian.compat
new file mode 100644
index 00000000..45a4fb75
--- /dev/null
+++ b/packaging/debian.compat
@@ -0,0 +1 @@
+8
diff --git a/packaging/debian.control b/packaging/debian.control
new file mode 100644
index 00000000..e75a5be1
--- /dev/null
+++ b/packaging/debian.control
@@ -0,0 +1,25 @@
+Priority: optional
+Maintainer: unknown <unknown@debian.org>
+Source: app-framework-binder
+Build-Depends: debhelper (>= 5),
+ libmicrohttpd-dev ,
+ cmake,
+ libsystemd-dev,
+ libssl-dev,
+ uuid-dev,
+ libgcrypt20-dev,
+ libjson-c-dev,
+ libmagic-dev
+Standards-Version: 3.8.2
+Homepage: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder
+
+Package: app-framework-binder-bin
+Section: libs
+Architecture: any
+Description: app-framework-binder
+
+Package: app-framework-binder-dev
+Section: libs
+Architecture: any
+Description: app-framework-binder-devel
+
diff --git a/packaging/debian.rules b/packaging/debian.rules
new file mode 100644
index 00000000..560cf415
--- /dev/null
+++ b/packaging/debian.rules
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ #
+ touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+ dh_testdir
+ mkdir -p build
+ cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr;$(MAKE)
+ #
+ touch build-stamp
+
+clean:
+ #dh_testdir
+ dh_testroot
+ rm -f configure-stamp build-stamp
+ [ ! -f Makefile ] || $(MAKE) distclean
+ #dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ # Add here commands to install the package into debian/tmp
+ [ -d build ] && cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp
+ # Move all files in their corresponding package
+ dh_install --list-missing -s --sourcedir=debian/tmp
+ # empty dependency_libs in .la files
+ #sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.la'`
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_installman
+ dh_link
+ #dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs -V
+ #dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install