Add app-data-validate for metainfo.xml
This commit is contained in:
parent
aadc75afd0
commit
5705467b85
2 changed files with 29 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -96,12 +96,14 @@ dist-gzip: all cockpit-$(PACKAGE_NAME).spec
|
|||
mv node_modules.release node_modules
|
||||
|
||||
srpm: dist-gzip cockpit-$(PACKAGE_NAME).spec
|
||||
appstream-util validate-relax --nonet *.metainfo.xml
|
||||
rpmbuild -bs \
|
||||
--define "_sourcedir `pwd`" \
|
||||
--define "_srcrpmdir `pwd`" \
|
||||
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`/rpmbuild"
|
||||
rpmbuild -bb \
|
||||
|
|
|
|||
27
cockpit-starter-kit.spec.in
Normal file
27
cockpit-starter-kit.spec.in
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue