diff --git a/libsepol.spec b/libsepol.spec index 558a38a28e0bb1552750b02dabc451db563a84fb..977c05d9adce82e6676070cb2ac5c98cb400364f 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