diff --git a/libsemanage-2.9.tar.gz b/libsemanage-2.9.tar.gz deleted file mode 100644 index 9f73aff8dc026e53f6537dcf98f91b6f25435df7..0000000000000000000000000000000000000000 Binary files a/libsemanage-2.9.tar.gz and /dev/null differ diff --git a/libsemanage-3.1.tar.gz b/libsemanage-3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cbcf74da639c7ab6ddee4b068af4f3db71951f68 Binary files /dev/null and b/libsemanage-3.1.tar.gz differ diff --git a/libsemanage.spec b/libsemanage.spec index d5e2853f2ece296df81fb27947311340601ac704..b7cd97f0f42340f2f3b0f3767af908a50fefda31 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -1,13 +1,13 @@ -%define libsepol_version 2.8-1 -%define libselinux_version 2.8-1 +%define libsepol_version 3.1-1 +%define libselinux_version 3.1-1 Name: libsemanage -Version: 2.9 -Release: 2 +Version: 3.1 +Release: 1 License: LGPLv2+ Summary: SELinux binary policy manipulation library URL: https://github.com/SELinuxProject/selinux/wiki -Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libsemanage-2.9.tar.gz +Source0: https://github.com/SELinuxProject/selinux/releases/download/20200710/libsemanage-3.1.tar.gz Source1: semanage.conf BuildRequires: gcc python3-devel python2-devel bison flex bzip2-devel audit-libs-devel @@ -26,23 +26,13 @@ file_contexts configuration is valid. %package devel Summary: Header files and libraries used to build policy manipulation tools Requires: %{name} = %{version}-%{release} ustr -Provides: libsemanage-static -Obsoletes: libsemanage-static +Provides: libsemanage-static = %{version}-%{release} +Obsoletes: libsemanage-static < %{version}-%{release} %description devel The libsemanage-devel package contains the libraries and header files needed for developing applications that manipulate SELinux policies. -%package -n python2-libsemanage -Summary: python2 bindings for libsemanage -Provides: %{name}-python = %{version}-%{release} -Obsoletes: %{name}-python < %{version}-%{release} -Requires: %{name} = %{version}-%{release} - -%description -n python2-libsemanage -The python3-libsemanage package contains the python bindings for developing -SELinux management applications. - %package -n python3-libsemanage Summary: python3 bindings for libsemanage Requires: %{name} = %{version}-%{release} libselinux-python3 @@ -64,7 +54,6 @@ export LDFLAGS="%{?__global_ldflags}" make clean %make_build CFLAGS="%{optflags}" swigify %make_build CFLAGS="%{optflags}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all -%make_build %{__python2} LIBDIR="%{_libdir}" CFLAGS="-g %{optflags}" pywrap %make_build %{__python3} LIBDIR="%{_libdir}" CFLAGS="-g %{optflags}" pywrap %install @@ -74,7 +63,6 @@ mkdir -p %{buildroot}%{_sharedstatedir}/selinux mkdir -p %{buildroot}%{_sharedstatedir}/selinux/tmp make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install -make PYTHON=%{__python2} DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" install-pywrap make PYTHON=%{__python3} DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" install-pywrap cp %{SOURCE1} %{buildroot}/etc/selinux/semanage.conf @@ -98,10 +86,6 @@ ln -sf %{_libdir}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so %dir %{_includedir}/semanage %{_includedir}/semanage/*.h -%files -n python2-libsemanage -%{python2_sitearch}/_semanage.so -%{python2_sitearch}/semanage.py* - %files -n python3-libsemanage %{python3_sitearch}/*.so %{python3_sitearch}/semanage.py* @@ -115,6 +99,9 @@ ln -sf %{_libdir}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so %changelog +* Sat Jul 25 2020 openEuler Buildteam - 3.1-1 +- update to 3.1 + * Thu Mar 19 2020 openEuler Buildteam - 2.9-2 - add BuildRequires: gdb