From b61a20c6244f2009719b6b3df8292a8196323215 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Mon, 14 May 2018 18:21:23 +0200 Subject: packaging: Update spec and deb packaging - sort files by packaging type Change-Id: I048cfd6537723f421d2395cea80203c6364ae02e Signed-off-by: Ronan Le Martret --- conf.d/packaging/agl-app-framework-binder.dsc | 19 ---- conf.d/packaging/agl-app-framework-binder.spec | 106 ------------------ conf.d/packaging/deb/agl-app-framework-binder.dsc | 21 ++++ .../debian.agl-app-framework-binder-bin.install | 15 +++ .../debian.agl-app-framework-binder-dev.install | 3 + conf.d/packaging/deb/debian.changelog | 5 + conf.d/packaging/deb/debian.compat | 1 + conf.d/packaging/deb/debian.control | 27 +++++ conf.d/packaging/deb/debian.rules | 87 +++++++++++++++ .../debian.agl-app-framework-binder-bin.install | 14 --- .../debian.agl-app-framework-binder-dev.install | 3 - conf.d/packaging/debian.changelog | 5 - conf.d/packaging/debian.compat | 1 - conf.d/packaging/debian.control | 27 ----- conf.d/packaging/debian.rules | 87 --------------- conf.d/packaging/rpm/agl-app-framework-binder.spec | 119 +++++++++++++++++++++ 16 files changed, 278 insertions(+), 262 deletions(-) delete mode 100644 conf.d/packaging/agl-app-framework-binder.dsc delete mode 100644 conf.d/packaging/agl-app-framework-binder.spec create mode 100644 conf.d/packaging/deb/agl-app-framework-binder.dsc create mode 100644 conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install create mode 100644 conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install create mode 100644 conf.d/packaging/deb/debian.changelog create mode 100644 conf.d/packaging/deb/debian.compat create mode 100644 conf.d/packaging/deb/debian.control create mode 100644 conf.d/packaging/deb/debian.rules delete mode 100644 conf.d/packaging/debian.agl-app-framework-binder-bin.install delete mode 100644 conf.d/packaging/debian.agl-app-framework-binder-dev.install delete mode 100644 conf.d/packaging/debian.changelog delete mode 100644 conf.d/packaging/debian.compat delete mode 100644 conf.d/packaging/debian.control delete mode 100644 conf.d/packaging/debian.rules create mode 100644 conf.d/packaging/rpm/agl-app-framework-binder.spec diff --git a/conf.d/packaging/agl-app-framework-binder.dsc b/conf.d/packaging/agl-app-framework-binder.dsc deleted file mode 100644 index 96612fbe..00000000 --- a/conf.d/packaging/agl-app-framework-binder.dsc +++ /dev/null @@ -1,19 +0,0 @@ -Format: 1.0 -Source: agl-app-framework-binder -Binary: agl-app-framework-binder-bin, agl-app-framework-binder-dev -Architecture: any -Version: 2.0-0 -Maintainer: unknown -Standards-Version: 3.8.2 -Homepage: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder -Build-Depends: debhelper (>= 5), - dpkg-dev, - libmicrohttpd-dev (>= 0.9.54), - cmake, - libsystemd-dev (>= 222), - libssl-dev, - uuid-dev, - libgcrypt20-dev, - libjson-c-dev, - libmagic-dev -Debtransform-Tar: agl-app-framework-binder_2.0.orig.tar.gz diff --git a/conf.d/packaging/agl-app-framework-binder.spec b/conf.d/packaging/agl-app-framework-binder.spec deleted file mode 100644 index 9f3a2509..00000000 --- a/conf.d/packaging/agl-app-framework-binder.spec +++ /dev/null @@ -1,106 +0,0 @@ -# -# spec file for package app-framework-binder -# - -%define _prefix /opt/AGL -%define __cmake cmake - -Name: agl-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.55 -BuildRequires: make -BuildRequires: cmake -BuildRequires: pkgconfig(libsystemd) >= 222 -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} -Provides: pkgconfig(%{name}) = %{version} - -%description devel -app-framework-binder-devel - -%prep -%setup -q - -%build -export PKG_CONFIG_PATH=%{_libdir}/pkgconfig -%cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON -%__make %{?_smp_mflags} - - -%install -[ -d build ] && cd build -%make_install - -mkdir -p %{buildroot}%{_sysconfdir}/profile.d -cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/AGL_%{name}.sh -#---------- AGL %{name} options Start ---------" -# Object: AGL cmake option for binder/bindings -export LD_LIBRARY_PATH=%{_libdir}:\${LD_LIBRARY_PATH} -export LIBRARY_PATH=%{_libdir}:\${LIBRARY_PATH} -export PKG_CONFIG_PATH=%{_libdir}/pkgconfig:\${PKG_CONFIG_PATH} -export PATH=%{_bindir}:\$PATH -#---------- AGL options End --------- -EOF - -%post - -%postun - -%files -%defattr(-,root,root) -%dir %{_bindir} -%{_bindir}/afb-client-demo -%{_bindir}/afb-daemon -%{_bindir}/afb-genskel -%{_bindir}/afb-exprefs -%{_bindir}/afb-json2c - -%dir %{_libdir} -%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 -%{_libdir}/afb/monitoring/* -%{_sysconfdir}/profile.d/AGL_%{name}.sh - -#app-framework-binder monitoring -%dir %{_libdir}/afb/monitoring -%{_libdir}/afb/monitoring/* - -%files devel -%defattr(-,root,root) -%dir %{_prefix} -%{_libdir}/libafbwsc.so -%dir %{_includedir} -%dir %{_includedir}/afb -%{_includedir}/afb/*.h -%dir %{_libdir}/pkgconfig -%{_libdir}/pkgconfig/*.pc diff --git a/conf.d/packaging/deb/agl-app-framework-binder.dsc b/conf.d/packaging/deb/agl-app-framework-binder.dsc new file mode 100644 index 00000000..564083fd --- /dev/null +++ b/conf.d/packaging/deb/agl-app-framework-binder.dsc @@ -0,0 +1,21 @@ +Format: 1.0 +Source: agl-app-framework-binder +Binary: agl-app-framework-binder-bin, agl-app-framework-binder-dev +Architecture: any +Version: 2.0-0 +Maintainer: unknown +Standards-Version: 3.8.2 +Homepage: https://gerrit.automotivelinux.org/gerrit/src/app-framework-binder +Build-Depends: debhelper (>= 5), pkg-config, + dpkg-dev, + libmicrohttpd-dev (>= 0.9.54), + cmake, + libsystemd-dev (>= 222), + libssl-dev, + uuid-dev, + libgcrypt20-dev, + libjson-c-dev, + libmagic-dev +DEBTRANSFORM-RELEASE: 1 +Files: + app-framework-binder_2.0.tar.gz diff --git a/conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install b/conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install new file mode 100644 index 00000000..17c19520 --- /dev/null +++ b/conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install @@ -0,0 +1,15 @@ +/opt/AGL/lib/*/libafbwsc.so.1.1 +/opt/AGL/lib/*/libafbwsc.so.1 +/opt/AGL/lib/*/afb/authLogin.so +/opt/AGL/lib/*/afb/demoPost.so +/opt/AGL/lib/*/afb/afb-dbus-binding.so +/opt/AGL/lib/*/afb/tic-tac-toe.so +/opt/AGL/lib/*/afb/helloWorld.so +/opt/AGL/lib/*/afb/demoContext.so +/opt/AGL/bin/afb-json2c +/opt/AGL/bin/afb-daemon +/opt/AGL/bin/afb-exprefs +/opt/AGL/bin/afb-client-demo +/opt/AGL/bin/afb-genskel +/etc/profile.d/AGL_app-framework-binder.sh +/opt/AGL/lib/*/afb/monitoring/* diff --git a/conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install b/conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install new file mode 100644 index 00000000..2d1a4016 --- /dev/null +++ b/conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install @@ -0,0 +1,3 @@ +/opt/AGL/include/afb/*.h +/opt/AGL/lib/*/pkgconfig/*.pc +/opt/AGL/lib/*/libafbwsc.so diff --git a/conf.d/packaging/deb/debian.changelog b/conf.d/packaging/deb/debian.changelog new file mode 100644 index 00000000..131bac4b --- /dev/null +++ b/conf.d/packaging/deb/debian.changelog @@ -0,0 +1,5 @@ +agl-app-framework-binder (2.0-0) unstable; urgency=low + + * init build + + -- Ronan Le Martret Mon, 25 Dec 2007 10:50:38 +0100 diff --git a/conf.d/packaging/deb/debian.compat b/conf.d/packaging/deb/debian.compat new file mode 100644 index 00000000..45a4fb75 --- /dev/null +++ b/conf.d/packaging/deb/debian.compat @@ -0,0 +1 @@ +8 diff --git a/conf.d/packaging/deb/debian.control b/conf.d/packaging/deb/debian.control new file mode 100644 index 00000000..29940f19 --- /dev/null +++ b/conf.d/packaging/deb/debian.control @@ -0,0 +1,27 @@ +Priority: optional +Maintainer: unknown +Source: agl-app-framework-binder +Build-Depends: debhelper (>= 5),pkg-config, + libmicrohttpd-dev (>= 0.9.55), + cmake, + libsystemd-dev (>= 222), + 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: agl-app-framework-binder-bin +Section: libs +Architecture: any +Depends: libmicrohttpd (>= 0.9.55) +Description: agl-app-framework-binder + +Package: agl-app-framework-binder-dev +Section: libs +Architecture: any +Depends: agl-app-framework-binder-bin +Description: agl-app-framework-binder-devel + diff --git a/conf.d/packaging/deb/debian.rules b/conf.d/packaging/deb/debian.rules new file mode 100644 index 00000000..f9576409 --- /dev/null +++ b/conf.d/packaging/deb/debian.rules @@ -0,0 +1,87 @@ +#!/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 + export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig;cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/$(DEB_HOST_MULTIARCH) -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON;$(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 + cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp + mkdir -p debian/tmp/etc/profile.d + echo '#---------- AGL app-framework-binder options Start ---------" ' > debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo '# Object: AGL cmake option for binder/bindings' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export LD_LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LD_LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:$${PKG_CONFIG_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export PATH=/opt/AGL/bin:$${PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo '#---------- AGL options End ---------' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + # 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 diff --git a/conf.d/packaging/debian.agl-app-framework-binder-bin.install b/conf.d/packaging/debian.agl-app-framework-binder-bin.install deleted file mode 100644 index 3faebfb3..00000000 --- a/conf.d/packaging/debian.agl-app-framework-binder-bin.install +++ /dev/null @@ -1,14 +0,0 @@ -/opt/AGL/lib/*/libafbwsc.so.1.0 -/opt/AGL/lib/*/libafbwsc.so.1 -/opt/AGL/lib/*/afb/authLogin.so -/opt/AGL/lib/*/afb/demoPost.so -/opt/AGL/lib/*/afb/afb-dbus-binding.so -/opt/AGL/lib/*/afb/tic-tac-toe.so -/opt/AGL/lib/*/afb/helloWorld.so -/opt/AGL/lib/*/afb/demoContext.so -/opt/AGL/bin/afb-json2c -/opt/AGL/bin/afb-daemon -/opt/AGL/bin/afb-exprefs -/opt/AGL/bin/afb-client-demo -/opt/AGL/bin/afb-genskel -/etc/profile.d/AGL_app-framework-binder.sh diff --git a/conf.d/packaging/debian.agl-app-framework-binder-dev.install b/conf.d/packaging/debian.agl-app-framework-binder-dev.install deleted file mode 100644 index 2d1a4016..00000000 --- a/conf.d/packaging/debian.agl-app-framework-binder-dev.install +++ /dev/null @@ -1,3 +0,0 @@ -/opt/AGL/include/afb/*.h -/opt/AGL/lib/*/pkgconfig/*.pc -/opt/AGL/lib/*/libafbwsc.so diff --git a/conf.d/packaging/debian.changelog b/conf.d/packaging/debian.changelog deleted file mode 100644 index 131bac4b..00000000 --- a/conf.d/packaging/debian.changelog +++ /dev/null @@ -1,5 +0,0 @@ -agl-app-framework-binder (2.0-0) unstable; urgency=low - - * init build - - -- Ronan Le Martret Mon, 25 Dec 2007 10:50:38 +0100 diff --git a/conf.d/packaging/debian.compat b/conf.d/packaging/debian.compat deleted file mode 100644 index 45a4fb75..00000000 --- a/conf.d/packaging/debian.compat +++ /dev/null @@ -1 +0,0 @@ -8 diff --git a/conf.d/packaging/debian.control b/conf.d/packaging/debian.control deleted file mode 100644 index 0c57db96..00000000 --- a/conf.d/packaging/debian.control +++ /dev/null @@ -1,27 +0,0 @@ -Priority: optional -Maintainer: unknown -Source: agl-app-framework-binder -Build-Depends: debhelper (>= 5), - libmicrohttpd-dev (>= 0.9.55), - cmake, - libsystemd-dev (>= 222), - 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: agl-app-framework-binder-bin -Section: libs -Architecture: any -Depends: libmicrohttpd (>= 0.9.55) -Description: agl-app-framework-binder - -Package: agl-app-framework-binder-dev -Section: libs -Architecture: any -Depends: agl-app-framework-binder-bin -Description: agl-app-framework-binder-devel - diff --git a/conf.d/packaging/debian.rules b/conf.d/packaging/debian.rules deleted file mode 100644 index f9576409..00000000 --- a/conf.d/packaging/debian.rules +++ /dev/null @@ -1,87 +0,0 @@ -#!/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 - export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig;cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/$(DEB_HOST_MULTIARCH) -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON;$(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 - cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp - mkdir -p debian/tmp/etc/profile.d - echo '#---------- AGL app-framework-binder options Start ---------" ' > debian/tmp/etc/profile.d/AGL_app-framework-binder.sh - echo '# Object: AGL cmake option for binder/bindings' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh - echo 'export LD_LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LD_LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh - echo 'export LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh - echo 'export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:$${PKG_CONFIG_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh - echo 'export PATH=/opt/AGL/bin:$${PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh - echo '#---------- AGL options End ---------' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh - # 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 diff --git a/conf.d/packaging/rpm/agl-app-framework-binder.spec b/conf.d/packaging/rpm/agl-app-framework-binder.spec new file mode 100644 index 00000000..c35cffbb --- /dev/null +++ b/conf.d/packaging/rpm/agl-app-framework-binder.spec @@ -0,0 +1,119 @@ +# +# spec file for package app-framework-binder +# + +%define _prefix /opt/AGL +%define __cmake cmake + +Name: agl-app-framework-binder +# WARNING {name} is not used for tar file name in source nor for setup +# Check hard coded values required to match git directory naming +Version: 2.0 +Release: 0 +License: Apache-2.0 +Summary: AGL app-framework-binder +Group: Development/Libraries/C and C++ +Url: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder +Source: app-framework-binder-%{version}.tar.gz +#BuildRequires: gdb +BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.55 +BuildRequires: make +BuildRequires: cmake +BuildRequires: pkgconfig(libsystemd) >= 222 +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(uuid) +BuildRequires: libgcrypt-devel +BuildRequires: pkgconfig(gnutls) +BuildRequires: pkgconfig(json-c) +BuildRequires: file-devel +BuildRequires: gcc-c++ + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Provides a test agl binder service which can be used to test agl bindings on Linux PC +This service is evolving permanently and is only designed as a helper for developper. + +%package devel +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +Provides: pkgconfig(%{name}) = %{version} +Summary: AGL app-framework-binder-devel +%description devel +Provides a test agl binder service which can be used to test agl bindings on Linux PC +This service is evolving permanently and is only designed as a helper for developper. + + +%prep +%setup -q -n app-framework-binder-%{version} + +%build +export PKG_CONFIG_PATH=%{_libdir}/pkgconfig +%cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON +%__make %{?_smp_mflags} + + +%install +[ -d build ] && cd build +%make_install + +mkdir -p %{buildroot}%{_sysconfdir}/profile.d +cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/AGL-%{name}.sh +#---------- AGL %%{name} options Start ---------" +# Object: AGL cmake option for binder/bindings +export LD_LIBRARY_PATH=%{_libdir}:\${LD_LIBRARY_PATH} +export LIBRARY_PATH=%{_libdir}:\${LIBRARY_PATH} +export PKG_CONFIG_PATH=%{_libdir}/pkgconfig:\${PKG_CONFIG_PATH} +export PATH=%{_bindir}:\$PATH +#---------- AGL options End --------- +EOF + +%post + +%postun + +%files +%defattr(-,root,root) +%dir %{_bindir} +%{_bindir}/afb-client-demo +%{_bindir}/afb-daemon +%{_bindir}/afb-genskel +%{_bindir}/afb-exprefs +%{_bindir}/afb-json2c + +%dir %{_libdir} +%dir %{_libdir}/afb +%{_libdir}/afb/afb-dbus-binding.so +%{_libdir}/afb/authLogin.so +%{_libdir}/libafbwsc.so.1 +%{_libdir}/libafbwsc.so.1.1 + +#app-framework-binder demo +%{_libdir}/afb/demoContext.so +%{_libdir}/afb/demoPost.so +%{_libdir}/afb/helloWorld.so +%{_libdir}/afb/tic-tac-toe.so +%{_libdir}/afb/ave.so +%config(noreplace) %{_sysconfdir}/profile.d/AGL-%{name}.sh + +#app-framework-binder monitoring +%dir %{_libdir}/afb/monitoring +%{_libdir}/afb/monitoring/* + +%files devel +%defattr(-,root,root) +%dir %{_prefix} +%{_libdir}/libafbwsc.so +%dir %{_includedir} +%dir %{_includedir}/afb +%{_includedir}/afb/*.h +%{_includedir}/afb/*.hpp +%{_includedir}/afb/afb-binding +%dir %{_libdir}/pkgconfig +%{_libdir}/pkgconfig/*.pc + +%changelog +* Wed Sep 27 2017 Dominig +- move to git repo +* Tue Aug 01 2017 Ronan +- initial creation -- cgit 1.2.3-korg