Keep temporary ABI compat with previous soname

This is just a short lived hack, mostly for making sure eln doesn't do
rebuilds in the wrong order and submit our carefully rebuilt package set
against old e-d-s.
This commit is contained in:
Kalev Lember 2021-02-12 17:20:38 +01:00
parent 842d014d99
commit 8bb2723275

View File

@ -54,7 +54,7 @@
Name: evolution-data-server Name: evolution-data-server
Version: 3.39.2 Version: 3.39.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: Backend data server for Evolution Summary: Backend data server for Evolution
License: LGPLv2+ License: LGPLv2+
URL: https://wiki.gnome.org/Apps/Evolution URL: https://wiki.gnome.org/Apps/Evolution
@ -91,6 +91,9 @@ BuildRequires: make
BuildRequires: vala BuildRequires: vala
BuildRequires: systemd BuildRequires: systemd
# for temporary ABI compat
BuildRequires: evolution-data-server
BuildRequires: pkgconfig(gcr-3) >= %{gcr_version} BuildRequires: pkgconfig(gcr-3) >= %{gcr_version}
BuildRequires: pkgconfig(gcr-base-3) >= %{gcr_version} BuildRequires: pkgconfig(gcr-base-3) >= %{gcr_version}
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version} BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
@ -278,6 +281,10 @@ export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED -fPIC -I%{_includedir}/et -Wno-d
# make sure the directory exists, because it's owned by eds # make sure the directory exists, because it's owned by eds
mkdir $RPM_BUILD_ROOT/%{uimodules_dir} || : mkdir $RPM_BUILD_ROOT/%{uimodules_dir} || :
# for temporary ABI compat
cp -a %{_libdir}/libedataserver-1.2.so.25* $RPM_BUILD_ROOT%{_libdir}/
cp -a %{_libdir}/libedataserverui-1.2.so.2* $RPM_BUILD_ROOT%{_libdir}/
# give the libraries some executable bits # give the libraries some executable bits
find $RPM_BUILD_ROOT -name '*.so.*' -exec chmod +x {} \; find $RPM_BUILD_ROOT -name '*.so.*' -exec chmod +x {} \;
@ -306,6 +313,11 @@ find $RPM_BUILD_ROOT -name '*.so.*' -exec chmod +x {} \;
%{_libdir}/libedataserver-1.2.so.26.0.0 %{_libdir}/libedataserver-1.2.so.26.0.0
%{_libdir}/libedataserverui-1.2.so.3 %{_libdir}/libedataserverui-1.2.so.3
%{_libdir}/libedataserverui-1.2.so.3.0.0 %{_libdir}/libedataserverui-1.2.so.3.0.0
# for temporary ABI compat
%{_libdir}/libedataserver-1.2.so.25
%{_libdir}/libedataserver-1.2.so.25.0.0
%{_libdir}/libedataserverui-1.2.so.2
%{_libdir}/libedataserverui-1.2.so.2.0.0
%{_libdir}/girepository-1.0/Camel-1.2.typelib %{_libdir}/girepository-1.0/Camel-1.2.typelib
%{_libdir}/girepository-1.0/EBackend-1.2.typelib %{_libdir}/girepository-1.0/EBackend-1.2.typelib
@ -478,6 +490,9 @@ find $RPM_BUILD_ROOT -name '*.so.*' -exec chmod +x {} \;
%{_datadir}/installed-tests %{_datadir}/installed-tests
%changelog %changelog
* Fri Feb 12 2021 Kalev Lember <klember@redhat.com> - 3.39.2-2
- Keep temporary ABI compat with previous soname
* Fri Feb 12 2021 Milan Crha <mcrha@redhat.com> - 3.39.2-1 * Fri Feb 12 2021 Milan Crha <mcrha@redhat.com> - 3.39.2-1
- Update to 3.39.2 - Update to 3.39.2