From a71c8a5a2fb95f5d12992d4952d72c60d5536b7d Mon Sep 17 00:00:00 2001 From: panxiaohe Date: Tue, 28 Jun 2022 11:02:10 +0800 Subject: [PATCH] add make test --- libsepol.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/libsepol.spec b/libsepol.spec index 558a38a..977c05d 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -1,12 +1,13 @@ Name: libsepol Version: 3.3 -Release: 2 +Release: 3 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 BuildRequires: gcc flex +BuildRequires: ncurses ncurses-devel CUnit-devel byacc bison flex-static libsepol-static >= 3.3 libselinux-devel >= 3.3 %description libsepol provides an API for the manipulation of SELinux binary @@ -36,6 +37,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 @@ -64,10 +72,13 @@ make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install %{_mandir}/man3/* %changelog -* Tue Mar 15 2022 panxiaohe - 3.3-2 +* Mon Jun 27 2022 panxiaohe - 3.3-3 +- add make test + +* Tue Mar 15 2022 panxiaohe - 3.3-2 - delete useless old version dynamic library -* Thu Dec 2 2021 panxiaohe - 3.3-1 +* Thu Dec 2 2021 panxiaohe - 3.3-1 - update to 3.3 * Fri Sep 10 2021 panxiaohe - 3.1-5 -- Gitee