X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf.d%2Fpackaging%2Frpm%2Fagl-app-framework-binder.spec;h=7102e8630cc32919932f7d4de32fd683ddd36c95;hb=78fcce21a8b611de175223bff67f4a49fa95e64e;hp=150fd9f6c21bb0f5cdcce394a954807f220de6bb;hpb=51b8ff088991a18d744b6b86430afc8d83c4fcd8;p=src%2Fapp-framework-binder.git diff --git a/conf.d/packaging/rpm/agl-app-framework-binder.spec b/conf.d/packaging/rpm/agl-app-framework-binder.spec index 150fd9f6..7102e863 100644 --- a/conf.d/packaging/rpm/agl-app-framework-binder.spec +++ b/conf.d/packaging/rpm/agl-app-framework-binder.spec @@ -51,13 +51,19 @@ Summary: AGL app-framework-binder-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. +%package samples +Requires: %{name} = %{version} +Summary: AGL app-framework-binder-samples +%description samples +Provides sample bindings for testing AGL framework binder + %prep %setup -q -n app-framework-binder-%{version} %build export PKG_CONFIG_PATH=%{_libdir}/pkgconfig -%cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON -DCMAKE_C_FLAGS="-D_FORTIFY_SOURCE=1" +%cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON %__make %{?_smp_mflags} @@ -66,7 +72,7 @@ export PKG_CONFIG_PATH=%{_libdir}/pkgconfig %make_install mkdir -p %{buildroot}%{_sysconfdir}/profile.d -cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/AGL-%{name}.sh +cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh #---------- AGL %%{name} options Start ---------" # Object: AGL cmake option for binder/bindings export LD_LIBRARY_PATH=%{_libdir}:\${LD_LIBRARY_PATH} @@ -96,7 +102,7 @@ EOF #app-framework-binder demo %{_libdir}/afb/*.so -%config(noreplace) %{_sysconfdir}/profile.d/AGL-%{name}.sh +%config(noreplace) %{_sysconfdir}/profile.d/%{name}.sh #app-framework-binder monitoring %dir %{_libdir}/afb/monitoring @@ -112,6 +118,12 @@ EOF %dir %{_libdir}/pkgconfig %{_libdir}/pkgconfig/*.pc +%files samples +%defattr(-,root,root) +%dir %{_datadir} +%dir %{_datadir}/af-binder +%{_datadir}/af-binder/* + %changelog * Wed Sep 27 2017 Dominig - move to git repo