rebuilt with python3 [release 3.1-2mamba;Fri Nov 27 2020]
This commit is contained in:
parent
350c6de4a4
commit
5b622592b0
@ -1,7 +1,7 @@
|
||||
%define majver %(echo %version | cut -d. -f1-2)
|
||||
Name: libselinux
|
||||
Version: 3.0
|
||||
Release: 1mamba
|
||||
Version: 3.1
|
||||
Release: 2mamba
|
||||
Summary: A security enhancement to Linux that allows users and administrators more control over resources access
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
@ -16,7 +16,7 @@ License: Public Domain
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libpcre-devel
|
||||
%if "%{stage1}" != "1"
|
||||
BuildRequires: libpython-devel
|
||||
BuildRequires: libpython3-devel
|
||||
BuildRequires: libsepol-devel
|
||||
%endif
|
||||
## AUTOBUILDREQ-END
|
||||
@ -41,15 +41,17 @@ SELinux also adds finer granularity to access controls. Instead of only being ab
|
||||
This package contains static libraries and header files need for development.
|
||||
|
||||
%if "%{stage1}" != "1"
|
||||
%package python
|
||||
%package -n python-selinux-py3
|
||||
Group: System/Libraries
|
||||
Summary: Python bindings for libselinux
|
||||
Provides: python-libselinux = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Obsoletes: python-libselinux
|
||||
Provides: libselinux-python
|
||||
Obsoletes: libselinux-python
|
||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
%{py_requires}
|
||||
%{py3_requires}
|
||||
|
||||
%description python
|
||||
%description -n python-selinux-py3
|
||||
The libselinux-python package contains the python bindings for developing SELinux applications.
|
||||
|
||||
An interface for security-aware applications.
|
||||
@ -96,7 +98,7 @@ cd libselinux
|
||||
LIBDIR=%{_libdir} \
|
||||
SHLIBDIR=%{_libdir} \
|
||||
%if "%{stage1}" != "1"
|
||||
PYTHON=%{__python36} \
|
||||
PYTHON=%{__python3} \
|
||||
install-pywrap
|
||||
%endif
|
||||
|
||||
@ -133,14 +135,20 @@ install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/selinux/config
|
||||
%lang(ru) %{_mandir}/ru/man8/*
|
||||
|
||||
%if "%{stage1}" != "1"
|
||||
%files python
|
||||
%files -n python-selinux-py3
|
||||
%defattr(-,root,root)
|
||||
%{python36_sitearch}/selinux/*
|
||||
%{python36_sitearch}/_selinux*.so
|
||||
%{python36_sitearch}/selinux-%{version}-py*.egg-info
|
||||
%{python3_sitearch}/selinux/*
|
||||
%{python3_sitearch}/_selinux*.so
|
||||
%{python3_sitearch}/selinux-%{version}-py*.egg-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1-2mamba
|
||||
- rebuilt with python3
|
||||
|
||||
* Sat Jul 11 2020 Automatic Build System <autodist@mambasoft.it> 3.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Wed Dec 11 2019 Automatic Build System <autodist@mambasoft.it> 3.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user