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.60
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++
32 Requires: libmicrohttpd12 >= 0.9.60
35 %if 0%{?fedora_version}
36 Requires: libmicrohttpd >= 0.9.60
39 BuildRoot: %{_tmppath}/%{name}-%{version}-build
42 Provides a test agl binder service which can be used to test agl bindings on Linux PC
43 This service is evolving permanently and is only designed as a helper for developper.
46 Group: Development/Libraries/C and C++
47 Requires: %{name} = %{version}
48 Provides: pkgconfig(%{name}) = %{version}
49 Summary: AGL app-framework-binder-devel
51 Provides a test agl binder service which can be used to test agl bindings on Linux PC
52 This service is evolving permanently and is only designed as a helper for developper.
55 Requires: %{name} = %{version}
56 Summary: AGL app-framework-binder-samples
58 Provides sample bindings for testing AGL framework binder
62 %setup -q -n app-framework-binder-%{version}
65 export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
66 %cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON
67 %__make %{?_smp_mflags}
71 [ -d build ] && cd build
74 mkdir -p %{buildroot}%{_sysconfdir}/profile.d
75 cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
76 #---------- AGL %%{name} options Start ---------"
77 # Object: AGL cmake option for binder/bindings
78 export LD_LIBRARY_PATH=%{_libdir}:\${LD_LIBRARY_PATH}
79 export LIBRARY_PATH=%{_libdir}:\${LIBRARY_PATH}
80 export PKG_CONFIG_PATH=%{_libdir}/pkgconfig:\${PKG_CONFIG_PATH}
81 export PATH=%{_bindir}:\$PATH
82 #---------- AGL options End ---------
92 %{_bindir}/afb-client-demo
94 %{_bindir}/afb-genskel
95 %{_bindir}/afb-exprefs
100 %{_libdir}/libafbwsc.so.1
101 %{_libdir}/libafbwsc.so.1.1
103 #app-framework-binder demo
105 %config(noreplace) %{_sysconfdir}/profile.d/%{name}.sh
107 #app-framework-binder monitoring
108 %dir %{_libdir}/afb/monitoring
109 %{_libdir}/afb/monitoring/*
112 %defattr(-,root,root)
114 %{_libdir}/libafbwsc.so
116 %dir %{_includedir}/afb
118 %dir %{_libdir}/pkgconfig
119 %{_libdir}/pkgconfig/*.pc
122 %defattr(-,root,root)
124 %dir %{_datadir}/af-binder
125 %{_datadir}/af-binder/*
128 * Wed Sep 27 2017 Dominig
130 * Tue Aug 01 2017 Ronan