Skip to content

Commit

Permalink
Fix and validate AppStream metainfo
Browse files Browse the repository at this point in the history
 - Add missing XML header
 - Validate format as per documentation:
   https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_app_data_validate_usage
  • Loading branch information
martinpitt authored and larskarlitski committed Feb 11, 2019
1 parent 7cda21b commit ad0e12a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.buildrpm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL maintainer="Xiaofeng Wang" \
baseimage="Fedora:latest" \
description="A cockpit-composer RPM builder container running on Fedora"

RUN dnf install -y make cmake rpm-build which gnupg tar xz curl jq nodejs python gcc gcc-c++ && dnf clean all
RUN dnf install -y make cmake rpm-build which gnupg tar xz curl jq nodejs python gcc gcc-c++ libappstream-glib && dnf clean all

WORKDIR /welder
CMD ["make", "rpm", "srpm"]
2 changes: 2 additions & 0 deletions cockpit-composer.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ URL: http://weldr.io/
Source0: https://github.com/weldr/welder-web/releases/download/%{version}/cockpit-composer-%{version}.tar.gz

BuildArch: noarch
BuildRequires: libappstream-glib

Requires: cockpit
Requires: lorax-composer
Expand All @@ -25,6 +26,7 @@ Composer GUI for Cockpit and lorax-composer
mkdir -p %{buildroot}/%{_datadir}/cockpit/welder
cp -r public/dist/* %{buildroot}/%{_datadir}/cockpit/welder
mkdir -p %{buildroot}/%{_datadir}/metainfo/
appstream-util validate-relax --nonet io.weldr.cockpit-composer.metainfo.xml
cp io.weldr.cockpit-composer.metainfo.xml %{buildroot}/%{_datadir}/metainfo/

%files
Expand Down
1 change: 1 addition & 0 deletions io.weldr.cockpit-composer.metainfo.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>io.weldr.cockpit-composer</id>
<metadata_license>CC0-1.0</metadata_license>
Expand Down

0 comments on commit ad0e12a

Please sign in to comment.