65f876e8dc
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/evolution-data-server?expand=0&rev=89
352 lines
11 KiB
RPMSpec
352 lines
11 KiB
RPMSpec
#
|
|
# spec file for package evolution-data-server
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define USE_EVOLDAP 0
|
|
|
|
# Shared Library soNUMs, to make it easier for updates
|
|
# When updating the sonums, do not forget to also update baselibs.conf
|
|
%define so_camel 25
|
|
%define so_ebackend 1
|
|
%define so_ebook 10
|
|
%define so_ecal 8
|
|
%define so_edata_book 9
|
|
%define so_edata_cal 11
|
|
%define so_edataserver 14
|
|
%define so_edataserverui 0
|
|
|
|
Name: evolution-data-server
|
|
%define _evo_version 3.2
|
|
License: LGPLv2+
|
|
Group: Development/Libraries/GNOME
|
|
Version: 3.1.1
|
|
Release: 1
|
|
# FIXME: Re-enable translation-update-upstream if possible.
|
|
Summary: Evolution Data Server
|
|
Url: http://www.gnome.org
|
|
Source0: ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/2.25/%{name}-%{version}.tar.bz2
|
|
Source99: baselibs.conf
|
|
# PATCH-FEATURE-OPENSUSE dice-eds-changes.patch pchenthill@novell.com -- Patch yet to be pushed upstream
|
|
Patch0: dice-eds-changes.patch
|
|
BuildRequires: bison
|
|
BuildRequires: db-devel
|
|
%if %USE_EVOLDAP
|
|
BuildRequires: evoldap2-devel
|
|
%else
|
|
BuildRequires: openldap2-devel
|
|
%endif
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: gperf
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: intltool
|
|
BuildRequires: krb5-devel
|
|
BuildRequires: libgdata-devel
|
|
BuildRequires: libgnome-keyring-devel
|
|
BuildRequires: libgweather-devel >= 2.25.4
|
|
BuildRequires: libical-devel >= 0.43
|
|
BuildRequires: libidl-devel
|
|
BuildRequires: libsoup-devel
|
|
BuildRequires: mozilla-nss-devel
|
|
BuildRequires: nss-shared-helper-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: sqlite3-devel
|
|
BuildRequires: translation-update-upstream
|
|
%if %USE_EVOLDAP
|
|
Requires: libevoldap-2_4-2
|
|
%endif
|
|
Requires: libical0 >= 0.43
|
|
Requires: libsoup >= 2.2.6
|
|
Requires: mozilla-nss
|
|
Recommends: %{name}-lang = %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: evolution-data-server-64bit
|
|
%endif
|
|
%ifarch %ix86 ppc
|
|
Obsoletes: evolution-data-server-32bit
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
%package -n libcamel-1_2-%{so_camel}
|
|
|
|
Summary: Evolution Data Server - Messaging Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libcamel-1_2-%{so_camel}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library for messaging.
|
|
|
|
%package -n libebackend-1_2-%{so_ebackend}
|
|
|
|
Summary: Evolution Data Server - Backend Utilities Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libebackend-1_2-%{so_ebackend}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library for backends.
|
|
|
|
%package -n libebook-1_2-%{so_ebook}
|
|
|
|
Summary: Evolution Data Server - Address Book Client Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libebook-1_2-%{so_ebook}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library to access address books.
|
|
|
|
%package -n libecal-1_2-%{so_ecal}
|
|
|
|
Summary: Evolution Data Server - Calendar Client Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libecal-1_2-%{so_ecal}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library to access calendars.
|
|
|
|
%package -n libedata-book-1_2-%{so_edata_book}
|
|
|
|
Summary: Evolution Data Server - Address Book Backend Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libedata-book-1_2-%{so_edata_book}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library for address book backends.
|
|
|
|
%package -n libedata-cal-1_2-%{so_edata_cal}
|
|
|
|
Summary: Evolution Data Server - Calendar Backend Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libedata-cal-1_2-%{so_edata_cal}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library for calendar backends.
|
|
|
|
%package -n libedataserver-1_2-%{so_edataserver}
|
|
|
|
Summary: Evolution Data Server - Utilities Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libedataserver-1_2-%{so_edataserver}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library.
|
|
|
|
%package -n libedataserverui-3_0-%{so_edataserverui}
|
|
|
|
Summary: Evolution Data Server - Graphical Utilities Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libedataserverui-3_0-%{so_edataserverui}
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains a shared system library.
|
|
|
|
%package devel
|
|
License: LGPLv2+
|
|
Summary: Evolution Data Server - Development Files
|
|
Group: Development/Libraries/GNOME
|
|
Requires: evolution-data-server = %{?epoch:}%{version}
|
|
Requires: libcamel-1_2-%{so_camel} = %{version}
|
|
Requires: libebackend-1_2-%{so_ebackend} = %{version}
|
|
Requires: libebook-1_2-%{so_ebook} = %{version}
|
|
Requires: libecal-1_2-%{so_ecal} = %{version}
|
|
Requires: libedata-book-1_2-%{so_edata_book} = %{version}
|
|
Requires: libedata-cal-1_2-%{so_edata_cal} = %{version}
|
|
Requires: libedataserver-1_2-%{so_edataserver} = %{version}
|
|
Requires: libedataserverui-3_0-%{so_edataserverui} = %{version}
|
|
%if %USE_EVOLDAP
|
|
Requires: evoldap2-devel
|
|
%else
|
|
Requires: openldap2-devel
|
|
%endif
|
|
|
|
%description devel
|
|
The Evolution Data Server development files provide the necessary
|
|
libraries, headers, and other files for developing applications which
|
|
use the Evolution Data Server for storing contact and calendar
|
|
information.
|
|
|
|
%package doc
|
|
License: LGPLv2+
|
|
Summary: Evolution Data Server - Developer Documentation
|
|
Group: Development/Libraries/GNOME
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
Evolution Data Server provides a central location for your address book
|
|
and calendar in the GNOME Desktop.
|
|
|
|
This package contains developer documentation.
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
#translation-update-upstream
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%{configure} \
|
|
--libexecdir=%{_libexecdir}/evolution-data-server \
|
|
%if %USE_EVOLDAP
|
|
--with-openldap=%{_libdir}/evoldap \
|
|
%else
|
|
--with-openldap=yes \
|
|
%endif
|
|
--with-krb5=%{_prefix} \
|
|
--enable-gtk-doc \
|
|
--enable-ipv6=yes \
|
|
--enable-smime=yes \
|
|
--enable-nntp=yes \
|
|
--disable-static
|
|
%{__make} %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
%{makeinstall}
|
|
%if 0%{?suse_version} <= 1120
|
|
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
|
|
%endif
|
|
find %{buildroot} -name '*.la' -type f -delete -print
|
|
%find_lang evolution-data-server-%{_evo_version}
|
|
%if %USE_EVOLDAP
|
|
for file in %{buildroot}%{_libexecdir}/evolution-data-server/*; do
|
|
%{__mv} $file $file.bin
|
|
real_file=`echo $file | sed "s,%{buildroot},,g"`
|
|
echo -e "#!/bin/bash\n\nLD_LIBRARY_PATH=%{_libdir}/evoldap/lib exec -a \"$real_file\" $real_file.bin \"\$@\"" > $file
|
|
%{__chmod} +x $file
|
|
done
|
|
%endif
|
|
%fdupes %{buildroot}
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%post -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
|
|
|
|
%postun -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
|
|
|
|
%post -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
|
|
|
|
%postun -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
|
|
|
|
%post -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
|
|
|
|
%postun -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
|
|
|
|
%post -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
|
|
|
|
%postun -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
|
|
|
|
%post -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
|
|
|
|
%postun -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
|
|
|
|
%post -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
|
|
|
|
%postun -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
|
|
|
|
%post -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
|
|
|
|
%postun -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
|
|
|
|
%post -n libedataserverui-3_0-%{so_edataserverui} -p /sbin/ldconfig
|
|
|
|
%postun -n libedataserverui-3_0-%{so_edataserverui} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING ChangeLog NEWS TODO
|
|
# ui/ subdir is used by libedataserverui
|
|
%{_datadir}/evolution-data-server-%{_evo_version}/
|
|
# Category icons that are used by libedataserver
|
|
%{_datadir}/pixmaps/evolution-data-server/
|
|
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.*.service
|
|
%{_libdir}/evolution-data-server/
|
|
%if "%{_libdir}" != "%{_libexecdir}"
|
|
%{_libexecdir}/evolution-data-server/
|
|
%endif
|
|
|
|
%files -n libcamel-1_2-%{so_camel}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libcamel-1.2.so.%{so_camel}*
|
|
%{_libdir}/libcamel-provider-1.2.so.%{so_camel}*
|
|
|
|
%files -n libebackend-1_2-%{so_ebackend}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libebackend-1.2.so.%{so_ebackend}*
|
|
|
|
%files -n libebook-1_2-%{so_ebook}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libebook-1.2.so.%{so_ebook}*
|
|
|
|
%files -n libecal-1_2-%{so_ecal}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libecal-1.2.so.%{so_ecal}*
|
|
%{_libdir}/girepository-1.0/ECalendar-1.2.typelib
|
|
|
|
%files -n libedata-book-1_2-%{so_edata_book}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libedata-book-1.2.so.%{so_edata_book}*
|
|
|
|
%files -n libedata-cal-1_2-%{so_edata_cal}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libedata-cal-1.2.so.%{so_edata_cal}*
|
|
|
|
%files -n libedataserver-1_2-%{so_edataserver}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libedataserver-1.2.so.%{so_edataserver}*
|
|
%{_libdir}/girepository-1.0/EDataServer-1.2.typelib
|
|
|
|
%files -n libedataserverui-3_0-%{so_edataserverui}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libedataserverui-3.0.so.%{so_edataserverui}*
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_includedir}/evolution-data-server-%{_evo_version}/
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/gir-1.0/*.gir
|
|
|
|
%files doc
|
|
%defattr(-, root, root)
|
|
%{_datadir}/gtk-doc/html/*
|
|
|
|
%files lang -f evolution-data-server-%{_evo_version}.lang
|
|
|
|
%changelog
|