| |
@@ -51,6 +51,17 @@
|
| |
Provides: /sbin/fixfiles
|
| |
Provides: /sbin/restorecon
|
| |
|
| |
+ %if "%{_sbindir}" == "%{_bindir}"
|
| |
+ # Compat symlinks for Requires in other packages.
|
| |
+ # We rely on filesystem to create the symlinks for us.
|
| |
+ Requires: filesystem(unmerged-sbin-symlinks)
|
| |
+ Provides: /usr/sbin/restorecon
|
| |
+ Provides: /usr/sbin/fixfiles
|
| |
+ Provides: /usr/sbin/setfiles
|
| |
+ Provides: /usr/sbin/setsebool
|
| |
+ Provides: /usr/sbin/semodule
|
| |
+ %endif
|
| |
+
|
| |
BuildRequires: gcc make
|
| |
BuildRequires: pam-devel libsepol-static >= %{libsepolver} libsemanage-devel >= %{libsemanagever} libselinux-devel >= %{libselinuxver} libcap-devel audit-libs-devel >= %{libauditver} gettext
|
| |
BuildRequires: desktop-file-utils dbus-devel glib2-devel
|
| |
@@ -137,8 +148,8 @@
|
| |
rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/restorecond
|
| |
|
| |
rm -f %{buildroot}/usr/share/man/man8/open_init_pty.8
|
| |
- rm -f %{buildroot}/usr/sbin/open_init_pty
|
| |
- rm -f %{buildroot}/usr/sbin/run_init
|
| |
+ rm -f %{buildroot}%{_sbindir}/open_init_pty
|
| |
+ rm -f %{buildroot}%{_sbindir}/run_init
|
| |
rm -f %{buildroot}/usr/share/man/man8/run_init.8*
|
| |
rm -f %{buildroot}/etc/pam.d/run_init*
|
| |
|
| |
@@ -164,6 +175,13 @@
|
| |
Obsoletes: policycoreutils-python <= 2.4-4
|
| |
BuildArch: noarch
|
| |
|
| |
+ %if "%{_sbindir}" == "%{_bindir}"
|
| |
+ # Compat symlinks for Requires in other packages.
|
| |
+ # We rely on filesystem to create the symlinks for us.
|
| |
+ Requires: filesystem(unmerged-sbin-symlinks)
|
| |
+ Provides: /usr/sbin/semanage
|
| |
+ %endif
|
| |
+
|
| |
%description python-utils
|
| |
The policycoreutils-python-utils package contains the management tools use to manage
|
| |
an SELinux environment.
|
| |
@@ -349,8 +367,10 @@
|
| |
%{_sbindir}/genhomedircon
|
| |
%{_sbindir}/setsebool
|
| |
%{_sbindir}/semodule
|
| |
+ %if "%{_sbindir}" != "%{_bindir}"
|
| |
# symlink to %%{_bindir}/sestatus
|
| |
%{_sbindir}/sestatus
|
| |
+ %endif
|
| |
%{_bindir}/secon
|
| |
%{_bindir}/semodule_expand
|
| |
%{_bindir}/semodule_link
|
| |
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
This commit makes things compatible with the state before and after
the merge.