]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- package Python bindings
authorArvin Schnell <aschnell@suse.de>
Thu, 24 Nov 2011 13:17:15 +0000 (14:17 +0100)
committerArvin Schnell <aschnell@suse.de>
Thu, 24 Nov 2011 13:17:15 +0000 (14:17 +0100)
Makefile.am
VERSION
configure.in
package/snapper.changes
snapper.spec.in

index 2a78bee7fba8087f6673f8e2053ec71b714cddb4..e4080fa750ee73efe9de2fd9e668be31688d80d1 100644 (file)
@@ -2,7 +2,7 @@
 # Makefile.am for snapper
 #
 
-SUBDIRS = snapper examples tools scripts data doc po testsuite-real
+SUBDIRS = snapper examples tools scripts data doc po testsuite-real bindings
 
 AUTOMAKE_OPTIONS = foreign dist-bzip2 no-dist-gzip
 
diff --git a/VERSION b/VERSION
index 5a5831ab6bf692d5c93e7784852b0b5a05c153b4..d169b2f2d0a4961be2e01a31cebeffdefac24e43 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.0.7
+0.0.8
index 9a2bf7c9f36a5bce25ee88decc4a07cfc1315a03..0852183818eb70e736d86acea820250e15754960 100644 (file)
@@ -21,6 +21,7 @@ AC_DISABLE_STATIC
 AC_PROG_CXX
 AC_PROG_LIBTOOL
 AM_PROG_LIBTOOL
+AM_PATH_PYTHON
 
 AC_PREFIX_DEFAULT(/usr)
 
@@ -44,6 +45,8 @@ AC_OUTPUT(
        Makefile
        snapper/Makefile
        examples/Makefile
+       bindings/Makefile
+       bindings/python/Makefile
        tools/Makefile
        tools/utils/Makefile
        scripts/Makefile
index f9f2d349f5c704653c587b60fb4adc57b196f12c..0f88d5b7cb83446c64c71f669bc28c0a7e48f40e 100644 (file)
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Thu Nov 24 14:09:15 CET 2011 - aschnell@suse.de
+
+- package Python bindings
+- 0.0.8
+
 -------------------------------------------------------------------
 Sat Nov 19 20:46:08 UTC 2011 - coolo@suse.com
 
index 4f527b390e03cfbf311c18eb1190cf5c6413072a..68c8bb7017e84a75d8e0c44557e7826202fe951b 100644 (file)
@@ -27,6 +27,7 @@ BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 Source:                snapper-%{version}.tar.bz2
 Prefix:                /usr
 BuildRequires: boost-devel doxygen gcc-c++ libblocxx-devel libtool libxml2-devel
+BuildRequires: python-devel swig
 BuildRequires: libzypp(plugin:commit)
 Requires:      libsnapper@LIBVERSION_MAJOR@ = %version
 Recommends:    cron logrotate snapper-zypp-plugin
@@ -63,6 +64,9 @@ make install DESTDIR="$RPM_BUILD_ROOT"
 
 %{find_lang} snapper
 
+rm -f $RPM_BUILD_ROOT/%{python_sitearch}/_libsnapper.a
+rm -f $RPM_BUILD_ROOT/%{python_sitearch}/_libsnapper.la
+
 %clean
 rm -rf "$RPM_BUILD_ROOT"
 
@@ -131,6 +135,22 @@ Authors:
 %{_libdir}/libsnapper.so
 %{prefix}/include/snapper
 
+%package -n libsnapper-python
+Summary:       Python bindings for libsnapper
+Group:         System/Libraries
+
+%description -n libsnapper-python
+This package contains Python bindings for libsnapper.
+
+Authors:
+--------
+    Thomas Fehr <fehr@suse.de>
+
+%files -n libsnapper-python
+%defattr(-,root,root)
+%{python_sitelib}/libsnapper.py*
+%attr(755,root,root) %{python_sitearch}/_libsnapper.so
+
 %package -n snapper-zypp-plugin
 Requires:      snapper libzypp(plugin:commit) zypp-plugin-python
 Summary:       A zypp commit plugin for calling snapper