File libopensync-plugin-evolution2.spec of Package libopensync-plugin-evolution2

#
# spec file for package libopensync-plugin-evolution2
#
# Copyright (c) 2011 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-plugin-evolution2
BuildRequires:  evolution-data-server-devel libbonobo-devel libopensync-devel libtool update-desktop-files
Url:            http://www.opensync.org
Version:        0.22
Release:        205
Summary:        Evolution 2 Synchronization Plug-In for OpenSync
License:        LGPL-2.1+
Group:          Productivity/Other
Source:         %{name}-%{version}.tar.bz2
Patch:          libopensync-plugin-evolution2-fix_build.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       evolution-data-server
%define prefix   /usr

%description
This plug-in allows applications using OpenSync to synchronize to and
from Evolution 2.

Additionally install the libopensync package.



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

%package devel
License:        LGPL-2.1+
Summary:        Header files and libraries for libopensync-plugin-evolution2
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}  libopensync-devel evolution-data-server 

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



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

%prep
%setup -q
%patch

%build
autoreconf -sfi
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix --libdir=%_libdir --localstatedir=%_localstatedir
make

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%{_libdir}/opensync/plugins/evo2_sync.so
%{_datadir}/opensync/defaults/evo2-sync
%doc AUTHORS COPYING INSTALL ChangeLog NEWS README

%files devel
%defattr(-, root, root)
%{_includedir}/opensync-1.0/opensync/evo2_sync.h
%{_libdir}/opensync/plugins/evo2_sync.la
%doc AUTHORS COPYING INSTALL ChangeLog NEWS README

%changelog
openSUSE Build Service is sponsored by