X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=lvm2.spec;h=34e7a737eaf63bea855c9669aa16cd41dca822d9;hb=2008d00a7078fd2e4ae36a62208e15bc1c883b15;hp=5d10fdbd8a0722c1c70226b26f835abfe49f7e3a;hpb=bf0e149a8b30880914b7ce3b57c4b85cd0ce7905;p=packages%2Flvm2.git diff --git a/lvm2.spec b/lvm2.spec index 5d10fdb..34e7a73 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.132 -Release: 1.1 +Version: 2.02.164 +Release: 1 License: GPL v2 and LGPL v2.1 Group: Applications/System Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz -# Source0-md5: 80af5af726949bbbb2aceb15b24b7d20 +# Source0-md5: 839702f282977b3cc2e6ddc5ef9d9907 Source1: clvmd.sysconfig Patch0: %{name}-selinux.patch Patch1: %{name}-diet.patch @@ -54,17 +55,23 @@ Patch4: dl-dlsym.patch Patch6: %{name}-lvm_path.patch Patch7: %{name}-clvmd_cmd_timeout.patch Patch8: device-mapper-dmsetup-deps-export.patch +Patch9: %{name}-run-dir.patch URL: http://www.sourceware.org/lvm2/ BuildRequires: autoconf >= 2.61 BuildRequires: automake # for /run detection +BuildRequires: autoconf-archive BuildRequires: filesystem >= 3.0-43 BuildRequires: libblkid-devel >= 2.24 %{?with_selinux:BuildRequires: libselinux-devel >= 1.10} %{?with_selinux:BuildRequires: libsepol-devel} BuildRequires: ncurses-devel BuildRequires: pkgconfig -%{?with_python:BuildRequires: python-devel >= 2} +%{?with_python2:BuildRequires: python-devel >= 1:2.6} +%if %{with python3} +BuildRequires: python3-devel >= 1:3.2 +BuildRequires: python3-modules >= 1:3.2 +%endif BuildRequires: readline-devel BuildRequires: rpmbuild(macros) >= 1.647 %{?with_sanlock:BuildRequires: sanlock-devel >= 3.2.4} @@ -203,6 +210,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 @@ -321,6 +340,7 @@ potrzeby initrd. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 # do not force --export-symbol linker option for e.g. statically linked executables # -rdynamic compiler option drives linker in the right way. @@ -390,7 +410,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 \ @@ -474,7 +495,7 @@ rm -rf $RPM_BUILD_ROOT # no service restart available /sbin/chkconfig --add blk-availability -%postun +%preun if [ "$1" = "0" ]; then %service lvm2-lvmetad stop /sbin/chkconfig --del lvm2-lvmetad @@ -495,7 +516,7 @@ export NORESTART=1 # re-exec instead /usr/sbin/clvmd -S 2>/dev/null || : -%postun clvmd +%preun clvmd if [ "$1" = "0" ]; then %service clvmd stop /sbin/chkconfig --del clvmd @@ -541,8 +562,8 @@ fi %attr(754,root,root) /etc/rc.d/init.d/lvm2-lvmpolld %endif %attr(754,root,root) /etc/rc.d/init.d/lvm2-monitor -%attr(700,root,root) %dir /run/lvm %attr(700,root,root) %dir /var/lock/lvm +%attr(700,root,root) %dir /var/run/lvm %if %{with cluster} %files clvmd @@ -564,13 +585,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