BuildRequires: file-devel
BuildRequires: gcc-c++
+%if 0%{?suse_version}
+Requires: libmicrohttpd12 >= 0.9.60
+%endif
+
+%if 0%{?fedora_version}
Requires: libmicrohttpd >= 0.9.60
+%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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}
%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}
#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
%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