File libopensync.spec of Package libopensync

#
# spec file for package libopensync (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
BuildRequires:  glib2-devel libxml2-devel python-devel sqlite3-devel swig
Url:            http://www.opensync.org
Version:        0.22
Release:        150
Summary:        A Platform and Distribution Independent Synchronization Framework
License:        LGPL v2.1 or later
Group:          Productivity/Other
AutoReqProv:    on
Source:         %{name}-%{version}.tar.bz2
Patch0:         libopensync-wrapper-wno_uninitialized.diff
Patch1:         libopensync-fix-vcal-reminder.diff
Patch2:         libopensync-vformat-infinite-loop.diff
Patch3:         libopensync-sqlite-buildfix.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define prefix   /usr

%description
OpenSync is a synchronization framework that is platform and
distribution independent. It consists of several plug-ins that can be
used to connect to devices, a powerful sync engine, and the framework
itself. The synchronization framework is kept very flexible and is
capable of synchronizing any type of data, including contacts,
calendar, tasks, notes, and files.

To sync various sources, additionally install the plug-ins.



Authors:
--------
    Armin Bauer <armin.bauer@desscon.com>

%package devel
License:        LGPL v2.1 or later
Summary:        Header files, libraries and development documentation for libopensync
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version} libxml2-devel glib2-devel python-devel sqlite3-devel

%description devel
This package contains the header files, static libraries and
development documentation for libopensync. If you like to develop
programs using libopensync, you will need to install this package.



Authors:
--------
    Armin Bauer <armin.bauer@desscon.com>

%package tools
License:        LGPL v2.1 or later
Summary:        Tools for libopensync
Group:          Productivity/Other
Requires:       %{name} = %{version}

%description tools
OpenSync is a synchronization framework that is platform and
distribution independent. This package contains some tools needed for
testing and debugging it.



Authors:
--------
    Armin Bauer <armin.bauer@desscon.com>

%package -n python-opensync
License:        LGPL v2.1 or later
Summary:        Python bindings for OpenSync
Group:          Productivity/Other
Requires:       %name = %version

%description -n python-opensync
OpenSync is a synchronization framework that is platform and
distribution independent. It consists of several plug-ins that can be
used to connect to devices, a powerful sync engine, and the framework
itself. The synchronization framework is kept very flexible and is
capable of synchronizing any type of data, including contacts,
calendar, tasks, notes, and files.

To sync various sources, additionally install the plug-ins.



Authors:
--------
    Armin Bauer <armin.bauer@desscon.com>

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

