File libopensync-plugin-moto.spec of Package libopensync-plugin-moto

#
# spec file for package libopensync-plugin-moto (Version 0.22)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libopensync-plugin-moto
BuildRequires:  libopensync-devel libopensync-plugin-python-module python-dateutil
Url:            http://www.opensync.org
Version:        0.22
Release:        154
Summary:        Motorola Synchronization Plug-In for OpenSync
License:        GPL v2 or later
Group:          Productivity/Other
AutoReqProv:    on
Source:         %{name}-%{version}.tar.bz2
Patch0:         libopensync-plugin-moto-mototool_fix.diff
Patch1:         libopensync-plugin-moto-fix-alarm-trigger.diff
Patch2:         libopensync-plugin-moto-fix-mototool-segfault.diff
Patch3:         libopensync-plugin-moto-fix-path-detection.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       libopensync-plugin-python-module python-dateutil python-pybluez
%define prefix   /usr

%description
This plug-in allows applications using OpenSync to synchronize to and
from Motorola cellphones which doesn't support SyncML via Obex (e.g.
Razr V3(i), L7, V635).

Additionally install the libopensync package.



Authors:
--------
    Andrew Baumann <andrewb@cse.unsw.edu.au>

%prep
%setup -q
%patch0
%patch1
%patch2
%patch3

%build
mkdir -p $RPM_BUILD_ROOT/%{_bindir}/
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/opensync/python-plugins/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/opensync/defaults/
cp motosync.py $RPM_BUILD_ROOT/%{_libdir}/opensync/python-plugins/ 
cp moto-sync $RPM_BUILD_ROOT/%{_datadir}/opensync/defaults/
cp mototool $RPM_BUILD_ROOT/%{_bindir}/

%install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{_bindir}/mototool
%{_libdir}/opensync/python-plugins/motosync.py
%{_datadir}/opensync/defaults/moto-sync

%changelog
* Tue Sep 09 2008 cstender@suse.de
- require python-pybluez instead of pybluez
* Tue Sep 04 2007 cstender@suse.de
- fixed libdir detection (#307919)
* Thu Aug 30 2007 cstender@suse.de
- fixed mototool --list segfault (#306366)
* Tue Aug 28 2007 cstender@suse.de
- added libopensync-plugin-moto-fix-alarm-trigger.diff (#305292)
* Mon Aug 27 2007 cstender@suse.de
- added missing mototool (#302200)
* Thu Mar 29 2007 cstender@suse.de
- updated to version 0.22
  o updated list of known working/not-working models
  o added experimental support for backup and restore of
  non-ascii data, encode to UTF7
  o added support for the pybluez library
* Mon Nov 06 2006 cstender@suse.de
- updated to version 0.20
  o fixed handling of "all day" events
* Fri Oct 20 2006 dgollub@suse.de
- initial version of libopensync-plugin-moto (0.19)
openSUSE Build Service is sponsored by