diff --git a/checkpolicy-3.4.tar.gz b/checkpolicy-3.4.tar.gz deleted file mode 100644 index 4f3180c9023cc4a415ac9190f9d852c011f7fcb0..0000000000000000000000000000000000000000 Binary files a/checkpolicy-3.4.tar.gz and /dev/null differ diff --git a/checkpolicy-3.5.tar.gz b/checkpolicy-3.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..871b4efc2345e0dd57ff14780a852424e66b0b45 Binary files /dev/null and b/checkpolicy-3.5.tar.gz differ diff --git a/checkpolicy.spec b/checkpolicy.spec index 95e32ab608b398c7ee816c57ae799e8e23fdb5c9..af770b803da89825316370c0095c5b8fc020d41a 100644 --- a/checkpolicy.spec +++ b/checkpolicy.spec @@ -1,13 +1,11 @@ %define anolis_release 1 -%define libselinuxver 3.4-1 -%define libsepolver 3.4-1 Summary: SELinux policy compiler Name: checkpolicy -Version: 3.4 +Version: 3.5 Release: %{anolis_release}%{?dist} License: GPLv2 -Source0: https://github.com/SELinuxProject/selinux/releases/download/3.4/checkpolicy-3.4.tar.gz +Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz # $ git clone https://github.com/fedora-selinux/selinux.git # $ cd selinux # $ git format-patch -N 3.3 -- checkpolicy @@ -16,7 +14,8 @@ Source0: https://github.com/SELinuxProject/selinux/releases/download/3.4/checkpo # Patch list end BuildRequires: gcc BuildRequires: make -BuildRequires: byacc bison flex flex-static libsepol-static >= %{libsepolver} libselinux-devel >= %{libselinuxver} +BuildRequires: byacc bison flex flex-static +BuildRequires: libsepol-static >= %{version} %description Security-enhanced Linux is a feature of the Linux® kernel and a number @@ -58,21 +57,23 @@ install test/dismod ${RPM_BUILD_ROOT}%{_bindir}/sedismod install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol %files -%{!?_licensedir:%global license %%doc} -%license COPYING +%license LICENSE %{_bindir}/checkpolicy %{_bindir}/checkmodule %{_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 +%{_mandir}/man8/checkpolicy.8* +%{_mandir}/man8/checkmodule.8* +%lang(ru) %{_mandir}/ru/man8/checkpolicy.8* +%lang(ru) %{_mandir}/ru/man8/checkmodule.8* %files doc %doc VERSION %changelog +* Wed Mar 01 2023 Funda Wang - 3.5-1 +- New version 3.5 + * Wed Dec 28 2022 Jing Zhang - 3.4-1 - update to 3.4 and optimise spec file