Drop python2-libsemanage
https://bugzilla.redhat.com/show_bug.cgi?id=1738466
This commit is contained in:
parent
261ead2b51
commit
077b89e12c
@ -17,7 +17,7 @@ BuildRequires: gcc
|
||||
BuildRequires: libselinux-devel >= %{libselinuxver} swig
|
||||
BuildRequires: libsepol-devel >= %{libsepolver}
|
||||
BuildRequires: audit-libs-devel
|
||||
BuildRequires: python2 python2-devel bison flex bzip2-devel
|
||||
BuildRequires: bison flex bzip2-devel
|
||||
|
||||
BuildRequires: python3
|
||||
BuildRequires: python3-devel
|
||||
@ -57,19 +57,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
The semanage-devel package contains the libraries and header files
|
||||
needed for developing applications that manipulate binary policies.
|
||||
|
||||
%package -n python2-libsemanage
|
||||
%{?python_provide:%python_provide python2-libsemanage}
|
||||
# Remove before F30
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name}-python < %{version}-%{release}
|
||||
Summary: semanage python bindings for libsemanage
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description -n python2-libsemanage
|
||||
The libsemanage-python package contains the python bindings for developing
|
||||
SELinux management applications.
|
||||
|
||||
%package -n python3-libsemanage
|
||||
Summary: semanage python 3 bindings for libsemanage
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
@ -108,9 +95,6 @@ make clean
|
||||
make swigify
|
||||
make LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all
|
||||
|
||||
BuildPythonWrapper \
|
||||
%{__python2}
|
||||
|
||||
BuildPythonWrapper \
|
||||
%{__python3}
|
||||
|
||||
@ -130,10 +114,6 @@ mkdir -p ${RPM_BUILD_ROOT}%{_sharedstatedir}/selinux
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_sharedstatedir}/selinux/tmp
|
||||
make DESTDIR="${RPM_BUILD_ROOT}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install
|
||||
|
||||
InstallPythonWrapper \
|
||||
%{__python2} \
|
||||
.so
|
||||
|
||||
InstallPythonWrapper \
|
||||
%{__python3} \
|
||||
$(python3-config --extension-suffix)
|
||||
@ -167,10 +147,6 @@ sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdi
|
||||
%{_includedir}/semanage/*.h
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%files -n python2-libsemanage
|
||||
%{python2_sitearch}/_semanage.so
|
||||
%{python2_sitearch}/semanage.py*
|
||||
|
||||
%files -n python3-libsemanage
|
||||
%{python3_sitearch}/*.so
|
||||
%{python3_sitearch}/semanage.py*
|
||||
|
Loading…
Reference in New Issue
Block a user