summaryrefslogtreecommitdiff
path: root/spec/packages.inc
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2015-11-02 11:33:13 +0100
committerMarian Csontos <mcsontos@redhat.com>2015-11-02 12:42:32 +0100
commit89574055f7a0d2e7dd10a781f5fbde4eeae1f637 (patch)
tree802701f65de7d97be50f26959a0160299bf8de16 /spec/packages.inc
parent7831a650914f35c97f9deab6b871970b303a8948 (diff)
downloadlvm2-89574055f7a0d2e7dd10a781f5fbde4eeae1f637.tar.gz
spec: Add python bindings
Diffstat (limited to 'spec/packages.inc')
-rw-r--r--spec/packages.inc69
1 files changed, 54 insertions, 15 deletions
diff --git a/spec/packages.inc b/spec/packages.inc
index e0a601023..6c3dfde41 100644
--- a/spec/packages.inc
+++ b/spec/packages.inc
@@ -411,6 +411,60 @@ fi
%endif
##############################################################################
+# Python bindings
+##############################################################################
+%if %{enable_python}
+%package python-libs
+Summary: Python module to access LVM
+License: LGPLv2
+Group: Development/Libraries
+Provides: python-lvm = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
+
+%description python-libs
+Python module to allow the creation and use of LVM
+logical volumes, physical volumes, and volume groups.
+
+%files python-libs
+%{python_sitearch}/*
+%endif
+
+%if %{enable_python3}
+%package python3-libs
+Summary: Python 3 module to access LVM
+License: LGPLv2
+Group: Development/Libraries
+Provides: python3-lvm = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
+
+%description python3-libs
+Python 3 module to allow the creation and use of LVM
+logical volumes, physical volumes, and volume groups.
+
+%files python3-libs
+%{python3_sitearch}/*
+%endif
+
+##############################################################################
+# Testsuite subpackage
+##############################################################################
+%if %{enable_testsuite}
+%package testsuite
+Summary: LVM2 Testsuite
+License: LGPLv2
+Group: Development
+
+%description testsuite
+An extensive functional testsuite for LVM2.
+
+%files testsuite
+%defattr(-,root,root,-)
+%{_datadir}/lvm2-testsuite/
+%{_libexecdir}/lvm2-testsuite/
+%{_bindir}/lvm2-testsuite
+%endif
+
+##############################################################################
# Device-mapper subpackages
##############################################################################
%package -n device-mapper
@@ -571,18 +625,3 @@ the device-mapper event library.
%{_includedir}/libdevmapper-event.h
%{_libdir}/pkgconfig/devmapper-event.pc
-%if %{enable_testsuite}
-%package testsuite
-Summary: LVM2 Testsuite
-License: LGPLv2
-Group: Development
-
-%description testsuite
-An extensive functional testsuite for LVM2.
-
-%files testsuite
-%defattr(-,root,root,-)
-%{_datadir}/lvm2-testsuite/
-%{_libexecdir}/lvm2-testsuite/
-%{_bindir}/lvm2-testsuite
-%endif