Use /run instead of /var/run
Follow the guidelines for tmpfiles.d https://fedoraproject.org/wiki/Packaging:Tmpfiles.d Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1476798
This commit is contained in:
parent
6979f56e01
commit
e8da680b55
@ -31,6 +31,7 @@ BuildRequires: python python-devel ruby-devel ruby libsepol-static >= %{libsepol
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3 python3-devel
|
||||
%endif # if with_python3
|
||||
BuildRequires: systemd
|
||||
Requires: libsepol%{?_isa} >= %{libsepolver} pcre
|
||||
Conflicts: filesystem < 3, selinux-policy-base < 3.13.1-138
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -156,12 +157,12 @@ InstallPythonWrapper() {
|
||||
}
|
||||
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}/%{_prefix}/lib/tmpfiles.d
|
||||
mkdir -p %{buildroot}/%{_libdir}
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
mkdir -p %{buildroot}%{_includedir}
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
mkdir -p %{buildroot}/var/run/setrans
|
||||
echo "d /var/run/setrans 0755 root root" > %{buildroot}/%{_prefix}/lib/tmpfiles.d/libselinux.conf
|
||||
install -d -m 0755 %{buildroot}%{_rundir}/setrans
|
||||
echo "d %{_rundir}/setrans 0755 root root" > %{buildroot}%{_tmpfilesdir}/libselinux.conf
|
||||
|
||||
InstallPythonWrapper %{__python}
|
||||
%if 0%{?with_python3}
|
||||
@ -203,9 +204,9 @@ rm -rf %{buildroot}
|
||||
%defattr(-,root,root,-)
|
||||
%license LICENSE
|
||||
%{_libdir}/libselinux.so.*
|
||||
%ghost /var/run/setrans
|
||||
%dir %{_rundir}/setrans/
|
||||
%{_sbindir}/sefcontext_compile
|
||||
%{_prefix}/lib/tmpfiles.d/libselinux.conf
|
||||
%{_tmpfilesdir}/libselinux.conf
|
||||
|
||||
%files utils
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
Reference in New Issue
Block a user