From af7bd1693171b6929e210e1294e3d72d46440d23 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Tue, 24 Jul 2007 09:39:45 +0000 Subject: [PATCH] - generate python bindings --- VERSION.cmake | 2 +- libzypp-bindings.spec.cmake | 14 +++++++++++++- package/libzypp-bindings.changes | 5 +++++ swig/CMakeLists.txt | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/VERSION.cmake b/VERSION.cmake index 097bf49..fec3c56 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "0") -SET(VERSION_MINOR "3") +SET(VERSION_MINOR "4") SET(VERSION_PATCH "0") diff --git a/libzypp-bindings.spec.cmake b/libzypp-bindings.spec.cmake index 1c971f2..74adc03 100644 --- a/libzypp-bindings.spec.cmake +++ b/libzypp-bindings.spec.cmake @@ -15,7 +15,7 @@ License: GPL Summary: Bindings for libzypp Group: Development/Sources BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: cmake gcc-c++ ruby-devel swig +BuildRequires: cmake gcc-c++ python-devel ruby-devel swig BuildRequires: libzypp-devel >= 3.0.0 Source: %{name}-%{version}.tar.bz2 @@ -55,4 +55,16 @@ Group: Development/Languages/Ruby %defattr(-,root,root,-) %{_libdir}/ruby/%{rb_ver}/%{rb_arch}/rzypp.so +%package -n python-zypp +Summary: Python bindings for libzypp +Group: Development/Languages/Python + +%description -n python-zypp +- + +%files -n python-zypp +%defattr(-,root,root,-) +%{_libdir}/python2.5/site-package/_zypp.so +%{_libdir}/python2.5/site-package/zypp.py + %changelog diff --git a/package/libzypp-bindings.changes b/package/libzypp-bindings.changes index 94abdff..47c88c1 100644 --- a/package/libzypp-bindings.changes +++ b/package/libzypp-bindings.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue Jul 24 11:36:49 CEST 2007 - aschnell@suse.de + +- added Python bindings + +------------------------------------------------------------------- Thu Jul 19 16:13:08 CEST 2007 - aschnell@suse.de - New package with swig generated bindings for libzypp diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt index 3a24603..b3004d4 100644 --- a/swig/CMakeLists.txt +++ b/swig/CMakeLists.txt @@ -1,5 +1,5 @@ ADD_SUBDIRECTORY(ruby) -# ADD_SUBDIRECTORY(python) +ADD_SUBDIRECTORY(python) -- 2.7.4