File evolution-data-server.spec of Package evolution-data-server

#
# spec file for package evolution-data-server
#
# Copyright (c) 2017 SUSE LINUX 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 with_introspection 1

# Shared Library soNUMs, to make it easier for updates
# When updating the sonums, do not forget to also update baselibs.conf
%define so_camel 60
%define so_ebackend 10
%define so_edataserver 22
%define so_edataserverui 1
%define so_ebook 19
%define so_ebook_contacts 2
%define so_edata_book 25
%define so_ecal 19
%define so_edata_cal 28

Name:           evolution-data-server
%define _evo_version 3.26
Version:        3.26.0
Release:        0
Summary:        Evolution Data Server
License:        LGPL-2.1+
Group:          Development/Libraries/GNOME
Url:            http://www.gnome.org
Source0:        http://download.gnome.org/sources/evolution-data-server/3.26/%{name}-%{version}.tar.xz
Source99:       baselibs.conf
BuildRequires:  cmake
BuildRequires:  db-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  gobject-introspection-devel
BuildRequires:  gperf
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  krb5-devel
BuildRequires:  libgdata-devel
BuildRequires:  libgweather-devel >= 3.10
BuildRequires:  libical-devel >= 0.43
BuildRequires:  libidl-devel
BuildRequires:  libsoup-devel >= 2.42
BuildRequires:  mozilla-nss-devel
BuildRequires:  nss-shared-helper-devel
BuildRequires:  openldap2-devel
BuildRequires:  python-devel
BuildRequires:  sqlite3-devel >= 3.7.17
%if !0%{?is_opensuse}
BuildRequires:  translation-update-upstream
%endif
BuildRequires:  vala >= 0.22.0
BuildRequires:  pkgconfig(gcr-base-3) >= 3.4
BuildRequires:  pkgconfig(goa-1.0) >= 3.8
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(json-glib-1.0) >= 1.0.4
BuildRequires:  pkgconfig(libsecret-unstable) >= 0.5
BuildRequires:  pkgconfig(webkit2gtk-4.0) >= 2.11.91
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
# typelib-1_0-ECalendar-1_2 was dropped with e-d-s 3.7.3 due to libical not being introspecatble.
Obsoletes:      typelib-1_0-ECalendar-1_2 <= %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{?glib2_gsettings_schema_requires}

%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 libebook-contacts-1_2-%{so_ebook_contacts}
Summary:        Evolution Data Server - Address Book Client Library
Group:          System/Libraries

%description -n libebook-contacts-1_2-%{so_ebook_contacts}
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.

%if %{?with_introspection}

%package -n typelib-1_0-Camel-1_2
Summary:        Evolution Data Server - Messaging Library, Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Camel-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.

This package provides the GObject Introspection bindings for library for messaging.

%package -n typelib-1_0-EBook-1_2
Summary:        Evolution Data Server - Address Book Backend Library, Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-EBook-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.

This package provides the GObject Introspection bindings for the library
for address book backends.

%package -n typelib-1_0-EBookContacts-1_2
Summary:        Evolution Data Server - Address Book Backend Library, Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-EBookContacts-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.

This package provides the GObject Introspection bindings for the library
for address book backends.
%endif

%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
# libedataserver references the gsettings schemas, which live in e-d-s package
Group:          System/Libraries
Requires:       %{name} >= %{version}

%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-1_2-%{so_edataserverui}
Summary:        Evolution Data Server - Utilities Library
Group:          System/Libraries