%build
autoreconf -sif
# -fno-strict-aliasing needed for python wrapper
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=%_prefix --libdir=%{_libdir} --localstatedir=%{_localstatedir} --libexecdir=%{_libdir}/opensync/ --enable-tools --disable-profiling --disable-unit-tests
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%_libdir/opensync/plugins
mkdir -p $RPM_BUILD_ROOT/%_datadir/opensync/defaults

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL NEWS README TODO
%{_libdir}/libopensync-xml.so.*
%{_libdir}/libopensync.so.*
%{_libdir}/libosengine.so.*
%dir %{_libdir}/opensync
%dir %{_libdir}/opensync/formats
%dir %{_libdir}/opensync/plugins
%{_libdir}/opensync/osplugin
%{_libdir}/opensync/formats/*.so
%dir %{_datadir}/opensync
%dir %{_datadir}/opensync/defaults

%files -n python-opensync
%defattr(-, root, root)
%{py_sitedir}/_opensync.so*
%{py_sitedir}/opensync.py*

%files devel
%defattr(-,root,root)
%{_libdir}/libopensync-xml.so
%{_libdir}/libopensync.so
%{_libdir}/libosengine.so
%{_libdir}/libopensync-xml.la
%{_libdir}/libosengine.la
%{_libdir}/libopensync.la
%{_libdir}/opensync/formats/*.la
%{py_sitedir}/_opensync.la
%dir %{_includedir}/opensync-1.0
%dir %{_includedir}/opensync-1.0/opensync
%{_includedir}/opensync-1.0/opensync/*
%dir %{_includedir}/opensync-1.0/osengine
%{_includedir}/opensync-1.0/osengine/*
%{_libdir}/pkgconfig/opensync-1.0.pc
%{_libdir}/pkgconfig/osengine-1.0.pc

%files tools
%defattr(-,root,root)
%{_bindir}/osyncdump
%{_bindir}/osyncplugin
%{_bindir}/osyncstress
%{_bindir}/osyncbinary
%{_bindir}/osynctest

%changelog
* Tue Sep 16 2008 cstender@suse.de
- fixed build
* Thu Aug 21 2008 cstender@suse.de
- fixed infinite loop in vformat (OpenSync Bug: #670 and #742)
* Thu Aug 30 2007 cstender@suse.de
- added patch to avoid displaying a reminder after an event if
  DTSTART use a local timestamp (OpenSync Bug: #437)
* Wed Aug 15 2007 cstender@suse.de
- added libopensync-wrapper-wno_uninitialized.diff
* Wed Jul 18 2007 dmueller@suse.de
- split off python submodule
* Thu Mar 29 2007 cstender@suse.de
- updated to version 0.22
  o added NOT-UNIQUE-UID fix
  o added BASE64 to B encoding support
  o added unit tests
  o libopensync can now be built on solaris
  o support for all day events in vcal/ical converter
  o fixed base64 encoding for vcard 2.1
  o fixed photo, logo and sound attributes in contacts
  o fixed slow-sync bug with file-sync
  o fixed some bugs in the vformat parser
  o fixed some sqlite memory leaks
  o fixed a lot of bugs in vcal/ical converter
- removed patches (already included in 0.22)
* Tue Nov 28 2006 dgollub@suse.de
- added workaround in time api which converts vcalendar entries
  timestamps in UTC or localtime. Required for some Nokia models
  like 6230, 6230i, 6280 which only store local timestamps.
  (#224063)
* Fri Nov 24 2006 cstender@suse.de
- fixed a bug in vcal/ical converter (#223613)
- fixed a bug in vcal reminder (#223621)
* Mon Nov 06 2006 cstender@suse.de
- updated to version 0.20
  o added support for timezones
  o various time-api fixes
* Fri Sep 29 2006 cstender@suse.de
- updated to version 0.19
  o added vcal-ical converter
  o fixed issues in python bindings
  o fixed memory corruption
  o fixed bug with --filter-objtype
  o fixed conversion problems of unix timeformat to vtime
  o fixed a bug which loaded every plugin
* Fri Sep 22 2006 aj@suse.de
- Fix filelist for python update.
* Mon Aug 28 2006 cstender@suse.de
- updated to version 0.18+svn1233
  o finally merged IPC-Trunk
  o new time helper functions
  o new trace-level for sensitive contents
  o fixed license issues in vformat.c and vformat.h
  o replaced xmlNewChild with xmlNewTextChild
  o fixed memory leaks
* Thu Jul 06 2006 dgollub@suse.de
- updated to v0.18_SVN1095:
  o added iconv for encoding conversion in vformat
  o vformat parser generates FN if not present
  o fixed quoted printable problems in vformat parser
  o added time helper for format converter
- removed datarootdir patch (fixed in upstream)
* Fri Jun 16 2006 schwab@suse.de
- Handle reference to datarootdir variable.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 12 2005 dgollub@suse.de
- updated to v0.18_SVN770
* Tue Nov 15 2005 dgollub@suse.de
- re-enable patches
* Thu Nov 10 2005 dgollub@suse.de
- updated to v0.18
* Fri Oct 21 2005 behlert@suse.de
- added patch from Stefan Scheler regarding vformat
- updated to svn20051021
- removed obsolete warnings-patch
* Wed Oct 05 2005 behlert@suse.de
- updated to svn
* Thu Aug 18 2005 behlert@suse.de
- upgraded to svn and added some patches to fix segfaults on 64bit
* Wed Jul 13 2005 behlert@suse.de
- fixed missing return-value-check of mkdtemp
- all patches now without -p1
* Tue Jun 28 2005 ro@suse.de
- added directories for plugins
* Mon Jun 27 2005 behlert@suse.de
- fixed spec-file
* Fri Jun 24 2005 behlert@suse.de
- initial version of the package, jusing v0.17
openSUSE Build Service is sponsored by