diff --git a/checkpolicy-3.3.tar.gz b/checkpolicy-3.3.tar.gz deleted file mode 100644 index e86f551e0d82b7973f1a1d73303b37ecb4f0b0f1..0000000000000000000000000000000000000000 Binary files a/checkpolicy-3.3.tar.gz and /dev/null differ diff --git a/checkpolicy-3.4.tar.gz b/checkpolicy-3.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4f3180c9023cc4a415ac9190f9d852c011f7fcb0 Binary files /dev/null and b/checkpolicy-3.4.tar.gz differ diff --git a/checkpolicy.spec b/checkpolicy.spec index 771b6de5ebee69190856bf0dc920c43ee21353f5..95e32ab608b398c7ee816c57ae799e8e23fdb5c9 100644 --- a/checkpolicy.spec +++ b/checkpolicy.spec @@ -1,13 +1,13 @@ %define anolis_release 1 -%define libselinuxver 3.3-1 -%define libsepolver 3.3-1 +%define libselinuxver 3.4-1 +%define libsepolver 3.4-1 Summary: SELinux policy compiler Name: checkpolicy -Version: 3.3 +Version: 3.4 Release: %{anolis_release}%{?dist} License: GPLv2 -Source0: https://github.com/SELinuxProject/selinux/releases/download/3.3/checkpolicy-3.3.tar.gz +Source0: https://github.com/SELinuxProject/selinux/releases/download/3.4/checkpolicy-3.4.tar.gz # $ git clone https://github.com/fedora-selinux/selinux.git # $ cd selinux # $ git format-patch -N 3.3 -- checkpolicy @@ -32,8 +32,16 @@ Control, and Multi-level Security. This package contains checkpolicy, the SELinux policy compiler. Only required for building policies. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep -%autosetup -p 2 -n checkpolicy-%{version} +%autosetup -p 2 -n %{name}-%{version} %build @@ -54,13 +62,19 @@ install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol %license COPYING %{_bindir}/checkpolicy %{_bindir}/checkmodule -%{_mandir}/man8/checkpolicy.8.gz -%{_mandir}/man8/checkmodule.8.gz -%{_mandir}/ru/man8/checkpolicy.8.gz -%{_mandir}/ru/man8/checkmodule.8.gz %{_bindir}/sedismod %{_bindir}/sedispol +%{_mandir}/man8/checkpolicy.8.zst +%{_mandir}/man8/checkmodule.8.zst +%{_mandir}/ru/man8/checkpolicy.8.zst +%{_mandir}/ru/man8/checkmodule.8.zst + +%files doc +%doc VERSION %changelog +* Wed Dec 28 2022 Jing Zhang - 3.4-1 +- update to 3.4 and optimise spec file + * Wed Mar 09 2022 Yuanhong Peng - 3.3-1 - Init from upstream v3.3