diff --git a/mcstrans.spec b/mcstrans.spec index 9355c55..56450bd 100644 --- a/mcstrans.spec +++ b/mcstrans.spec @@ -14,6 +14,7 @@ Requires(post):/sbin/chkconfig /sbin/service Provides: setransd Provides: libsetrans Obsoletes: libsetrans +Conflicts: filesystem < 3 %description Security-enhanced Linux is a feature of the Linux® kernel and a number @@ -38,13 +39,12 @@ make LIBDIR="%{_libdir}" CFLAGS="-g %{optflags}" %{?_smp_mflags} %install rm -rf %{buildroot} -mkdir -p %{buildroot}/%{_lib} -mkdir -p %{buildroot}/%{_libdir} +mkdir -p %{buildroot}%{_sbindir} +mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_usr}/share/mcstrans mkdir -p %{buildroot}%{_sysconfdir}/selinux/mls/setrans.d -make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install -rm -f %{buildroot}%{_sbindir}/* +make DESTDIR="%{buildroot}" SBINDIR="%{buildroot}%{_sbindir}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}%{_libdir}" install rm -f %{buildroot}%{_libdir}/*.a cp -r share/* %{buildroot}%{_usr}/share/mcstrans/ @@ -73,7 +73,7 @@ fi %{_mandir}/man8/mcs.8.gz %{_mandir}/man8/mcstransd.8.gz %{_mandir}/man8/setrans.conf.8.gz -/sbin/mcstransd +%{_sbindir}/mcstransd %{_sysconfdir}/rc.d/init.d/mcstrans %dir %{_sysconfdir}/selinux/mls/setrans.d