Add app-data-validate for metainfo.xml

This commit is contained in:
Kyrylo Gliebov 2019-01-15 14:59:17 +01:00 committed by Kirill Glebov
parent aadc75afd0
commit 5705467b85
2 changed files with 29 additions and 0 deletions

View file

@ -96,12 +96,14 @@ dist-gzip: all cockpit-$(PACKAGE_NAME).spec
mv node_modules.release node_modules mv node_modules.release node_modules
srpm: dist-gzip cockpit-$(PACKAGE_NAME).spec srpm: dist-gzip cockpit-$(PACKAGE_NAME).spec
appstream-util validate-relax --nonet *.metainfo.xml
rpmbuild -bs \ rpmbuild -bs \
--define "_sourcedir `pwd`" \ --define "_sourcedir `pwd`" \
--define "_srcrpmdir `pwd`" \ --define "_srcrpmdir `pwd`" \
cockpit-$(PACKAGE_NAME).spec cockpit-$(PACKAGE_NAME).spec
rpm: dist-gzip cockpit-$(PACKAGE_NAME).spec rpm: dist-gzip cockpit-$(PACKAGE_NAME).spec
appstream-util validate-relax --nonet ./*.metainfo.xml
mkdir -p "`pwd`/output" mkdir -p "`pwd`/output"
mkdir -p "`pwd`/rpmbuild" mkdir -p "`pwd`/rpmbuild"
rpmbuild -bb \ rpmbuild -bb \

View file

@ -0,0 +1,27 @@
Name: cockpit-starter-kit
Version: @VERSION@
Release: 1%{?dist}
Summary: Cockpit Starter Kit Example Module
License: LGPLv2+
Source: cockpit-starter-kit-%{version}.tar.gz
BuildArch: noarch
BuildRequires: libappstream-glib
%define debug_package %{nil}
%description
Cockpit Starter Kit Example Module
%prep
%setup -n cockpit-starter-kit
%install
%make_install
%files
%{_datadir}/cockpit/*
%{_datadir}/metainfo/*
%changelog