File libfunambol.spec of Package libfunambol

#
# spec file for package libfunambol (Version 8.0.5)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright Sascha Peilicke <sasch.pe@gmx.de>
#
# 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:           libfunambol
Version:        8.0.5
Release:        1
Summary:        C++ SyncML Client Engine
License:        Affero GPL
Group:          Development/Libraries/C and C++
Url:            http://funambol.com
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++ libcurl-devel

%description
Libfunambol allows to integrate a SyncML stack in a C++ application on a
variety of platforms. Currently, Windows, Windows Mobile and Linux, Mac OS X,
iPhone and Symbian are actively supported, but you can easily build it on other
Unixes or other mobile/embedded platforms.


Authors:
--------
    The Funambol Team

%package -n %{name}7

Summary:        C++ SyncML Client Engine
Group:          System/Libraries

%description -n %{name}7
Libfunambol allows to integrate a SyncML stack in a C++ application on a
variety of platforms. Currently, Windows, Windows Mobile and Linux, Mac OS X,
iPhone and Symbian are actively supported, but you can easily build it on other
Unixes or other mobile/embedded platforms.


Authors:
--------
    The Funambol Team

%package devel
License:        Affero GPL
Summary:        C++ SyncML Client Engine
Group:          Development/Libraries/C and C++
Requires:       %{name}7 >= %{version} libcurl-devel

%description devel
This package contains all necessary include files and libraries needed
to compile and develop applications that use libfunambol.


Authors:
--------
    The Funambol Team

%prep
%setup -q

%build
cd build/autotools
sh autogen.sh
%configure --disable-static --with-pic --disable-unit-tests --disable-integration-tests
%{__make} %{?jobs:-j%jobs}

%install
cd build/autotools
%makeinstall
cd ../..
# remove unneeded files
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{__rm} -rf $RPM_BUILD_ROOT%{_includedir}/funambol/test
# install additional documentation
install -d $RPM_BUILD_ROOT%{_docdir}/%{name}7
install -m 0644 {LICENSE,TODO,changeslog}.txt README $RPM_BUILD_ROOT%{_docdir}/%{name}7
install -m 0644 docs/funambol-cppsdk-tutorial.pdf $RPM_BUILD_ROOT%{_docdir}/%{name}7
install -d $RPM_BUILD_ROOT%{_docdir}/%{name}7/html
install -m 0644 docs/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}7/html

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post -n %{name}7 -p /sbin/ldconfig

%postun -n %{name}7 -p /sbin/ldconfig

%files -n %{name}7
%defattr (-,root,root)
%{_libdir}/%{name}.so.*
%doc LICENSE.txt

%files devel
%defattr (-,root,root)
%{_includedir}/funambol
%{_libdir}/%{name}.so
%doc TODO.txt changeslog.txt README docs/funambol-cppsdk-tutorial.pdf docs/html

%changelog
openSUSE Build Service is sponsored by