Drop with_python3 conditional since we always build with python3
This commit is contained in:
parent
9d8d73f1cb
commit
a04749d4a1
@ -1,11 +1,5 @@
|
||||
%if 0%{?fedora} > 12 || 0%{?rhel} >= 8
|
||||
%global with_python3 1
|
||||
%endif
|
||||
|
||||
%define ruby_inc %(pkg-config --cflags ruby)
|
||||
%define libsepolver 2.8-0
|
||||
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%global rcversion rc3
|
||||
|
||||
Summary: SELinux library and simple utilities
|
||||
@ -25,9 +19,7 @@ Url: https://github.com/SELinuxProject/selinux/wiki
|
||||
Patch1: libselinux-fedora.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: python2 python2-devel ruby-devel ruby libsepol-static >= %{libsepolver} swig pcre2-devel xz-devel
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3 python3-devel
|
||||
%endif # if with_python3
|
||||
BuildRequires: systemd
|
||||
Requires: libsepol%{?_isa} >= %{libsepolver} pcre2
|
||||
Conflicts: filesystem < 3, selinux-policy-base < 3.13.1-138
|
||||
@ -67,7 +59,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
The libselinux-python package contains the python bindings for developing
|
||||
SELinux applications.
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%package -n python3-libselinux
|
||||
Summary: SELinux python 3 bindings for libselinux
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
@ -80,7 +71,6 @@ Obsoletes: %{name}-python3 < %{version}-%{release}
|
||||
%description -n python3-libselinux
|
||||
The libselinux-python3 package contains python 3 bindings for developing
|
||||
SELinux applications.
|
||||
%endif # with_python3
|
||||
|
||||
%package ruby
|
||||
Summary: SELinux ruby bindings for libselinux
|
||||
@ -134,9 +124,7 @@ make LIBDIR="%{_libdir}" CFLAGS="-g %{optflags}" %{?_smp_mflags} swigify
|
||||
make LIBDIR="%{_libdir}" CFLAGS="-g %{optflags}" %{?_smp_mflags} all
|
||||
|
||||
BuildPythonWrapper %{__python}
|
||||
%if 0%{?with_python3}
|
||||
BuildPythonWrapper %{__python3}
|
||||
%endif # with_python3
|
||||
|
||||
make RUBYINC="%{ruby_inc}" SHLIBDIR="%{_libdir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" CFLAGS="-g %{optflags}" %{?_smp_mflags} rubywrap
|
||||
|
||||
@ -168,9 +156,7 @@ install -d -m 0755 %{buildroot}%{_rundir}/setrans
|
||||
echo "d %{_rundir}/setrans 0755 root root" > %{buildroot}%{_tmpfilesdir}/libselinux.conf
|
||||
|
||||
InstallPythonWrapper %{__python}
|
||||
%if 0%{?with_python3}
|
||||
InstallPythonWrapper %{__python3}
|
||||
%endif # with_python3
|
||||
|
||||
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" BINDIR="%{_bindir}" SBINDIR="%{_sbindir}" RUBYINSTALL=%{ruby_vendorarchdir} install install-rubywrap
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user