Include appdata files for the client and monolithic client.

This commit is contained in:
Ben Rosser 2016-09-09 14:41:03 -04:00
parent a32dbc7496
commit 821ab1e762
3 changed files with 102 additions and 3 deletions

41
quassel.appdata.xml Normal file
View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2016 Ben Rosser <rosser.bjr@gmail.com> -->
<component type="desktop">
<id>quassel.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>Quassel</name>
<summary>Modern IRC client</summary>
<description>
<p>
Quassel IRC is a modern, cross-platform, distributed IRC client, meaning that
one (or multiple) client(s) can attach to and detach from a central core: much
like the popular combination of screen and a text-based IRC client such as
WeeChat, but graphical. In addition to this unique feature, we aim to bring a
pleasurable, comfortable chatting experience to all major platforms, making
communication with your peers not only convenient, but also available everywhere.
</p>
<p>
And the best of all: It's free - as in beer and as in speech.
</p>
<p>
This application is the "monolithic" build of Quassel; it can be used on its own
without setting up a core.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>http://quassel-irc.org/files/images/20080914-011743-quasselkde4.preview.png</image>
<caption>Quassel, with a dark theme enabled</caption>
</screenshot>
<screenshot type="default">
<image>http://quassel-irc.org/files/images/quassel_win7.preview.png</image>
<caption>
The default quassel white theme. Quassel runs on all major desktop platforms,
and many smartphones as well.
</caption>
</screenshot>
</screenshots>
</component>

View File

@ -4,7 +4,7 @@
Name: quassel
Summary: A modern distributed IRC system
Version: 0.12.4
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2 or GPLv3
Group: Applications/Internet
@ -23,6 +23,8 @@ BuildRequires: qt4-webkit-devel
BuildRequires: systemd
BuildRequires: firewalld-filesystem
BuildRequires: libappstream-glib
Requires: oxygen-icon-theme
Provides: %{name}-gui = %{version}-%{release}
@ -36,6 +38,10 @@ Source2: quassel.conf
# Firewalld service definition.
Source3: quassel.xml
# Appstream metadata, for GNOME Software.
Source4: quassel.appdata.xml
Source5: quasselclient.appdata.xml
%description
Quassel IRC is a modern, distributed IRC client,
meaning that one (or multiple) client(s) can attach
@ -114,6 +120,12 @@ install -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/
# Home directory for quassel user
install -d -m 0750 $RPM_BUILD_ROOT%{quassel_data_dir}
# Install the appdata files.
mkdir %{buildroot}%{_datadir}/appdata/
cp -a %{SOURCE4} %{SOURCE5} %{buildroot}%{_datadir}/appdata/
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
%clean
rm -rf $RPM_BUILD_ROOT
@ -150,10 +162,11 @@ exit 0
%postun core
%systemd_postun_with_restart quasselcore.service
%files
%files
%defattr(-,root,root,-)
%{_kde4_bindir}/quassel
%{_kde4_datadir}/applications/kde4/quassel.desktop
%{_datadir}/appdata/quassel.appdata.xml
%files common
%defattr(-,root,root,-)
@ -172,13 +185,17 @@ exit 0
%config(noreplace) %{_sysconfdir}/quassel.conf
%{_prefix}/lib/firewalld/services/quassel.xml
%files client
%files client
%defattr(-,root,root,-)
%{_kde4_bindir}/quasselclient
%{_kde4_datadir}/applications/kde4/quasselclient.desktop
%{_datadir}/appdata/quasselclient.appdata.xml
%changelog
* Fri Sep 9 2016 Ben Rosser <rosser.bjr@gmail.com> 0.12.4-2
- Include appstream metadata for client and monolithic client.
* Mon Apr 25 2016 Ben Rosser <rosser.bjr@gmail.com> 0.12.4-1
- Update to latest upstream quassel release

41
quasselclient.appdata.xml Normal file
View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2016 Ben Rosser <rosser.bjr@gmail.com> -->
<component type="desktop">
<id>quasselclient.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<name>Quassel Client</name>
<summary>Modern distributed IRC client</summary>
<description>
<p>
Quassel IRC is a modern, cross-platform, distributed IRC client, meaning that
one (or multiple) client(s) can attach to and detach from a central core: much
like the popular combination of screen and a text-based IRC client such as
WeeChat, but graphical. In addition to this unique feature, we aim to bring a
pleasurable, comfortable chatting experience to all major platforms, making
communication with your peers not only convenient, but also available everywhere.
</p>
<p>
And the best of all: It's free - as in beer and as in speech.
</p>
<p>
This application is the client-only version of Quassel. You must first set up
(or have been given an account on) the quassel core before using this.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>http://quassel-irc.org/files/images/20080914-011743-quasselkde4.preview.png</image>
<caption>Quassel, with a dark theme enabled</caption>
</screenshot>
<screenshot type="default">
<image>http://quassel-irc.org/files/images/quassel_win7.preview.png</image>
<caption>
The default quassel white theme. Quassel runs on all major desktop platforms,
and many smartphones as well.
</caption>
</screenshot>
</screenshots>
</component>