%define _prefix   /usr/local
%define _libdir  /usr/local/lib/multisync
%define name     synce-multisync_plugin
%define rel      1

Summary: SynCE: Plugin for MultiSync.
Name: %{name}
Version: YOU_DID_NOT_RUN_THE_BOOTSTRAP_SCRIPT
Release: %{rel}
License: MIT
Group: Applications/Communications
Source: %{name}-%{version}.tar.gz
URL: http://synce.sourceforge.net/
Distribution: SynCE RPM packages
Vendor: The SynCE Project
Packager: David Eriksson <twogood@users.sourceforge.net>
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root

Requires:      multisync    >= 0.80
Requires:      synce        >= 0.8.3
BuildRequires: synce-devel  >= 0.8.3

%description
multisync_plugin is part of the SynCE project

  http://synce.sourceforge.net/

This plugin is allows synchronization of address book data with 
Windows CE 3.0 (Pocket PC) or later.

%prep
rm -rf $RPM_BUILD_ROOT
%setup

%build
%configure --with-multisync-include=/usr/local/include/multisync
make

%install
%makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/libsynce_plugin.a
rm $RPM_BUILD_ROOT/%{_libdir}/libsynce_plugin.la

%files
%defattr(-,root,root)
%doc LICENSE
%{_libdir}/*.so*
%{_datadir}/synce/synce_multisync_plugin.glade

