commit 744e0cbc8e8300f5780a6a136ebcf80fb5b7ade0
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sat Jun 10 12:33:34 2023 +0100
Add appdata
discord.metainfo.xml | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++
discord.spec | 15 +++++++--
2 files changed, 101 insertions(+), 2 deletions(-)
---
diff --git a/discord.metainfo.xml b/discord.metainfo.xml
new file mode 100644
index 0000000..0ac251b
--- /dev/null
+++ b/discord.metainfo.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">discord.desktop</id>
+ <name>Discord</name>
+ <developer_name>Discord Inc.</developer_name>
+ <summary>Messaging, Voice, and Video Client</summary>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>LicenseRef-proprietary</project_license>
+ <url type="homepage">https://discord.com</url>
+ <icon type="remote" height="256"
width="256">https://support.discord.com/hc/user_images/bbW4u...
+ <description>
+ <p>Discord is a free all in one messaging, voice, and video client thats
available on your computer and phone.</p>
+ <p>Whether you’re part of a school club, gaming group, worldwide art community,
or just a handful of friends that want to spend time together, Discord makes it easy to
talk every day and hang out more often.</p>
+ <ul>
+ <li>Talk to your friends with messaging, voice, and video in a "Direct
Message" (1 other person), group chat (up to 10 people), or a multi-channel server
(practically infinite maximum members).</li>
+ <li>Discord servers are organized into topic-based channels where you can
collaborate, share, and just talk about your day without clogging up a group
chat.</li>
+ <li>Grab a seat in a voice channel when you’re free. Friends in your server
can see you’re around and instantly pop in to talk without having to call.</li>
+ <li>Get a community of any size running with moderation tools and custom
member access. Give members special powers, set up private channels, and more.</li>
+ <li>Low-latency voice and video feels like you’re in the same room. Wave
hello over video, watch friends stream their games, or gather up and have a drawing
session with screen share.</li>
+ <li>Available on Linux, macOS, Windows, iOS, Android, and your web
browser.</li>
+ </ul>
+ <p>Discord is written in Javascript, React, Elixir, and Rust. The desktop
application uses the electron framework.</p>
+ <p>The flatpak version runs in a sandbox to provide better safety and privacy
for users. However, this sandboxing prevents the following features from working out of
the box: Game Activity, Unrestricted File Access, Rich Presence. Check the README in the
Github repo for details.</p>
+ <p>This wrapper is not verified by, affiliated with, or supported by Discord
Inc.</p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <image
type="source">https://web.archive.org/web/20210930201229if_/...
+ <caption>Talk on an invite only server</caption>
+ </screenshot>
+ <screenshot>
+ <image
type="source">https://web.archive.org/web/20210930201229if_/...
+ <caption>Voice and Video</caption>
+ </screenshot>
+ <screenshot>
+ <image
type="source">https://web.archive.org/web/20210930201229if_/...
+ <caption>Dark Mode Window</caption>
+ </screenshot>
+ <screenshot>
+ <image
type="source">https://web.archive.org/web/20210930201229if_/...
+ <caption>Light Mode Window</caption>
+ </screenshot>
+ <screenshot>
+ <image
type="source">https://web.archive.org/web/20210930201229if_/...
+ <caption>Available on Linux, macOS, Windows, iOS, Android, and your web
browser</caption>
+ </screenshot>
+ </screenshots>
+ <kudos>
+ <kudo>HiDpiIcon</kudo>
+ <kudo>Notifications</kudo>
+ </kudos>
+ <categories>
+ <category>InstantMessaging</category>
+ <category>Network</category>
+ </categories>
+ <content_rating type="oars-1.1">
+ <content_attribute
id="violence-cartoon">none</content_attribute>
+ <content_attribute
id="violence-fantasy">none</content_attribute>
+ <content_attribute
id="violence-realistic">none</content_attribute>
+ <content_attribute
id="violence-bloodshed">none</content_attribute>
+ <content_attribute
id="violence-sexual">none</content_attribute>
+ <content_attribute
id="violence-desecration">none</content_attribute>
+ <content_attribute
id="violence-slavery">none</content_attribute>
+ <content_attribute
id="violence-worship">none</content_attribute>
+ <content_attribute id="drugs-alcohol">none</content_attribute>
+ <content_attribute
id="drugs-narcotics">none</content_attribute>
+ <content_attribute id="drugs-tobacco">none</content_attribute>
+ <content_attribute id="sex-nudity">none</content_attribute>
+ <content_attribute id="sex-themes">none</content_attribute>
+ <content_attribute
id="sex-homosexuality">none</content_attribute>
+ <content_attribute
id="sex-prostitution">none</content_attribute>
+ <content_attribute id="sex-adultery">none</content_attribute>
+ <content_attribute
id="sex-appearance">none</content_attribute>
+ <content_attribute
id="language-profanity">none</content_attribute>
+ <content_attribute
id="language-humor">none</content_attribute>
+ <content_attribute
id="language-discrimination">none</content_attribute>
+ <content_attribute
id="social-chat">intense</content_attribute>
+ <content_attribute
id="social-info">intense</content_attribute>
+ <content_attribute
id="social-audio">intense</content_attribute>
+ <content_attribute
id="social-location">none</content_attribute>
+ <content_attribute
id="social-contacts">intense</content_attribute>
+ <content_attribute
id="money-purchasing">intense</content_attribute>
+ <content_attribute
id="money-gambling">none</content_attribute>
+ </content_rating>
+ <url type="bugtracker">https://bugzilla.rpmfusion.org</url>
+ <update_contact>discord-owner(a)rpmfusion.org</update_contact>
+</application>
+
diff --git a/discord.spec b/discord.spec
index b93dcc0..746b69b 100644
--- a/discord.spec
+++ b/discord.spec
@@ -7,16 +7,19 @@
Name: discord
Version: 0.0.27
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: All-in-one voice and text chat for gamers
# License Information:
https://bugzilla.rpmfusion.org/show_bug.cgi?id=4441#c14
License: Proprietary
URL:
https://discordapp.com/
Source0:
https://dl.discordapp.net/apps/linux/%{version}/%{name}-%{version}.tar.gz
+# Adapted from
https://raw.githubusercontent.com/flathub/com.discordapp.Discord/master/c...
+Source1: discord.metainfo.xml
ExclusiveArch: x86_64
-BuildRequires: desktop-file-utils%{_isa}
+BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
Requires: glibc%{_isa}
Requires: alsa-lib%{_isa}
@@ -50,6 +53,7 @@ gaming communities.
mkdir -p %{buildroot}/%{_bindir}/
mkdir -p %{buildroot}/%{_libdir}/discord
mkdir -p %{buildroot}/%{_datadir}/applications
+mkdir -p %{buildroot}%{_metainfodir}/
desktop-file-install \
--set-icon=%{name} \
@@ -63,17 +67,24 @@ ln -sf ../%{_lib}/discord/Discord %{buildroot}/%{_bindir}/
install -p -D -m 644 %{name}.png \
%{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
+install -p -m 0644 %{SOURCE1} %{buildroot}%{_metainfodir}/
+
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
%files
%{_libdir}/discord/
%{_bindir}/Discord
%{_datadir}/applications/discord.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_metainfodir}/%{name}.metainfo.xml
%changelog
+* Sat Jun 10 2023 Leigh Scott <leigh123linux(a)gmail.com> - 0.0.27-2
+- Add appdata
+
* Thu Apr 27 2023 Sérgio Basto <sergio(a)serjux.com> - 0.0.27-1
- Update discord to 0.0.27