File libsyncml0.spec of Package libsyncml0
#
# spec file for package libsyncml0
#
# Copyright (c) 2012 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/
#
Name: libsyncml0
BuildRequires: bluez-devel
BuildRequires: libgnutls-devel
BuildRequires: libsoup-devel
BuildRequires: libtool
BuildRequires: libwbxml2-devel
BuildRequires: libxml2-devel
BuildRequires: openobex-devel
Url: http://libsyncml.opensync.org/
Version: 0.4.4
Release: 0
Summary: Library providing support for the SyncML protocol
License: LGPL-2.1+
Group: Productivity/Other
Provides: libsyncml = %{version}-%{release}
Obsoletes: libsyncml
Source: libsyncml-%{version}.tar.bz2
Patch1: libsyncml-gcc45.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: gnutls
Requires: libsoup >= 2.2.93
Requires: openobex
%description
Libsyncml is a implementation of the SyncML protocol. It allows
programs like OpenSync the synchronization of SyncML-enabled devices,
such as the SonyEricsson P800, as well as remote OpenSync to OpenSync
synchronization over the internet. You need to install the
libopensync-* packages and msynctool for that, too.
%package -n libsyncml-devel
Summary: Header files, libraries and development documentation for libsyncml
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libgcrypt-devel
Requires: libgnutls-devel
Requires: libgpg-error-devel
Requires: libsoup-devel
Requires: libwbxml2-devel
Requires: libxml2-devel
Requires: openobex-devel
%description -n libsyncml-devel
This package contains the header files, static libraries and
development documentation for libsyncml. If you like to develop
programs using libsyncml, you will need to install this package.
%package -n libsyncml-tools
Summary: Library providing support for the SyncML protocol
Group: Productivity/Other
Requires: %{name} = %{version}
%description -n libsyncml-tools
Libsyncml is a implementation of the SyncML protocol. It allows
programs like OpenSync the synchronization of SyncML-enabled devices,
such as the SonyEricsson P800, as well as remote OpenSync to OpenSync
synchronization over the internet. You need to install the
libopensync-* packages and msynctool for that, too.
%prep
%setup -q -n libsyncml-%{version}
%patch1 -p0
%build
autoreconf -sif
# TODO: Enable strict-aliasing again and fix issues
export CFLAGS="%optflags -fno-strict-aliasing -Wno-error=deprecated-declarations"
%configure
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/%{_libdir}/libsyncml.*a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/libsyncml.so.*
%files -n libsyncml-devel
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_libdir}/libsyncml.so
%{_libdir}/pkgconfig/libsyncml-1.0.pc
%dir %{_includedir}/libsyncml-1.0
%dir %{_includedir}/libsyncml-1.0/libsyncml/
%{_includedir}/libsyncml-1.0/libsyncml/*
%files -n libsyncml-tools
%defattr(-,root,root)
%{_bindir}/syncml-http-server
%{_bindir}/syncml-http-client
%{_bindir}/syncml-obex-client
%{_mandir}/man1/syncml-http-server.1*
%{_mandir}/man1/syncml-obex-client.1*
%changelog