[dmlite/f19] Enabled Python bindings

Alejandro Alvarez aalvarez at fedoraproject.org
Mon Dec 16 09:44:51 UTC 2013


commit 956fab377c46822b8939d0ec19182162c45d6ef2
Author: aalvarez <alejandro.alvarez.ayllon at cern.ch>
Date:   Mon Dec 16 10:42:58 2013 +0100

    Enabled Python bindings

 dmlite.spec |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/dmlite.spec b/dmlite.spec
index 8e2f494..7a770ec 100644
--- a/dmlite.spec
+++ b/dmlite.spec
@@ -1,6 +1,6 @@
 Name:		dmlite
 Version:	0.6.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Common libraries for grid data management and storage
 Group:		Applications/Internet
 License:	ASL 2.0
@@ -24,6 +24,7 @@ BuildRequires:	cppunit-devel
 BuildRequires:	doxygen
 BuildRequires:	graphviz
 BuildRequires:	openssl-devel
+BuildRequires:	python-devel
 
 %description
 This package provides a set of common libraries and plugins that implement
@@ -56,13 +57,20 @@ Group:		Applications/Internet
 %description docs
 Man pages and HTML documentation for dmlite.
 
+%package -n python-dmlite
+Summary:	Python wrapper for dmlite
+Group:		Development/Libraries
+
+%description -n python-dmlite
+This package provides a python wrapper for dmlite.
+
 %prep
 %setup -q -n %{name}-%{version}
 
 %patch0 -p1
 
 %build
-%cmake . -DCMAKE_INSTALL_PREFIX=/ -DBUILD_PYTHON=OFF
+%cmake . -DCMAKE_INSTALL_PREFIX=/ -DBUILD_PYTHON=ON
 
 make %{?_smp_mflags}
 
@@ -99,7 +107,14 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 %{_defaultdocdir}/%{name}-%{version}
 
+%files -n python-dmlite
+%defattr(-,root,root,-)
+%{python_sitearch}/pydmlite.so
+
 %changelog
+* Mon Dec 16 2013 Alejandro Alvarez <aalvarez at cern.ch> - 0.6.1-2
+- Enabled Python bindings
+
 * Wed Jul 10 2013 Alejandro Alvarez <aalvarez at cern.ch> - 0.6.1-1
 - Update for new upstream release
 


More information about the scm-commits mailing list