File pilot-mailsync-jpilot.spec of Package pilot-mailsync

#
# spec file for package pilot-mailsync-jpilot (Version 0.9.1)
#
# Copyright (c) 2009 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:           pilot-mailsync-jpilot
BuildRequires:  bison gnome-common gtk-devel gtk2-devel jpilot openssl-devel pam-devel pilot-link-devel
Url:            http://wissrech.iam.uni-bonn.de/people/garcke/pms/
License:        Public Domain, Freeware
Group:          Hardware/Palm
AutoReqProv:    on
Version:        0.9.1
Release:        257
Summary:        J-Pilot Plug-in for e-mail Synchronization
Source:         pilot-mailsync-%{version}.tar.bz2
Requires:       pilot-mailsync, jpilot
Patch:          pilot-mailsync-%{version}.diff
Patch1:         pilot-mailsync-%{version}-gcc4.diff
Patch2:         pilot-mailsync-%{version}-implicit.diff
Patch3:         pilot-mailsync-%{version}-pilot-link-0.12.patch
Patch4:         pilot-mailsync-%{version}-nostrip.patch
Patch5:         pilot-mailsync-%{version}-warning.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The plug-in for J-Pilot is a simple hack, J-Pilot simply calls
pilot-mailsync. You should set up your .pilotmailrc so that it works
the way you want it to with the executable pilot-mailsync. If that
works you can use the plug-in.



%prep 
%setup -q -n pilot-mailsync-%{version}
%patch
%patch1 -p 1
%patch2
%patch3
%patch4
%patch5

%build
%{?suse_update_config:%{suse_update_config -f .}}
aclocal
autoreconf -f
CFLAGS="$RPM_OPT_FLAGS" \
	./configure \
	    --prefix=/usr/ \
	    --mandir=/usr/share/man \
	    --libdir=/usr/%{_lib} \
            --enable-jpilot \
	    --target=%{_target_cpu}-suse-linux-gnu \
            --host=%{_target_cpu}-suse-linux-gnu
EXTRABASECFLAGS="-fno-strict-aliasing -fPIC $RPM_OPT_FLAGS" \
make

%install
mkdir home
export HOME=$PWD/home
LIB=%{_lib} make jplugin_install
install -d $RPM_BUILD_ROOT/usr/%{_lib}/jpilot/plugins
rm -f $HOME/.jpilot/plugins/*.la
mv $HOME/.jpilot/plugins/* $RPM_BUILD_ROOT/usr/%{_lib}/jpilot/plugins

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README docs/*
/usr/%{_lib}/jpilot

%changelog
* Fri Mar 30 2007 aj@suse.de
- Add bison to BuildRequires.
* Mon Aug 28 2006 dgollub@suse.de
- reenabled pilot-link-0.12.patch
* Tue Aug 08 2006 lmichnovic@suse.cz
- added gtk2-devel into BuildRequires
* Thu Mar 30 2006 postadal@suse.cz
- changed installation prefix according to change in jpilot
  (/usr -> /opt/gnome/)
* Wed Mar 29 2006 dgollub@suse.de
- removed pilot-link 0.12.0 API patch from spec file.
  downgrade to pilot-link version 0.11.8 - see #161722
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 24 2005 postadal@suse.cz
- updated to version 0.9.1
- ported to pilot-link 0.12.0 API (pilot-link-0.12.patch)
- don't strip (nostrip.patch)
- used flags -fPIC and -fno-strict-aliasing
* Tue Aug 02 2005 anicka@suse.cz
- update to 0.9.0
- add patch fixing implicit prototypes
* Thu Apr 28 2005 yxu@suse.de
- eliminate superflous autoconf checks for UID/GID defines
- fixed buffer overflow
* Wed Jan 26 2005 postadal@suse.cz
- updated to version 0.8.3
* Tue Aug 17 2004 postadal@suse.cz
- updated to version 0.8.2
  * bugfix for very long addresses
  * update to imap-2004a
  * new option keepdays=number for .pilotmailrc
* Sat Mar 20 2004 adrian@suse.de
- fix build, add resmgr to neededforbuild
* Fri Feb 27 2004 postadal@suse.cz
- updated to version 0.8.1
  * mail identification now finally works (almost ?) perfect
  * memory cleanup
  * update to imap-2002e
* Sun Jan 18 2004 ro@suse.de
- added pam-devel to neededforbuild
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Thu Aug 14 2003 ro@suse.de
- build c-client.a with fPIC (needeed for plugins)
* Tue Jul 29 2003 postadal@suse.cz
- updated to version 0.8.0.2
* Mon Jun 23 2003 ro@suse.de
- added jpilot to neededforbuild
* Tue Feb 18 2003 ro@suse.de
- fixed specfile
* Mon Feb 17 2003 postadal@suse.cz
- fixed function find_incloc() in configure.in
- added lib64 paths
- fixed to compile with -fPIC
* Thu Feb 13 2003 postadal@suse.cz
- initial version 0.7.2
openSUSE Build Service is sponsored by