diff --git a/libsepol.spec b/libsepol.spec index e81bac4db8f6bb46869bc8e6240fe2ed86e4091f..127fade5113f29bf4d7b975098e02f033cfb0d8c 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -1,6 +1,6 @@ Name: libsepol Version: 3.1 -Release: 7 +Release: 8 Summary: SELinux binary policy manipulation library License: LGPLv2+ URL: https://github.com/SELinuxProject/selinux/wiki/Releases @@ -49,6 +49,7 @@ Patch39: backport-libsepol-cil-Reset-expandtypeattribute-rules-when-re.pa Patch40: backport-libsepol-cil-do-not-allow-0-in-quoted-strings.patch BuildRequires: gcc flex +BuildRequires: ncurses ncurses-devel CUnit-devel byacc bison flex-static libsepol-static >= 3.1 libselinux-devel >= 3.1 %description libsepol provides an API for the manipulation of SELinux binary @@ -78,6 +79,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 %_topdir/SOURCES/checkpolicy-3.1.tar.gz -C ../checkpolicy --strip-components 1 +make -C ../checkpolicy +make test + %pre %preun @@ -106,6 +114,9 @@ make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install %{_mandir}/man3/* %changelog +* Mon Jun 27 2022 panxiaohe - 3.1-8 +- add make test + * Tue Feb 15 2022 panxiaohe - 3.1-7 - libsepol/cil: do not allow \0 in quoted strings