Remove python2 bindings
This commit is contained in:
parent
2c1f6c8e80
commit
b5fe257e1b
30
lvm2.spec
30
lvm2.spec
@ -61,7 +61,7 @@ Name: lvm2
|
||||
Epoch: %{rhel}
|
||||
%endif
|
||||
Version: 2.02.177
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
License: GPLv2
|
||||
Group: System Environment/Base
|
||||
URL: http://sourceware.org/lvm2
|
||||
@ -90,9 +90,8 @@ BuildRequires: pkgconfig
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: systemd-units
|
||||
%if %{enable_python}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python3-setuptools
|
||||
%endif
|
||||
%if %{enable_lvmdbusd}
|
||||
BuildRequires: python3-dbus
|
||||
@ -170,7 +169,7 @@ or more physical volumes and creating one or more logical volumes
|
||||
%endif
|
||||
|
||||
%if %{enable_python}
|
||||
%global configure_python --enable-python2-bindings --enable-python3-bindings
|
||||
%global configure_python --enable-python3-bindings
|
||||
%endif
|
||||
|
||||
%if %{enable_dmfilemapd}
|
||||
@ -469,26 +468,6 @@ This package contains shared lvm2 libraries for applications.
|
||||
|
||||
%if %{enable_python}
|
||||
|
||||
%package -n python2-lvm-deprecated
|
||||
Summary: Python module to access LVM (Deprecated)
|
||||
License: LGPLv2
|
||||
Group: Development/Libraries
|
||||
%{?python_provide:%python_provide python2-lvm}
|
||||
# For compatibility with old name:
|
||||
Provides: %{name}-python-libs = %{?epoch}:%{version}-%{release}
|
||||
Obsoletes: %{name}-python-libs < %{?epoch}:%{version}-%{release}
|
||||
Requires: %{name}-libs = %{?epoch}:%{version}-%{release}
|
||||
|
||||
%description -n python2-lvm-deprecated
|
||||
Deprecated python module to allow the creation and
|
||||
use of LVM logical volumes, physical volumes, and
|
||||
volume groups.
|
||||
|
||||
Migration to D-Bus API provided by %{name}-dbusd is recommended.
|
||||
|
||||
%files -n python2-lvm-deprecated
|
||||
%{python2_sitearch}/*
|
||||
|
||||
%package -n python3-lvm-deprecated
|
||||
Summary: Python 3 module to access LVM (Deprecated)
|
||||
License: LGPLv2
|
||||
@ -893,6 +872,9 @@ An extensive functional testsuite for LVM2.
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Apr 04 2018 Marian Csontos <mcsontos@redhat.com> - 2.02.177-5
|
||||
- Disable python2 bindings.
|
||||
|
||||
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.02.177-4
|
||||
- Escape macros in %%changelog
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user