From f0ac180b462502deec6bf03e480574a9be3750d0 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 17 Mar 2016 13:55:06 +0000 Subject: [PATCH] - updated to 2.02.146 --- lvm2.spec | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/lvm2.spec b/lvm2.spec index 1168787..c761f65 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -14,7 +14,8 @@ %bcond_with sanlock # sanlock support in lvmlockd %bcond_with replicator # internal replicator support %bcond_without selinux # SELinux support -%bcond_without python # Python binding +%bcond_without python2 # Python 2.x binding +%bcond_without python3 # Python 3.x binding # lvmlockd requires lvmetad and lvmpolld %if %{without lvmetad} || %{without lvmpolld} @@ -39,12 +40,12 @@ Summary: The new version of Logical Volume Manager for Linux Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa Name: lvm2 -Version: 2.02.141 +Version: 2.02.146 Release: 1 License: GPL v2 and LGPL v2.1 Group: Applications/System Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz -# Source0-md5: 0bb6261f7ecb9ef70fd773c6a952de67 +# Source0-md5: 0c922e4c450515fe2d68a946ad04e73b Source1: clvmd.sysconfig Patch0: %{name}-selinux.patch Patch1: %{name}-diet.patch @@ -65,7 +66,8 @@ BuildRequires: libblkid-devel >= 2.24 %{?with_selinux:BuildRequires: libsepol-devel} BuildRequires: ncurses-devel BuildRequires: pkgconfig -%{?with_python:BuildRequires: python-devel >= 2} +%{?with_python2:BuildRequires: python-devel >= 1:2.6} +%{?with_python3:BuildRequires: python3-devel >= 1:3.2} BuildRequires: readline-devel BuildRequires: rpmbuild(macros) >= 1.647 %{?with_sanlock:BuildRequires: sanlock-devel >= 3.2.4} @@ -204,6 +206,18 @@ Python interface to LVM2. %description -n python-lvm -l pl.UTF-8 Interfejs Pythona do LVM2. +%package -n python3-lvm +Summary: Python interface to LVM2 +Summary(pl.UTF-8): Interfejs Pythona do LVM2 +Group: Libraries/Python +Requires: device-mapper-libs = %{version}-%{release} + +%description -n python3-lvm +Python interface to LVM2. + +%description -n python3-lvm -l pl.UTF-8 +Interfejs Pythona do LVM2. + %package -n device-mapper Summary: Userspace support for the device-mapper Summary(pl.UTF-8): Wsparcie dla mapowania urządzeń w przestrzeni użytkownika @@ -392,7 +406,8 @@ unset CC %endif %{?with_lvmetad:--enable-lvmetad} \ --enable-ocf \ - %{?with_python:--enable-python_bindings} \ + %{?with_python2:--enable-python2-bindings} \ + %{?with_python3:--enable-python3-bindings} \ --enable-readline \ %{!?with_selinux:--disable-selinux} \ --enable-pkgconfig \ @@ -566,13 +581,20 @@ fi %dir %{_prefix}/lib/ocf/resource.d/lvm2 %attr(755,root,root) %{_prefix}/lib/ocf/resource.d/lvm2/VolumeGroup -%if %{with python} +%if %{with python2} %files -n python-lvm %defattr(644,root,root,755) %attr(755,root,root) %{py_sitedir}/lvm.so %{py_sitedir}/lvm-%{version}_*-py*.egg-info %endif +%if %{with python3} +%files -n python3-lvm +%defattr(644,root,root,755) +%attr(755,root,root) %{py3_sitedir}/lvm*.so +%{py3_sitedir}/lvm-%{version}_*-py*.egg-info +%endif + %files -n device-mapper %defattr(644,root,root,755) %doc *_DM -- 2.46.0