%description -n libedataserverui-1_2-%{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.

%if %{?with_introspection}

%package -n typelib-1_0-EDataServer-1_2
Summary:        Evolution Data Server - Utilities Library, Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-EDataServer-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.

This package provides the GObject Introspection bindings for the
libedataserver library.

%package -n typelib-1_0-EDataServerUI-1_2
Summary:        Evolution Data Server - Utilities Library, Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-EDataServerUI-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.

This package provides the GObject Introspection bindings for the
libedataserver library.
%endif

%package devel
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:       libebook-contacts-1_2-%{so_ebook_contacts} = %{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-1_2-%{so_edataserverui} = %{version}
%if %{?with_introspection}
Requires:       typelib-1_0-Camel-1_2 = %{version}
Requires:       typelib-1_0-EBook-1_2 = %{version}
Requires:       typelib-1_0-EBookContacts-1_2 = %{version}
Requires:       typelib-1_0-EDataServer-1_2 = %{version}
Requires:       typelib-1_0-EDataServerUI-1_2 = %{version}
%endif
Requires:       openldap2-devel

%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
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
%if !0%{?is_opensuse}
translation-update-upstream
%endif

%build
%cmake \
  -DLIBEXEC_INSTALL_DIR=%{_libexecdir}/evolution-data-server \
  -DENABLE_GTK_DOC=ON \
  -DENABLE_IPV6=ON \
  -DENABLE_SMIME=ON \
  -DENABLE_UOA=OFF \
  -DCMAKE_SKIP_RPATH=OFF \
%if %{with_introspection}
  -DENABLE_VALA_BINDINGS=ON \
  -DENABLE_INTROSPECTION=ON \
%else
  -DENABLE_VALA_BINDINGS=OFF \
  -DENABLE_INTROSPECTION=OFF \
%endif
  %nil
make %{?_smp_mflags}

%install
%cmake_install
%find_lang evolution-data-server
%fdupes %{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 libebook-contacts-1_2-%{so_ebook_contacts} -p /sbin/ldconfig

%postun -n libebook-contacts-1_2-%{so_ebook_contacts} -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-1_2-%{so_edataserverui} -p /sbin/ldconfig

%postun -n libedataserverui-1_2-%{so_edataserverui} -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS TODO
%{_datadir}/evolution-data-server/
%{_datadir}/GConf/gsettings/evolution-data-server.convert
%{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.gschema.xml
# 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
%{_userunitdir}/evolution-addressbook-factory.service
%{_userunitdir}/evolution-calendar-factory.service
%{_userunitdir}/evolution-source-registry.service
%{_userunitdir}/evolution-user-prompter.service

%files -n libcamel-1_2-%{so_camel}
%defattr(-, root, root)
%{_libdir}/libcamel-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 libebook-contacts-1_2-%{so_ebook_contacts}
%defattr(-, root, root)
%{_libdir}/libebook-contacts-1.2.so.%{so_ebook_contacts}*

%files -n libecal-1_2-%{so_ecal}
%defattr(-, root, root)
%{_libdir}/libecal-1.2.so.%{so_ecal}*

%files -n libedata-book-1_2-%{so_edata_book}
%defattr(-, root, root)
%{_libdir}/libedata-book-1.2.so.%{so_edata_book}*

%if %{?with_introspection}

%files -n typelib-1_0-Camel-1_2
%defattr(-, root, root)
%{_libdir}/girepository-1.0/Camel-1.2.typelib

%files -n typelib-1_0-EBook-1_2
%defattr(-, root, root)
%{_libdir}/girepository-1.0/EBook-1.2.typelib

%files -n typelib-1_0-EBookContacts-1_2
%defattr(-, root, root)
%{_libdir}/girepository-1.0/EBookContacts-1.2.typelib
%endif

%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}*

%files -n libedataserverui-1_2-%{so_edataserverui}
%defattr(-, root, root)
%{_libdir}/libedataserverui-1.2.so.%{so_edataserverui}*

%if %{?with_introspection}

%files -n typelib-1_0-EDataServer-1_2
%defattr(-, root, root)
%{_libdir}/girepository-1.0/EDataServer-1.2.typelib

%files -n typelib-1_0-EDataServerUI-1_2
%defattr(-, root, root)
%{_libdir}/girepository-1.0/EDataServerUI-1.2.typelib
%endif

%files devel
%defattr(-, root, root)
%{_includedir}/evolution-data-server/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%if %{?with_introspection}
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/*.deps
%{_datadir}/vala/vapi/*.vapi
%endif

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/*

%files lang -f evolution-data-server.lang

%changelog
openSUSE Build Service is sponsored by