commit ee41c82aa6db212bb444575eb8bcc9bd944f3751
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Nov 18 18:51:05 2023 +0000
Fix build for f40+
ripcord.spec | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/ripcord.spec b/ripcord.spec
index 92a8908..9456d1c 100644
--- a/ripcord.spec
+++ b/ripcord.spec
@@ -4,7 +4,7 @@
Summary: a lightweight chat client for Slack and Discord
Name: ripcord
Version: 0.4.29
-Release: 6%{dist}
+Release: 7%{dist}
License: Redistributable, no modification permitted
URL:
https://cancel.fm/ripcord
@@ -38,7 +38,11 @@ mkdir -p %{buildroot}/%{_datadir}/{applications,pixmaps,metainfo}/
cp -R squashfs-root/{Ripcord,translations,twemoji.ripdb}
%{buildroot}/%{_libdir}/ripcord/
chmod 0755 %{buildroot}/%{_libdir}/ripcord/translations/
install -p -m 0644 squashfs-root/Ripcord_Icon.png %{buildroot}/%{_datadir}/pixmaps/
+%if 0%{?fedora} && 0%{?fedora} > 39
+sed -i 's@libsodium.so.18@libsodium.so.26(a)'
%{buildroot}/%{_libdir}/ripcord//Ripcord
+%else
sed -i 's@libsodium.so.18@libsodium.so.23(a)'
%{buildroot}/%{_libdir}/ripcord//Ripcord
+%endif
chrpath -d %{buildroot}/%{_libdir}/ripcord//Ripcord
strip %{buildroot}/%{_libdir}/ripcord/Ripcord
printf "#!/bin/bash\nenv RIPCORD_ALLOW_UPDATES=0 %{_libdir}/ripcord/Ripcord\n"
> %{buildroot}/%{_bindir}/Ripcord
@@ -62,6 +66,9 @@ appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/ripcord.metain
%license redistribution.txt
%changelog
+* Sat Nov 18 2023 Leigh Scott <leigh123linux(a)gmail.com> - 0.4.29-7
+- Fix build for f40+
+
* Thu Aug 03 2023 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
0.4.29-6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild