diff --git a/sblim-sfcb.spec b/sblim-sfcb.spec index 56dfffa..752808d 100644 --- a/sblim-sfcb.spec +++ b/sblim-sfcb.spec @@ -30,6 +30,9 @@ BuildRequires: bison flex Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units +BuildRequires: systemd-units +Conflicts: systemd < 38 +Conflicts: filesystem < 3 %Description Small Footprint CIM Broker (sfcb) is a CIM server conforming to the @@ -88,8 +91,8 @@ echo "%{_libdir}/sfcb/*.so" >> _pkg_list #echo "%{_libdir}/sfcb/*.la" >> _pkg_list cat _pkg_list -mkdir -p $RPM_BUILD_ROOT/lib/systemd/system -install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT/lib/systemd/system/sfcb.service +mkdir -p $RPM_BUILD_ROOT%{_unitdir} +install -p -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/sfcb.service %clean rm -rf $RPM_BUILD_ROOT @@ -135,7 +138,7 @@ if [ $1 -eq 0 ]; then fi; %files -f _pkg_list -/lib/systemd/system/sfcb.service +%{_unitdir}/sfcb.service #%files devel #%defattr(-,root,root) ##%{_includedir}/*