hopefully this fixes the rpath thing
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is failing

This commit is contained in:
askiiart 2025-09-07 13:02:55 -05:00
parent 580ab4bf81
commit 6ec1eade17

View file

@ -1,16 +1,10 @@
%global __brp_check_rpaths %{nil}
# ^ disable rpath checking
# see https://stackoverflow.com/a/73807744
# (the problem: https://drone.askiiart.net/pkg-repo/librewolf-allow-dark/4502/1/2)
# (see also: https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild)
Name: librewolf-allow-dark Name: librewolf-allow-dark
Version: __VERSION__ Version: __VERSION__
Release: 1 Release: 1
Summary: Librewolf, with the privacy.override_rfp_for_color_scheme option added Summary: Librewolf, with the privacy.override_rfp_for_color_scheme option added
License: MPL-2.0 License: MPL-2.0
URL: https://git.askiiart.net/pkg-repo/librewolf-allow-dark URL: https://git.askiiart.net/pkg-repo/librewolf-allow-dark
BuildRequires: tar zstd BuildRequires: tar zstd patchelf
%description %description
Librewolf with the privacy.override_rfp_for_color_scheme about:config option added, which if enabled lets you change the color scheme even if rfp is turned on Librewolf with the privacy.override_rfp_for_color_scheme about:config option added, which if enabled lets you change the color scheme even if rfp is turned on
@ -40,6 +34,9 @@ for res in "${resolutions[@]}"; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps
cp ./browser/chrome/icons/default/default${res}.png %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/librewolf.png cp ./browser/chrome/icons/default/default${res}.png %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/librewolf.png
done done
# Remove the broken RPATH... hopefully it's only a problem for this file
patchelf --remove-rpath /usr/share/librewolf/libonnxruntime.so
# move the stuff to /usr/share/librewolf
mv ./* %{buildroot}%{_datadir}/librewolf/ mv ./* %{buildroot}%{_datadir}/librewolf/