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: pkgconfig(libmicrohttpd) >= 0.9.62
BuildRequires: make
BuildRequires: cmake
BuildRequires: pkgconfig(libsystemd) >= 222
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
%description
%build
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
-%cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON
+%cmake -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON"
%__make %{?_smp_mflags}
%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}