commit 749f90921b3d50fc76f309be951a71bb5d178b52
Author: Jan200101 <sentrycraft123(a)gmail.com>
Date: Mon Jun 20 23:19:55 2022 +0200
add metainfo, add missing dependency, improve description
ripcord.metainfo.xml | 31 +++++++++++++++++++++++++++++++
ripcord.spec | 26 ++++++++++++++++++++------
2 files changed, 51 insertions(+), 6 deletions(-)
---
diff --git a/ripcord.metainfo.xml b/ripcord.metainfo.xml
new file mode 100644
index 0000000..7eeaba8
--- /dev/null
+++ b/ripcord.metainfo.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+ <id>Ripcord.desktop</id>
+ <launchable type="desktop-id">Ripcord.desktop</launchable>
+ <name>Ripcord</name>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LicenseRef-proprietary</project_license>
+ <summary>a lightweight chat client for Slack and Discord</summary>
+ <description>
+ <p>
+ Ripcord is a desktop chat client for group-centric services like Slack and
Discord.
+ It provides a traditional compact desktop interface designed for power
users.
+ It's not built on top of web browser technology: it has a small resource
footprint,
+ responds quickly to input, and gets out of your way. Shareware is coming
back, baby.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot>
+
<image>https://cancel.fm/ripcord/static/ripcord_screenshot_win_6.png</image>
+ </screenshot>
+ <screenshot>
+
<image>https://cancel.fm/ripcord/static/ripcord_screenshot_win_5.png</image>
+ </screenshot>
+ <screenshot>
+
<image>https://cancel.fm/ripcord/static/ripcord_screenshot_win_7.png</image>
+ </screenshot>
+ </screenshots>
+ <url type="homepage">https://cancel.fm/ripcord/</url>
+ <url type="bugtracker">https://dev.cancel.fm/</url>
+ <developer_name>cancel</developer_name>
+</component>
diff --git a/ripcord.spec b/ripcord.spec
index 12af913..cd7e0a1 100644
--- a/ripcord.spec
+++ b/ripcord.spec
@@ -4,23 +4,28 @@
Summary: a lightweight chat client for Slack and Discord
Name: ripcord
Version: 0.4.29
-Release: 3%{dist}
+Release: 4%{dist}
License: Redistributable, no modification permitted
URL:
https://cancel.fm/ripcord
Source0:
https://cancel.fm/dl/Ripcord-%{version}-x86_64.AppImage
-Source1: redistribution.txt
+Source1: ripcord.metainfo.xml
+Source2: redistribution.txt
ExclusiveArch: x86_64
-BuildRequires: desktop-file-utils
BuildRequires: chrpath
+BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
%description
-Ripcord is a proprietary shareware client for Slack and Discord
+Ripcord is a desktop chat client for group-centric services like Slack and Discord.
+It provides a traditional compact desktop interface designed for power users.
+It's not built on top of web browser technology: it has a small resource footprint,
+responds quickly to input, and gets out of your way. Shareware is coming back, baby.
%prep
%autosetup -c -T
-cp %{SOURCE1} .
+cp %{SOURCE2} .
%build
chmod +x %{SOURCE0}
@@ -29,7 +34,7 @@ chmod +x %{SOURCE0}
%install
mkdir -p %{buildroot}/%{_bindir}/
mkdir -p %{buildroot}/%{_libdir}/ripcord/
-mkdir -p %{buildroot}/%{_datadir}/{applications,pixmaps}/
+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/
@@ -37,20 +42,29 @@ sed -i 's@libsodium.so.18@libsodium.so.23(a)'
%{buildroot}/%{_libdir}/ripcord//Rip
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
+install -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/metainfo/ripcord.metainfo.xml
+%check
desktop-file-install \
--set-key=Exec --set-value='env RIPCORD_ALLOW_UPDATES=0
%{_libdir}/ripcord/Ripcord' \
--dir=%{buildroot}/%{_datadir}/applications \
squashfs-root/Ripcord.desktop
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/ripcord.metainfo.xml
+
+
%files
%attr(755, root, root) %{_bindir}/Ripcord
%{_libdir}/ripcord/
%{_datadir}/applications/Ripcord.desktop
+%{_metainfodir}/ripcord.metainfo.xml
%{_datadir}/pixmaps/Ripcord_Icon.png
%license redistribution.txt
%changelog
+* Mon Jun 20 2022 Jan Drögehoff <sentrycraft123(a)gmail.com> - 0.4.29-4
+- add metainfo and missing dependency
+
* Thu Feb 10 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
0.4.29-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild