evolution-data-server/evolution-data-server.spec

409 lines
13 KiB
RPMSpec
Raw Normal View History

2015-03-23 11:49:28 +03:00
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define api 1.2
%define base_version 3.0
2015-03-09 20:39:23 +03:00
%define dir_version 3.16
2012-02-01 14:31:29 +04:00
2015-03-09 21:15:12 +03:00
%define camelmajor 52
2016-10-03 13:33:48 +10:00
%define libcamel %mklibname camel %{camelmajor}
%define devcamel %mklibname camel -d
2012-02-01 14:31:29 +04:00
2015-03-09 21:15:12 +03:00
%define ebackendmajor 10
2016-10-03 13:33:48 +10:00
%define libebackend %mklibname ebackend %{ebackendmajor}
%define devebackend %mklibname ebackend -d
2012-02-01 14:31:29 +04:00
2015-03-09 21:15:12 +03:00
%define ebookmajor 16
2016-10-03 13:33:48 +10:00
%define libebook %mklibname ebook %{ebookmajor}
%define devebook %mklibname ebook -d
2012-02-01 14:31:29 +04:00
2015-03-09 21:15:12 +03:00
%define ebookcontactsmajor 1
2016-10-03 13:33:48 +10:00
%define libebookcontacts %mklibname ebook-contacts %{ebookcontactsmajor}
%define devebookcontacts %mklibname ebook-contacts -d
2013-06-20 20:11:46 +04:00
2015-03-09 21:48:53 +03:00
%define ecalmajor 18
2016-10-03 13:33:48 +10:00
%define libecal %mklibname ecal %{ecalmajor}
%define devecal %mklibname ecal -d
2012-02-01 14:31:29 +04:00
2015-03-09 21:15:12 +03:00
%define edatabookmajor 25
2016-10-03 13:33:48 +10:00
%define libedatabook %mklibname edata-book %{edatabookmajor}
%define devedatabook %mklibname edata-book -d
2012-02-01 14:31:29 +04:00
2015-03-09 21:15:12 +03:00
%define edatacalmajor 27
2016-10-03 13:33:48 +10:00
%define libedatacal %mklibname edata-cal %{edatacalmajor}
%define devedatacal %mklibname edata-cal -d
2012-02-01 14:31:29 +04:00
2015-03-09 21:15:12 +03:00
%define edataservermajor 20
2016-10-03 13:33:48 +10:00
%define libedataserver %mklibname edataserver %{edataservermajor}
%define devedataserver %mklibname edataserver -d
2012-02-01 14:31:29 +04:00
%define girmajor 1.2
%define girname %mklibname %{name}-gir %{girmajor}
2012-02-01 14:31:29 +04:00
Name: evolution-data-server
Summary: Evolution Data Server
2015-07-13 17:09:57 +03:00
Version: 3.16.4
2016-10-03 13:33:48 +10:00
Release: 1
License: LGPLv2+
2012-02-01 14:31:29 +04:00
Group: System/Libraries
2016-10-03 13:33:48 +10:00
Url: http://www.gnome.org/projects/evolution/
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Source10: %{name}.rpmlintrc
BuildRequires: bison
BuildRequires: gettext
BuildRequires: gnome-common
BuildRequires: gperf
BuildRequires: gtk-doc
BuildRequires: intltool
2016-10-03 13:33:48 +10:00
BuildRequires: vala-tools
BuildRequires: db-devel
BuildRequires: openldap-devel
2016-10-03 13:33:48 +10:00
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gcr-base-3)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(goa-1.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
2016-10-03 13:33:48 +10:00
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gweather-3.0)
BuildRequires: pkgconfig(krb5)
BuildRequires: pkgconfig(libgdata)
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(nspr)
BuildRequires: pkgconfig(nss)
2016-10-03 13:33:48 +10:00
BuildRequires: pkgconfig(oauth)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(vapigen)
2015-03-09 22:19:18 +03:00
# workaround for libedbus-private library
%ifarch x86_64
Provides: devel(libedbus-private(64bit))
%else
Provides: devel(libedbus-private)
%endif
2012-02-01 14:31:29 +04:00
%description
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -f %{name}-%{dir_version}.lang
%doc COPYING NEWS
%doc %{_datadir}/gtk-doc/html/eds/*
%{_libexecdir}/%{name}
%{_libexecdir}/camel-index-control-%{api}
%{_libexecdir}/evolution-addressbook-factory
%{_libexecdir}/evolution-calendar-factory
%{_libexecdir}/evolution-user-prompter
%{_libexecdir}/evolution-scan-gconf-tree-xml
%{_libexecdir}/evolution-source-registry
%{_libexecdir}/evolution-addressbook-factory-subprocess
%{_libexecdir}/evolution-calendar-factory-subprocess
%attr(2755,root,mail) %{_libexecdir}/camel-lock-helper-%{api}
%{_datadir}/%{name}
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter.service
%{_datadir}/pixmaps/%{name}
%{_datadir}/GConf/gsettings/evolution-data-server.convert
#GSettings
%{_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.DefaultSources.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
#----------------------------------------------------------------------------
%package -n %{libcamel}
2012-02-01 14:31:29 +04:00
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2016-10-03 13:33:48 +10:00
%description -n %{libcamel}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libcamel}
%{_libdir}/libcamel-%{api}.so.%{camelmajor}*
#----------------------------------------------------------------------------
%package -n %{libebackend}
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2016-10-03 13:33:48 +10:00
%description -n %{libebackend}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libebackend}
%{_libdir}/libebackend-%{api}.so.%{ebackendmajor}*
#----------------------------------------------------------------------------
%package -n %{libebook}
2012-02-01 14:31:29 +04:00
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2016-10-03 13:33:48 +10:00
%description -n %{libebook}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libebook}
%{_libdir}/libebook-%{api}.so.%{ebookmajor}*
#----------------------------------------------------------------------------
%package -n %{libebookcontacts}
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2013-06-20 20:11:46 +04:00
2016-10-03 13:33:48 +10:00
%description -n %{libebookcontacts}
2013-06-20 20:11:46 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libebookcontacts}
%{_libdir}/libebook-contacts-%{api}.so.%{ebookcontactsmajor}*
#----------------------------------------------------------------------------
%package -n %{libecal}
2012-02-01 14:31:29 +04:00
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2016-10-03 13:33:48 +10:00
%description -n %{libecal}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libecal}
%{_libdir}/libecal-%{api}.so.%{ecalmajor}*
#----------------------------------------------------------------------------
%package -n %{libedatabook}
2012-02-01 14:31:29 +04:00
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2016-10-03 13:33:48 +10:00
%description -n %{libedatabook}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libedatabook}
%{_libdir}/libedata-book-%{api}.so.%{edatabookmajor}*
#----------------------------------------------------------------------------
%package -n %{libedatacal}
2012-02-01 14:31:29 +04:00
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2016-10-03 13:33:48 +10:00
%description -n %{libedatacal}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libedatacal}
%{_libdir}/libedata-cal-%{api}.so.%{edatacalmajor}*
#----------------------------------------------------------------------------
%package -n %{libedataserver}
2012-02-01 14:31:29 +04:00
Summary: Shared libraries for using Evolution Data Server
Group: System/Libraries
2016-10-03 13:33:48 +10:00
%description -n %{libedataserver}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{libedataserver}
%{_libdir}/libedataserver-%{api}.so.%{edataservermajor}*
%{_libdir}/libedataserverui-%{api}.so.*
#----------------------------------------------------------------------------
%package -n %{devcamel}
Summary: Libraries and include files for using Evolution Data Server - camel
Group: Development/GNOME and GTK+
2016-10-03 13:33:48 +10:00
Requires: %{libcamel} = %{EVRD}
2012-02-01 14:31:29 +04:00
2016-10-03 13:33:48 +10:00
%description -n %{devcamel}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devcamel}
%doc %{_datadir}/gtk-doc/html/camel/*
%{_includedir}/%{name}/camel
%{_libdir}/pkgconfig/camel-%{api}.pc
%{_libdir}/libcamel-%{api}.so
#----------------------------------------------------------------------------
%package -n %{devebackend}
Summary: Libraries and include files for using Evolution Data Server - ebackend
Group: Development/GNOME and GTK+
2016-10-03 13:33:48 +10:00
Requires: %{libebackend} = %{EVRD}
2012-02-01 14:31:29 +04:00
2016-10-03 13:33:48 +10:00
%description -n %{devebackend}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devebackend}
%{_includedir}/%{name}/libebackend
%{_libdir}/pkgconfig/libebackend-%{api}.pc
%{_libdir}/libebackend-%{api}.so
#----------------------------------------------------------------------------
%package -n %{devebook}
Summary: Libraries and include files for using Evolution Data Server - ebook
Group: Development/GNOME and GTK+
2016-10-03 13:33:48 +10:00
Requires: %{libebook} = %{EVRD}
2016-10-03 13:33:48 +10:00
%description -n %{devebook}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devebook}
%{_includedir}/%{name}/libebook/
%{_libdir}/pkgconfig/libebook-%{api}.pc
%{_libdir}/libebook-%{api}.so
%{_datadir}/gir-1.0/EBook-%{girmajor}.gir
%{_datadir}/vala/vapi/libebook-1.2.deps
%{_datadir}/vala/vapi/libebook-1.2.vapi
#----------------------------------------------------------------------------
2013-06-20 20:11:46 +04:00
2016-10-03 13:33:48 +10:00
%package -n %{devebookcontacts}
Summary: Libraries and include files for using Evolution Data Server - ebookcontacts
Group: Development/GNOME and GTK+
Requires: %{libebookcontacts} = %{EVRD}
%description -n %{devebookcontacts}
2013-06-20 20:11:46 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devebookcontacts}
%{_includedir}/%{name}/libebook-contacts/
%{_libdir}/pkgconfig/libebook-contacts-%{api}.pc
%{_libdir}/libebook-contacts-%{api}.so
%{_datadir}/gir-1.0/EBookContacts-%{girmajor}.gir
%{_datadir}/vala/vapi/libebook-contacts-1.2.deps
%{_datadir}/vala/vapi/libebook-contacts-1.2.vapi
#----------------------------------------------------------------------------
%package -n %{devecal}
Summary: Libraries and include files for using Evolution Data Server - ecal
Group: Development/GNOME and GTK+
2016-10-03 13:33:48 +10:00
Requires: %{libecal} = %{EVRD}
2016-10-03 13:33:48 +10:00
%description -n %{devecal}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devecal}
%{_includedir}/%{name}/libecal/
%{_libdir}/pkgconfig/libecal-%{api}.pc
%{_libdir}/libecal-%{api}.so
#----------------------------------------------------------------------------
%package -n %{devedatabook}
Summary: Libraries and include files for using Evolution Data Server - edatabook
Group: Development/GNOME and GTK+
2016-10-03 13:33:48 +10:00
Requires: %{libedatabook} = %{EVRD}
2016-10-03 13:33:48 +10:00
%description -n %{devedatabook}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devedatabook}
%{_includedir}/%{name}/libedata-book/
%{_libdir}/pkgconfig/libedata-book-%{api}.pc
%{_libdir}/libedata-book-%{api}.so
#----------------------------------------------------------------------------
%package -n %{devedatacal}
Summary: Libraries and include files for using Evolution Data Server - edatacal
Group: Development/GNOME and GTK+
2016-10-03 13:33:48 +10:00
Requires: %{libedatacal} = %{EVRD}
2016-10-03 13:33:48 +10:00
%description -n %{devedatacal}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devedatacal}
%{_includedir}/%{name}/libedata-cal/
%{_libdir}/pkgconfig/libedata-cal-%{api}.pc
%{_libdir}/libedata-cal-%{api}.so
#----------------------------------------------------------------------------
%package -n %{devedataserver}
2012-02-01 14:31:29 +04:00
Summary: Libraries and include files for using Evolution Data Server
Group: Development/GNOME and GTK+
2016-10-03 13:33:48 +10:00
Requires: %{libedataserver} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
2016-10-03 13:33:48 +10:00
%description -n %{devedataserver}
2012-02-01 14:31:29 +04:00
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.
2016-10-03 13:33:48 +10:00
%files -n %{devedataserver}
%{_includedir}/%{name}/libedataserver/
%{_includedir}/%{name}/libedataserverui/
%{_libdir}/pkgconfig/libedataserver-%{api}.pc
%{_libdir}/pkgconfig/libedataserverui-%{api}.pc
%{_libdir}/pkgconfig/evolution-data-server-%{api}.pc
%{_libdir}/libedataserver-%{api}.so
%{_libdir}/libedataserverui-%{api}.so
%{_datadir}/gir-1.0/EDataServer-%{girmajor}.gir
%{_datadir}/vala/vapi/libedataserver-1.2.deps
%{_datadir}/vala/vapi/libedataserver-1.2.vapi
#----------------------------------------------------------------------------
%package -n %{girname}
2016-10-03 13:33:48 +10:00
Summary: GObject Introspection interface description for %{name}
Group: System/Libraries
%description -n %{girname}
GObject Introspection interface description for %{name}.
2016-10-03 13:33:48 +10:00
%files -n %{girname}
%{_libdir}/girepository-1.0/EDataServer-%{girmajor}.typelib
%{_libdir}/girepository-1.0/EBook-%{girmajor}.typelib
%{_libdir}/girepository-1.0/EBookContacts-%{girmajor}.typelib
#----------------------------------------------------------------------------
2012-02-01 14:31:29 +04:00
%prep
%setup -q
2013-10-14 13:16:28 +04:00
%apply_patches
2012-02-01 14:31:29 +04:00
%build
2012-10-15 18:19:05 +00:00
%configure2_5x \
--with-krb5=%{_prefix} \
--with-krb5-libs=%{_libdir} \
2016-10-03 13:33:48 +10:00
--with-libdb=%{_prefix} \
2012-10-15 18:19:05 +00:00
--disable-static \
--with-openldap=yes \
--with-static-ldap=no \
2013-06-20 20:11:46 +04:00
--enable-gtk-doc=yes \
--disable-uoa \
2016-10-03 13:33:48 +10:00
--enable-vala-bindings
2012-02-01 14:31:29 +04:00
%make
%install
%makeinstall_std
# give the libraries some executable bits
find %{buildroot} -name '*.so.*' -exec chmod +x {} \;
2012-02-01 14:31:29 +04:00
%find_lang %{name}-%{dir_version}
2012-02-01 14:31:29 +04:00