File evolution-groupwise.spec of Package evolution-groupwise
#
# spec file for package evolution-groupwise
#
# 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/
#
%define libegroupwise 13
Name: evolution-groupwise
# This should be updated upon major version changes; it should match BASE_VERSION as defined in configure.in.
%define evolution_base_version 3.4
Version: 3.4.2
Release: 0
Summary: GroupWise Connector for Evolution
License: LGPL-2.1
Group: Productivity/Networking/Email/Clients
Url: http://projects.gnome.org/evolution/
Source: http://download.gnome.org/sources/evolution-groupwise/3.4/%{name}-%{version}.tar.xz
BuildRequires: intltool
BuildRequires: libdb-4_8-devel
BuildRequires: pkgconfig(evolution-data-server-1.2) >= %{version}
BuildRequires: pkgconfig(evolution-plugin-3.0) >= %{version}
BuildRequires: pkgconfig(gconf-2.0) >= 2.0.0
BuildRequires: pkgconfig(gio-2.0) >= 2.16.0
BuildRequires: pkgconfig(gtk+-3.0) >= 2.90.4
BuildRequires: pkgconfig(libsoup-2.4) >= 2.3.0
BuildRequires: pkgconfig(libxml-2.0) >= 2.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The GroupWise Connector for Evolution provides a GroupWise backend for
evolution-data-server, as well as plugins for Evolution to access
GroupWise features.
%package -n libegroupwise-1_2-%{libegroupwise}
Summary: Client Library for Accessing a GroupWise POA
Group: System/Libraries
%description -n libegroupwise-1_2-%{libegroupwise}
This library is a client library for accessing a GroupWise Post
Office Agent through the SOAP interface.
%package devel
Summary: Client Library for Accessing a GroupWise POA -- Development Files
Group: Development/Libraries/C and C++
Requires: libegroupwise-1_2-%{libegroupwise} = %{version}
%description devel
This library is a client library for accessing a GroupWise Post
Office Agent through the SOAP interface.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%post -n libegroupwise-1_2-%{libegroupwise} -p /sbin/ldconfig
%postun -n libegroupwise-1_2-%{libegroupwise} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%{_datadir}/evolution/%{evolution_base_version}/errors/*.error
%{_datadir}/evolution/%{evolution_base_version}/ui/
%{_libdir}/evolution-data-server/addressbook-backends/libebookbackendgroupwise.so
%{_libdir}/evolution-data-server/calendar-backends/libecalbackendgroupwise.so
%{_libdir}/evolution-data-server/camel-providers/libcamelgroupwise.so
%{_libdir}/evolution-data-server/camel-providers/libcamelgroupwise.urls
%{_libdir}/evolution/%{evolution_base_version}/plugins/liborg-gnome-groupwise-features.so
%{_libdir}/evolution/%{evolution_base_version}/plugins/org-gnome-compose-send-options.xml
%{_libdir}/evolution/%{evolution_base_version}/plugins/org-gnome-groupwise-features.eplug
%files -n libegroupwise-1_2-%{libegroupwise}
%defattr(-, root, root)
%{_libdir}/libegroupwise-1.2.so.%{libegroupwise}*
%files devel
%defattr(-, root, root)
## FIXME: use this again once the pc file will be installed with the correct version
#%{_libdir}/pkgconfig/libegroupwise-%{evolution_base_version}.pc
%{_libdir}/pkgconfig/libegroupwise-3.2.pc
%{_libdir}/libegroupwise-1.2.so
%dir %{_includedir}/evolution-data-server-%{evolution_base_version}
%{_includedir}/evolution-data-server-%{evolution_base_version}/groupwise/
%changelog