diff --git a/libsepol-3.3.tar.gz b/libsepol-3.3.tar.gz deleted file mode 100644 index 5066cade101e94feea3594b7e9078885bbff622f..0000000000000000000000000000000000000000 Binary files a/libsepol-3.3.tar.gz and /dev/null differ diff --git a/libsepol-3.4.tar.gz b/libsepol-3.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..56a1efc91e3659b02c6e4c43965f687795860480 Binary files /dev/null and b/libsepol-3.4.tar.gz differ diff --git a/libsepol.spec b/libsepol.spec index 1457762711b57d6d7b56f5310754dfda888eeeca..fcd8ce20d9c47f91a2b58c993e13f04f0a24bc18 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -2,16 +2,16 @@ Summary: SELinux binary policy manipulation library Name: libsepol -Version: 3.3 +Version: 3.4 Release: %{anolis_release}%{?dist} License: LGPLv2+ -Source0: https://github.com/SELinuxProject/selinux/releases/download/3.3/libsepol-3.3.tar.gz +Source0: https://github.com/SELinuxProject/selinux/releases/download/3.4/libsepol-3.4.tar.gz URL: https://github.com/SELinuxProject/selinux/wiki BuildRequires: make BuildRequires: gcc BuildRequires: flex -Obsoletes: %{name}-compat = 3.1-4 +Obsoletes: %{name}-compat = 3.1 %description Security-enhanced Linux is a feature of the Linux® kernel and a number @@ -31,7 +31,7 @@ on binary policies such as customizing policy boolean settings. %package devel Summary: Header files and libraries used to build policy manipulation tools -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel The libsepol-devel package contains the libraries and header files @@ -39,12 +39,19 @@ needed for developing applications that manipulate binary policies. %package static Summary: static libraries used to build policy manipulation tools -Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} %description static The libsepol-static package contains the static libraries and header files needed for developing applications that manipulate binary policies. +%package utils +Summary: SELinux libsepol utilities +Requires: %{name} = %{version}-%{release} + +%description utils +The libsepol-utils package contains the utilities + %prep %autosetup -p 2 -n libsepol-%{version} @@ -52,7 +59,7 @@ needed for developing applications that manipulate binary policies. %build %set_build_flags CFLAGS="$CFLAGS -fno-semantic-interposition" -%make_build +%make_build LIBDIR="%{_libdir}" %install mkdir -p ${RPM_BUILD_ROOT}%{_libdir} @@ -61,10 +68,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man3 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8 %make_install LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" -rm -f ${RPM_BUILD_ROOT}%{_bindir}/genpolbools -rm -f ${RPM_BUILD_ROOT}%{_bindir}/genpolusers -rm -f ${RPM_BUILD_ROOT}%{_bindir}/chkcon -rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man8 +rm -rf ${RPM_BUILD_ROOT}%{_mandir}/man8/gen* rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/man8 %files static @@ -85,7 +89,19 @@ rm -rf ${RPM_BUILD_ROOT}%{_mandir}/ru/man8 %license COPYING %{_libdir}/libsepol.so.2 +%files utils +%{_bindir}/chkcon +%{_bindir}/sepol_check_access +%{_bindir}/sepol_compute_av +%{_bindir}/sepol_compute_member +%{_bindir}/sepol_compute_relabel +%{_bindir}/sepol_validate_transition +%{_mandir}/man8/chkcon.8.gz + %changelog +* Tue Sep 27 2022 mgb01105731 - 3.4-1 +- update to 3.4 + * Tue Mar 08 2022 Hongwei Qin - 3.3-1 - SELinux userspace 3.3 release - Init for Anolis OS 23