aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/packaging/rpm/agl-app-framework-binder.spec
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2018-05-14 18:21:23 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-06-20 14:07:53 +0200
commitc76c2065098751a6747e70ae9d67440003eb0c5d (patch)
tree83a665bd84d1899b69391c1d6f1fa2014b4e08bc /conf.d/packaging/rpm/agl-app-framework-binder.spec
parent611893f7b9b39a0d3d4cb36d2af3924251af411b (diff)
packaging: Update spec and deb packaging
- sort files by packaging type Change-Id: Ic914b5eedffce04356bb59db36be30ba81a8a20d Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'conf.d/packaging/rpm/agl-app-framework-binder.spec')
-rw-r--r--conf.d/packaging/rpm/agl-app-framework-binder.spec119
1 files changed, 119 insertions, 0 deletions
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