diff --git a/policycoreutils.spec b/policycoreutils.spec index 098572d060a41b0c9b0ad8094b144c27e0947ca9..d4033a9947a5cabd76f3062bff17a0fc4396d5fd 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 %global libauditver 3.0 %global libsepolver 3.4-1 %global libsemanagever 3.4-1 @@ -14,9 +14,8 @@ Name: policycoreutils Version: 3.4 Release: %{anolis_release}%{?dist} License: GPLv2 -# https://github.com/SELinuxProject/selinux/wiki/Releases -Source0: https://github.com/SELinuxProject/selinux/releases/download/3.4/selinux-3.4.tar.gz URL: https://github.com/SELinuxProject/selinux +Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/selinux-%{version}.tar.gz Patch0001: 0001-Simplication-of-sepolicy-manpage-web-functionality.patch Patch0002: 0002-remove-the-trailing-newline-for-etc-syste.patch @@ -94,9 +93,9 @@ chmod 0755 %{buildroot}%{_bindir}/newrole # Systemd rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/restorecond -rm -f %{buildroot}/usr/share/man/ru/man8/genhomedircon.8.gz +rm -f %{buildroot}/usr/share/man/ru/man8/genhomedircon.8.* rm -f %{buildroot}/usr/share/man/ru/man8/open_init_pty.8* -rm -f %{buildroot}/usr/share/man/ru/man8/semodule_deps.8.gz +rm -f %{buildroot}/usr/share/man/ru/man8/semodule_deps.8.* 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 @@ -221,7 +220,7 @@ by python 3 in an SELinux environment. %package devel Summary: SELinux policy core policy devel utilities Requires: policycoreutils-python-utils = %{version}-%{release} -Requires: /usr/bin/make dnf +Requires: make dnf Requires: (selinux-policy-devel if selinux-policy) %description devel @@ -284,8 +283,8 @@ or level of a logged in user. %files newrole %attr(0755,root,root) %caps(cap_dac_read_search,cap_setpcap,cap_audit_write,cap_sys_admin,cap_fowner,cap_chown,cap_dac_override=pe) %{_bindir}/newrole -%{_mandir}/man1/newrole.1.gz -%{_mandir}/ru/man1/newrole.1.gz +%{_mandir}/man1/newrole.1.* +%{_mandir}/ru/man1/newrole.1.* %config(noreplace) %{_sysconfdir}/pam.d/newrole %package gui @@ -350,10 +349,10 @@ system-config-selinux is a utility for managing the SELinux environment %{_bindir}/sestatus %{_libexecdir}/selinux/hll %config(noreplace) %{_sysconfdir}/sestatus.conf -%{_mandir}/man5/selinux_config.5.gz -%{_mandir}/ru/man5/selinux_config.5.gz -%{_mandir}/man5/sestatus.conf.5.gz -%{_mandir}/ru/man5/sestatus.conf.5.gz +%{_mandir}/man5/selinux_config.5.* +%{_mandir}/ru/man5/selinux_config.5.* +%{_mandir}/man5/sestatus.conf.5.* +%{_mandir}/ru/man5/sestatus.conf.5.* %{_mandir}/man8/fixfiles.8* %{_mandir}/ru/man8/fixfiles.8* %{_mandir}/man8/load_policy.8* @@ -411,6 +410,17 @@ The policycoreutils-restorecond package contains the restorecond service. %{!?_licensedir:%global license %%doc} %license policycoreutils/COPYING +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + +%files doc +%doc CONTRIBUTING.md README.md VERSION + %post restorecond %systemd_post restorecond.service @@ -421,6 +431,9 @@ The policycoreutils-restorecond package contains the restorecond service. %systemd_postun_with_restart restorecond.service %changelog +* Mon Jan 09 2023 yuanhui - 3.4-4 +- add doc package + * Mon Oct 31 2022 Chunmei Xu - 3.4-3 - add python3-networkx as Requires to policycoreutils-python-utils