From 50c93936ce126c955fe5c3a1d938cf92dca594a8 Mon Sep 17 00:00:00 2001 From: Rinigus Date: Sun, 20 Oct 2024 13:47:17 +0300 Subject: [PATCH] Do not bundle libs for regular SFOS builds --- rpm/harbour-pure-maps.spec | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/rpm/harbour-pure-maps.spec b/rpm/harbour-pure-maps.spec index 981dad28..7c6391f2 100644 --- a/rpm/harbour-pure-maps.spec +++ b/rpm/harbour-pure-maps.spec @@ -6,10 +6,10 @@ # Prevent brp-python-bytecompile from running. %define __os_install_post %{___build_post} -%if 0%{?sailfishos} +%if 0%{?jollastore} # "Harbour RPM packages should not provide anything." %define __provides_exclude_from ^%{_datadir}/.*$ -%define __requires_exclude ^libs2|libQMapLibreGL.*$ +%define __requires_exclude ^libs2.*|libabsl_*|libQMapLibreGL.*$ %endif %if 0%{?sailfishos} @@ -133,25 +133,22 @@ cd build-rpm rm -rf %{buildroot} make DESTDIR=%{buildroot} install -%if 0%{?sailfishos} +%if 0%{?jollastore} # ship some shared libraries mkdir -p %{buildroot}%{_datadir}/%{name}/lib -cp %{_libdir}/libs2.so %{buildroot}%{_datadir}/%{name}/lib +cp %{_libdir}/libs2.so.* %{buildroot}%{_datadir}/%{name}/lib +cp %{_libdir}/libabsl*.so.* %{buildroot}%{_datadir}/%{name}/lib -%if 0%{?jollastore} mkdir -p %{buildroot}%{_datadir}/%{name}/lib/qml/MapboxMap cp %{_libdir}/qt5/qml/MapboxMap/* %{buildroot}%{_datadir}/%{name}/lib/qml/MapboxMap cp %{_libdir}/libQMapLibreGL.so.2* %{buildroot}%{_datadir}/%{name}/lib sed -i 's/QtPositioning 5.3/QtPositioning 5.4/g' %{buildroot}%{_datadir}/%{name}/lib/qml/MapboxMap/MapboxMapGestureArea.qml -%endif # strip executable bit from all libraries chmod -x %{buildroot}%{_datadir}/%{name}/lib/*.so* -%if 0%{?jollastore} chmod -x %{buildroot}%{_datadir}/%{name}/lib/qml/MapboxMap/*.so* -%endif -# sailfishos +# jollastore %endif %files