Skip to content

Commit

Permalink
ws: Update AppStream metadata to current format
Browse files Browse the repository at this point in the history
Adjust XML to current format
<https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html>
and move to /usr/share/metainfo/.
  • Loading branch information
martinpitt committed Sep 5, 2017
1 parent 3f7a6af commit b69f762
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/ws/Makefile-ws.am
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ CLEANFILES += \
src/ws/cockpit.service \
$(NULL)

appdatadir = $(datadir)/appdata
appdatadir = $(datadir)/metainfo
nodist_appdata_DATA = src/ws/cockpit.appdata.xml
appdata_in = src/ws/cockpit.appdata.xml.in

Expand Down
30 changes: 21 additions & 9 deletions src/ws/cockpit.appdata.xml.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<application>
<id type="desktop">cockpit.desktop</id>
<component type="desktop-application">
<id>cockpit.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-2.0+</project_license>
<name>Cockpit</name>
<_summary>User interface for Linux servers</_summary>
<description>
<_p>
Cockpit is a server manager that makes it easy to administer your Linux
Expand All @@ -26,12 +28,22 @@
<!-- FIXME: we need some 16:9 screenshots of the latest code; also putting
them on http://cockpit-project.org/ would be best to control
them in the future -->
<screenshot type="default">http://cockpit-project.org/screenshots/cockpit-overview.png</screenshot>
<screenshot>http://cockpit-project.org/screenshots/cockpit-services.png</screenshot>
<screenshot>http://cockpit-project.org/screenshots/cockpit-journal.png</screenshot>
<screenshot>http://cockpit-project.org/screenshots/cockpit-network.png</screenshot>
<screenshot>http://cockpit-project.org/screenshots/cockpit-storage.png</screenshot>
<screenshot type="default">
<image>http://cockpit-project.org/screenshots/cockpit-overview.png</image>
</screenshot>
<screenshot>
<image>http://cockpit-project.org/screenshots/cockpit-services.png</image>
</screenshot>
<screenshot>
<image>http://cockpit-project.org/screenshots/cockpit-journal.png</image>
</screenshot>
<screenshot>
<image>http://cockpit-project.org/screenshots/cockpit-network.png</image>
</screenshot>
<screenshot>
<image>http://cockpit-project.org/screenshots/cockpit-storage.png</image>
</screenshot>
</screenshots>
<url type="homepage">http://cockpit-project.org/</url>
<updatecontact>anilsson_at_redhat.com</updatecontact>
</application>
<update_contact>anilsson_at_redhat.com</update_contact>
</component>
2 changes: 1 addition & 1 deletion tools/cockpit.spec
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ machines.
%{_docdir}/%{name}/COPYING
%{_docdir}/%{name}/README.md
%dir %{_datadir}/%{name}
%{_datadir}/appdata/cockpit.appdata.xml
%{_datadir}/metainfo/cockpit.appdata.xml
%{_datadir}/applications/cockpit.desktop
%{_datadir}/pixmaps/cockpit.png
%doc %{_mandir}/man1/cockpit.1.gz
Expand Down
2 changes: 1 addition & 1 deletion tools/debian/cockpit.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usr/share/appdata/cockpit.appdata.xml
usr/share/metainfo/cockpit.appdata.xml
usr/share/applications/cockpit.desktop
usr/share/pixmaps/cockpit.png
usr/share/man/man1/cockpit.1

0 comments on commit b69f762

Please sign in to comment.