File libopensync-plugin-python-module.spec of Package libopensync-plugin-python-module
#
# spec file for package libopensync-plugin-python-module (Version 0.22)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libopensync-plugin-python-module
BuildRequires: libopensync-devel
URL: http://www.opensync.org
Version: 0.22
Release: 37
Summary: OpenSync module for Python plugins
License: LGPL v2 or later
Group: Productivity/Other
Autoreqprov: on
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-opensync
%py_requires
%description
This module allows Python based plugins using OpenSync.
Additionally install the libopensync package.
Authors:
--------
Eduardo Pereira Habkost <ehabkost@conectiva.com.br>
Armin Bauer <armin.bauer@desscon.com>
%prep
%setup -q
%build
autoreconf -sfi
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix --libdir=%_libdir --localstatedir=%_localstatedir
# CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=%_prefix --libdir=%_libdir --localstatedir=%_localstatedir
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
# only needed for development
rm $RPM_BUILD_ROOT/%{_libdir}/opensync/plugins/python_module.la
# only an example plugin
rm $RPM_BUILD_ROOT/%{_libdir}/opensync/python-plugins/sample.py
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/opensync/plugins/python_module.so
%{_libdir}/opensync/python-plugins/
%doc AUTHORS COPYING INSTALL ChangeLog NEWS README
%changelog
* Wed Jul 18 2007 - dmueller@suse.de
- use py_requires macro for more accurate requires
* Thu Mar 29 2007 - cstender@suse.de
- bumped up version to 0.22
* Mon Nov 20 2006 - cstender@suse.de
- fixed specfile (removed rm -rf $RPM_BUILD_ROOT)
* Mon Nov 06 2006 - cstender@suse.de
- bumped version to 0.20
* Fri Oct 20 2006 - dgollub@suse.de
- initial version of libopensync-plugin-python-module 0.19