From b5fe257e1b47a3858c48ee165e25fa276d6f192a Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Wed, 4 Apr 2018 14:31:05 +0200 Subject: [PATCH] Remove python2 bindings --- lvm2.spec | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/lvm2.spec b/lvm2.spec index e327c34..beb17cb 100644 --- a/lvm2.spec +++ b/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 - 2.02.177-5 +- Disable python2 bindings. + * Fri Feb 09 2018 Igor Gnatenko - 2.02.177-4 - Escape macros in %%changelog