File libsyncml0.spec of Package libsyncml0
#
# spec file for package libsyncml0 (Version 0.4.4)
#
# Copyright (c) 2010 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: libsyncml0
BuildRequires: bluez-devel libgnutls-devel libsoup-devel libwbxml2-devel libxml2-devel openobex-devel
Url: http://libsyncml.opensync.org/
Version: 0.4.4
Release: 136
Summary: Library providing support for the SyncML protocol
License: LGPLv2.1+
Group: Productivity/Other
Provides: libsyncml = %{version}-%{release}
Obsoletes: libsyncml
AutoReqProv: on
Source: libsyncml-%{version}.tar.bz2
Patch1: libsyncml-gcc45.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: gnutls openobex libsoup >= 2.2.93
%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.
Authors:
--------
Armin Bauer <armin.bauer@opensync.org>
%package -n libsyncml-devel
License: LGPLv2.1+
Summary: Header files, libraries and development documentation for libsyncml
Group: Development/Libraries/C and C++
Requires: %{name} = %{version} libgcrypt-devel libgnutls-devel libgpg-error-devel libsoup-devel libwbxml2-devel libxml2-devel 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.
Authors:
--------
Armin Bauer <armin.bauer@opensync.org>
%package -n libsyncml-tools
License: LGPLv2.1+
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.
Authors:
--------
Armin Bauer <armin.bauer@opensync.org>
%prep
%setup -q -n libsyncml-%{version}
%patch1 -p0
%build
autoreconf -sif
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix --libdir=%_libdir --localstatedir=%_localstatedir --mandir=%_mandir
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/%{_libdir}/libsyncml.*a
%clean
rm -rf $RPM_BUILD_ROOT
%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