This commit is contained in:
Sergey Zhemoytel 2022-12-10 22:59:37 +03:00
parent eaf48cdf79
commit 699509b99b
3 changed files with 62 additions and 44 deletions

View file

@ -1,2 +1,2 @@
sources: sources:
evolution-data-server-3.28.3.tar.xz: 9e4456e26a34d9d52281dc7d0b71f1bf111aea87 evolution-data-server-3.36.4.tar.xz: 3e8c78d396a1c85b9f3476a5bc226b31a98a5feb

View file

@ -0,0 +1,6 @@
addFilter("E: library-not-linked-against-libc")
addFilter("E: invalid-desktopfile")
# khm...
addFilter("E: setgid-binary")
addFilter("E: non-standard-executable-perm")

View file

@ -1,9 +1,12 @@
%define url_ver %(echo %{version}|cut -d. -f1,2) %define url_ver %(echo %{version}|cut -d. -f1,2)
%define _libexecdir /usr/libexec
%define api 1.2 %define api 1.2
%define api_ecal 2.0
%define base_version 3.0 %define base_version 3.0
%define camelmajor 61 %define camelmajor 62
%define libcamel %mklibname camel %{api} %{camelmajor} %define libcamel %mklibname camel %{api} %{camelmajor}
%define devcamel %mklibname camel -d %define devcamel %mklibname camel -d
@ -11,29 +14,29 @@
%define libebackend %mklibname ebackend %{api} %{ebackendmajor} %define libebackend %mklibname ebackend %{api} %{ebackendmajor}
%define devebackend %mklibname ebackend -d %define devebackend %mklibname ebackend -d
%define ebookmajor 19 %define ebookmajor 20
%define libebook %mklibname ebook %{api} %{ebookmajor} %define libebook %mklibname ebook %{api} %{ebookmajor}
%define devebook %mklibname ebook -d %define devebook %mklibname ebook -d
%define ebookcontactsmajor 2 %define ebookcontactsmajor 3
%define libebookcontacts %mklibname ebook-contacts %{api} %{ebookcontactsmajor} %define libebookcontacts %mklibname ebook-contacts %{api} %{ebookcontactsmajor}
%define devebookcontacts %mklibname ebook-contacts -d %define devebookcontacts %mklibname ebook-contacts -d
%define ecalmajor 19 %define ecalmajor 1
%define libecal %mklibname ecal %{api} %{ecalmajor} %define libecal %mklibname ecal %{api_ecal} %{ecalmajor}
%define devecal %mklibname ecal -d %define devecal %mklibname ecal -d
%define edatabookmajor 25 %define edatabookmajor 26
%define libedatabook %mklibname edata-book %{api} %{edatabookmajor} %define libedatabook %mklibname edata-book %{api} %{edatabookmajor}
%define devedatabook %mklibname edata-book -d %define devedatabook %mklibname edata-book -d
%define edatacalmajor 28 %define edatacalmajor 28
%define libedatacal %mklibname edata-cal %{api} %{edatacalmajor} %define libedatacal %mklibname edata-cal %{api_ecal} %{edatacalmajor}
%define devedatacal %mklibname edata-cal -d %define devedatacal %mklibname edata-cal -d
%define edataserveruimajor 2 %define edataserveruimajor 2
%define libedataserverui %mklibname edataserverui %{api} %{edataserveruimajor} %define libedataserverui %mklibname edataserverui %{api} %{edataserveruimajor}
%define edataservermajor 23 %define edataservermajor 24
%define libedataserver %mklibname edataserver %{api} %{edataservermajor} %define libedataserver %mklibname edataserver %{api} %{edataservermajor}
%define devedataserver %mklibname edataserver -d %define devedataserver %mklibname edataserver -d
@ -42,12 +45,13 @@
Name: evolution-data-server Name: evolution-data-server
Summary: Evolution Data Server Summary: Evolution Data Server
Version: 3.28.3 Version: 3.36.4
Release: 2 Release: 1
License: LGPLv2+ License: LGPLv2+
Group: System/Libraries Group: System/Libraries
Url: http://www.gnome.org/projects/evolution/ URL: https://wiki.gnome.org/Apps/Evolution
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz Source0: https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Source1000: %{name}.rpmlintrc
BuildRequires: bison BuildRequires: bison
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gettext BuildRequires: gettext
@ -68,7 +72,7 @@ BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gweather-3.0) BuildRequires: pkgconfig(gweather-3.0)
BuildRequires: pkgconfig(krb5) BuildRequires: pkgconfig(krb5)
BuildRequires: pkgconfig(libgdata) BuildRequires: pkgconfig(libgdata)
BuildRequires: pkgconfig(libical) BuildRequires: pkgconfig(libical) >= 3.0.7
BuildRequires: pkgconfig(libsecret-1) BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
@ -78,7 +82,8 @@ BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(oauth) BuildRequires: pkgconfig(oauth)
BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(vapigen) BuildRequires: pkgconfig(vapigen)
BuildRequires: pkgconfig(webkit2gtk-4.0) BuildRequires: pkgconfig(webkit2gtk-4.0) >= 2.20
BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.25
# workaround for libedbus-private library # workaround for libedbus-private library
%ifarch x86_64 %ifarch x86_64
@ -93,6 +98,7 @@ and calendar in the gnome desktop.
%files -f %{name}.lang %files -f %{name}.lang
%doc COPYING NEWS %doc COPYING NEWS
%{_libdir}/%{name}
%{_libexecdir}/%{name} %{_libexecdir}/%{name}
%{_libexecdir}/camel-gpg-photo-saver %{_libexecdir}/camel-gpg-photo-saver
%{_libexecdir}/camel-index-control-%{api} %{_libexecdir}/camel-index-control-%{api}
@ -123,6 +129,10 @@ and calendar in the gnome desktop.
%{_userunitdir}/evolution-source-registry.service %{_userunitdir}/evolution-source-registry.service
%{_userunitdir}/evolution-user-prompter.service %{_userunitdir}/evolution-user-prompter.service
%{_sysconfdir}/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop
%{_datadir}/applications/org.gnome.Evolution-alarm-notify.desktop
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
%package -n %{libcamel} %package -n %{libcamel}
@ -190,7 +200,7 @@ Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop. and calendar in the gnome desktop.
%files -n %{libecal} %files -n %{libecal}
%{_libdir}/libecal-%{api}.so.%{ecalmajor}* %{_libdir}/libecal-%{api_ecal}.so.%{ecalmajor}*
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -218,7 +228,7 @@ Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop. and calendar in the gnome desktop.
%files -n %{libedatacal} %files -n %{libedatacal}
%{_libdir}/libedata-cal-%{api}.so.%{edatacalmajor}* %{_libdir}/libedata-cal-%{api_ecal}.so.%{ecalmajor}*
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -262,9 +272,9 @@ and calendar in the gnome desktop.
%{_includedir}/%{name}/camel %{_includedir}/%{name}/camel
%{_libdir}/pkgconfig/camel-%{api}.pc %{_libdir}/pkgconfig/camel-%{api}.pc
%{_libdir}/libcamel-%{api}.so %{_libdir}/libcamel-%{api}.so
%{_datadir}/gir-1.0/Camel-%{girmajor}.gir #{_datadir}/gir-1.0/Camel-%{girmajor}.gir
%{_datadir}/vala/vapi/camel-%{api}.deps #{_datadir}/vala/vapi/camel-%{api}.deps
%{_datadir}/vala/vapi/camel-%{api}.vapi #{_datadir}/vala/vapi/camel-%{api}.vapi
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -297,9 +307,9 @@ and calendar in the gnome desktop.
%{_includedir}/%{name}/libebook/ %{_includedir}/%{name}/libebook/
%{_libdir}/pkgconfig/libebook-%{api}.pc %{_libdir}/pkgconfig/libebook-%{api}.pc
%{_libdir}/libebook-%{api}.so %{_libdir}/libebook-%{api}.so
%{_datadir}/gir-1.0/EBook-%{girmajor}.gir #{_datadir}/gir-1.0/EBook-%{girmajor}.gir
%{_datadir}/vala/vapi/libebook-%{api}.deps #{_datadir}/vala/vapi/libebook-%{api}.deps
%{_datadir}/vala/vapi/libebook-%{api}.vapi #{_datadir}/vala/vapi/libebook-%{api}.vapi
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -316,9 +326,9 @@ and calendar in the gnome desktop.
%{_includedir}/%{name}/libebook-contacts/ %{_includedir}/%{name}/libebook-contacts/
%{_libdir}/pkgconfig/libebook-contacts-%{api}.pc %{_libdir}/pkgconfig/libebook-contacts-%{api}.pc
%{_libdir}/libebook-contacts-%{api}.so %{_libdir}/libebook-contacts-%{api}.so
%{_datadir}/gir-1.0/EBookContacts-%{girmajor}.gir #{_datadir}/gir-1.0/EBookContacts-%{girmajor}.gir
%{_datadir}/vala/vapi/libebook-contacts-%{api}.deps #{_datadir}/vala/vapi/libebook-contacts-%{api}.deps
%{_datadir}/vala/vapi/libebook-contacts-%{api}.vapi #{_datadir}/vala/vapi/libebook-contacts-%{api}.vapi
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -333,8 +343,8 @@ and calendar in the gnome desktop.
%files -n %{devecal} %files -n %{devecal}
%{_includedir}/%{name}/libecal/ %{_includedir}/%{name}/libecal/
%{_libdir}/pkgconfig/libecal-%{api}.pc %{_libdir}/pkgconfig/libecal-%{api_ecal}.pc
%{_libdir}/libecal-%{api}.so %{_libdir}/libecal-%{api_ecal}.so
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -365,8 +375,8 @@ and calendar in the gnome desktop.
%files -n %{devedatacal} %files -n %{devedatacal}
%{_includedir}/%{name}/libedata-cal/ %{_includedir}/%{name}/libedata-cal/
%{_libdir}/pkgconfig/libedata-cal-%{api}.pc %{_libdir}/pkgconfig/libedata-cal-%{api_ecal}.pc
%{_libdir}/libedata-cal-%{api}.so %{_libdir}/libedata-cal-%{api_ecal}.so
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -389,12 +399,12 @@ and calendar in the gnome desktop.
%{_libdir}/pkgconfig/evolution-data-server-%{api}.pc %{_libdir}/pkgconfig/evolution-data-server-%{api}.pc
%{_libdir}/libedataserver-%{api}.so %{_libdir}/libedataserver-%{api}.so
%{_libdir}/libedataserverui-%{api}.so %{_libdir}/libedataserverui-%{api}.so
%{_datadir}/gir-1.0/EDataServer-%{girmajor}.gir #{_datadir}/gir-1.0/EDataServer-%{girmajor}.gir
%{_datadir}/gir-1.0/EDataServerUI-%{girmajor}.gir #{_datadir}/gir-1.0/EDataServerUI-%{girmajor}.gir
%{_datadir}/vala/vapi/libedataserver-%{api}.deps #{_datadir}/vala/vapi/libedataserver-%{api}.deps
%{_datadir}/vala/vapi/libedataserver-%{api}.vapi #{_datadir}/vala/vapi/libedataserver-%{api}.vapi
%{_datadir}/vala/vapi/libedataserverui-%{api}.deps #{_datadir}/vala/vapi/libedataserverui-%{api}.deps
%{_datadir}/vala/vapi/libedataserverui-%{api}.vapi #{_datadir}/vala/vapi/libedataserverui-%{api}.vapi
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
%package -n %{girname} %package -n %{girname}
@ -405,11 +415,11 @@ Group: System/Libraries
GObject Introspection interface description for %{name}. GObject Introspection interface description for %{name}.
%files -n %{girname} %files -n %{girname}
%{_libdir}/girepository-1.0/Camel-%{girmajor}.typelib #{_libdir}/girepository-1.0/Camel-%{girmajor}.typelib
%{_libdir}/girepository-1.0/EDataServer-%{girmajor}.typelib #{_libdir}/girepository-1.0/EDataServer-%{girmajor}.typelib
%{_libdir}/girepository-1.0/EDataServerUI-%{girmajor}.typelib #{_libdir}/girepository-1.0/EDataServerUI-%{girmajor}.typelib
%{_libdir}/girepository-1.0/EBook-%{girmajor}.typelib #{_libdir}/girepository-1.0/EBook-%{girmajor}.typelib
%{_libdir}/girepository-1.0/EBookContacts-%{girmajor}.typelib #{_libdir}/girepository-1.0/EBookContacts-%{girmajor}.typelib
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
@ -419,13 +429,14 @@ GObject Introspection interface description for %{name}.
%build %build
%cmake \ %cmake \
-DENABLE_UOA=OFF \ -DENABLE_UOA=OFF \
-DENABLE_VALA_BINDINGS=ON \ -DENABLE_OAUTH2=ON \
-DENABLE_INTROSPECTION=ON \
-DLIBEXEC_INSTALL_DIR=%{_libexecdir} \ -DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
-DSHARE_INSTALL_PREFIX=%{_datadir} \ -DSHARE_INSTALL_PREFIX=%{_datadir} \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB_INSTALL_DIR=%{_libdir} \ -DLIB_INSTALL_DIR=%{_libdir} \
-DCMAKE_SKIP_RPATH:BOOL=OFF -DENABLE_VALA_BINDINGS=OFF \
-DENABLE_INTROSPECTION=OFF
# -DCMAKE_SKIP_RPATH:BOOL=OFF
%make %make
%install %install
@ -434,5 +445,6 @@ GObject Introspection interface description for %{name}.
# give the libraries some executable bits # give the libraries some executable bits
find %{buildroot} -name '*.so.*' -exec chmod +x {} \; find %{buildroot} -name '*.so.*' -exec chmod +x {} \;
%find_lang %{name} %find_lang %{name}