libselinux update to 3.1

Signed-off-by: gaoyusong <gaoyusong1@huawei.com>
This commit is contained in:
huangzq6 2020-08-27 22:33:44 +08:00 committed by gys
parent f5b818a636
commit e74029da4c
3 changed files with 11 additions and 7 deletions

Binary file not shown.

BIN
libselinux-3.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,13 @@
%global ruby_inc %(pkg-config --cflags ruby)
%global libsepol_version 2.8-1
%global libsepol_version 2.8
Name: libselinux
Version: 2.9
Release: 2
Version: 3.1
Release: 1
License: Public Domain
Summary: SELinux library and simple utilities
Url: https://github.com/SELinuxProject/selinux/wiki
Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libselinux-2.9.tar.gz
Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20180524/libselinux-3.1.tar.gz
BuildRequires: gcc python3-devel systemd swig pcre2-devel xz-devel
BuildRequires: python2-devel ruby-devel libsepol-static >= %{libsepol_version}
@ -16,7 +16,6 @@ Requires: libsepol >= %{libsepol_version} pcre2
Conflicts: filesystem < 3, selinux-policy-base < 3.13.1-138
Provides: %{name}-utils
Obsoletes: %{name}-utils
%description
libselinux provides an interface to get and set process and file
@ -28,7 +27,6 @@ Requires: %{name} = %{version}-%{release}
Requires: libsepol-devel >= %{libsepol_version}
Provides: %{name}-static
Obsoletes: %{name}-static
%description devel
libselinux provides an interface to get and set process and file
@ -114,6 +112,7 @@ mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
%{_sbindir}/{selabel_lookup_best_match,selabel_partial_match,selinux_check_access}
%{_sbindir}/{avcstat,getenforce,getsebool,matchpathcon,sefcontext_compile,selinuxconlist}
%{_sbindir}/{selinuxdefcon,selinuxexeccon,selinuxenabled,setenforce,selabel_digest,selabel_lookup}
%{_sbindir}/{selabel_get_digests_all_partial_matches,validatetrans}
%dir %{_rundir}/setrans/
%{_tmpfilesdir}/libselinux.conf
@ -125,10 +124,12 @@ mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
%files -n python2-libselinux
%{python2_sitearch}/selinux/
%{python2_sitearch}/_selinux.so
%{python2_sitearch}/selinux-%{version}-*
%{python2_sitearch}/_selinux
%files -n python3-libselinux
%{python3_sitearch}/selinux/
%{python3_sitearch}/selinux-%{version}-*
%{python3_sitearch}/_selinux.*.so
%files ruby
@ -142,6 +143,9 @@ mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
%{_mandir}/ru/man8/*
%changelog
* Tue Aug 18 2020 gaoyusong<gaoyusong1@huawei.com> - 3.1-1
- libselinux Update to 3.1
* Tue Aug 18 2020 wenzhanli<wenzhanli2@huawei.com> - 2.9-2
- add release version for update