2 # spec file for package app-framework-binder
5 %define _prefix /opt/AGL
8 Name: agl-app-framework-binder
9 # WARNING {name} is not used for tar file name in source nor for setup
10 # Check hard coded values required to match git directory naming
14 Summary: AGL app-framework-binder
15 Group: Development/Libraries/C and C++
16 Url: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder
17 Source: app-framework-binder-%{version}.tar.gz
19 BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.55
22 BuildRequires: pkgconfig(libsystemd) >= 222
23 BuildRequires: pkgconfig(openssl)
24 BuildRequires: pkgconfig(uuid)
25 BuildRequires: libgcrypt-devel
26 BuildRequires: pkgconfig(gnutls)
27 BuildRequires: pkgconfig(json-c)
28 BuildRequires: file-devel
29 BuildRequires: gcc-c++
31 BuildRoot: %{_tmppath}/%{name}-%{version}-build
34 Provides a test agl binder service which can be used to test agl bindings on Linux PC
35 This service is evolving permanently and is only designed as a helper for developper.
38 Group: Development/Libraries/C and C++
39 Requires: %{name} = %{version}
40 Provides: pkgconfig(%{name}) = %{version}
41 Summary: AGL app-framework-binder-devel
43 Provides a test agl binder service which can be used to test agl bindings on Linux PC
44 This service is evolving permanently and is only designed as a helper for developper.
48 %setup -q -n app-framework-binder-%{version}
51 export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
52 %cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON
53 %__make %{?_smp_mflags}
57 [ -d build ] && cd build
60 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
61 cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/AGL-%{name}.sh
62 #---------- AGL %%{name} options Start ---------"
63 # Object: AGL cmake option for binder/bindings
64 export LD_LIBRARY_PATH=%{_libdir}:\${LD_LIBRARY_PATH}
65 export LIBRARY_PATH=%{_libdir}:\${LIBRARY_PATH}
66 export PKG_CONFIG_PATH=%{_libdir}/pkgconfig:\${PKG_CONFIG_PATH}
67 export PATH=%{_bindir}:\$PATH
68 #---------- AGL options End ---------
78 %{_bindir}/afb-client-demo
80 %{_bindir}/afb-genskel
81 %{_bindir}/afb-exprefs
86 %{_libdir}/libafbwsc.so.1
87 %{_libdir}/libafbwsc.so.1.1
89 #app-framework-binder demo
91 %config(noreplace) %{_sysconfdir}/profile.d/AGL-%{name}.sh
93 #app-framework-binder monitoring
94 %dir %{_libdir}/afb/monitoring
95 %{_libdir}/afb/monitoring/*
100 %{_libdir}/libafbwsc.so
102 %dir %{_includedir}/afb
104 %dir %{_libdir}/pkgconfig
105 %{_libdir}/pkgconfig/*.pc
108 * Wed Sep 27 2017 Dominig
110 * Tue Aug 01 2017 Ronan