Use `%{VERSION}` as version macro instead of `@VERSION@`, so that the
.spec.in file is syntactically a correct spec file that can be parsed
with `rpmspec`.
32 lines
662 B
RPMSpec
32 lines
662 B
RPMSpec
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
|
|
|
|
Requires: cockpit-system
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%description
|
|
Cockpit Starter Kit Example Module
|
|
|
|
%prep
|
|
%setup -n cockpit-starter-kit
|
|
|
|
%install
|
|
%make_install
|
|
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*
|
|
|
|
# drop source maps, they are large and just for debugging
|
|
find %{buildroot}%{_datadir}/cockpit/ -name '*.map' | xargs rm --verbose
|
|
|
|
%files
|
|
%{_datadir}/cockpit/*
|
|
%{_datadir}/metainfo/*
|
|
|
|
%changelog
|