From 342de4c6d33dd794a97b5e19f1c4e263134324eb Mon Sep 17 00:00:00 2001 From: jinlun Date: Sun, 25 Jun 2023 06:27:14 +0000 Subject: [PATCH] libsepol:add code check Signed-off-by: jinlun --- libsepol.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libsepol.spec b/libsepol.spec index f68798e..621ec04 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -1,6 +1,6 @@ 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 @@ -44,6 +44,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.3.tar.gz -C ../checkpolicy --strip-components 1 +make -C ../checkpolicy +make test + %pre %preun @@ -72,6 +79,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 -- Gitee