# 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
+-------------------------------------------------------------------
+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
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
%{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"
%{_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