From: Arvin Schnell Date: Thu, 24 Nov 2011 13:17:15 +0000 (+0100) Subject: - package Python bindings X-Git-Tag: v0.1.3~258 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=0ddea0fc52adb0332b678f2191ee41f9dcd92da8;p=thirdparty%2Fsnapper.git - package Python bindings --- diff --git a/Makefile.am b/Makefile.am index 2a78bee7..e4080fa7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 5a5831ab..d169b2f2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.7 +0.0.8 diff --git a/configure.in b/configure.in index 9a2bf7c9..08521838 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/package/snapper.changes b/package/snapper.changes index f9f2d349..0f88d5b7 100644 --- a/package/snapper.changes +++ b/package/snapper.changes @@ -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 diff --git a/snapper.spec.in b/snapper.spec.in index 4f527b39..68c8bb70 100644 --- a/snapper.spec.in +++ b/snapper.spec.in @@ -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 + +%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