diff --git a/libsepol.spec b/libsepol.spec index f68798e239327b636a7dd2d29925d8beb9e803be..cc34e0489185a09282b9aa69e02f13ce8f490491 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -1,10 +1,11 @@ Name: libsepol Version: 3.3 -Release: 4 +Release: 5 Summary: SELinux binary policy manipulation library License: LGPLv2+ URL: https://github.com/SELinuxProject/selinux/wiki/Releases Source0: https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz +Source1: checkpolicy-3.3.tar.gz Patch0001: backport-libsepol-add-missing-oom-checks.patch Patch0002: backport-libsepol-check-correct-pointer-for-oom.patch @@ -15,6 +16,7 @@ Patch0006: backport-libsepol-rename-validate_policydb-to-policydb_validate. Patch0007: backport-libsepol-fix-missing-double-quotes-in-typetransition-CIL-rule.patch BuildRequires: gcc flex +BuildRequires: bison ncurses ncurses-devel CUnit-devel byacc bison flex-static libsepol-static >= 3.1-1 libselinux-devel >= 3.1-1 %description libsepol provides an API for the manipulation of SELinux binary @@ -44,6 +46,13 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" rm -rf %{buildroot} make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install +%check +rm -rf ../checkpolicy +mkdir ../checkpolicy +tar -zxf %{SOURCE1} -C ../checkpolicy --strip-components 1 +make -C ../checkpolicy +make test + %pre %preun @@ -72,6 +81,9 @@ make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install %{_mandir}/man3/* %changelog +* Sun Jun 25 2023 jinlun - 3.3-5 +- add code check + * Fri Nov 18 2022 jinlun - 3.3-4 - backport upstream patch and update release to adapt baseline