spec: Avoid repeating package name

Use rpm's `%{name}` macro instead. This makes it easier for forks to
keep the spec file in sync.
This commit is contained in:
Martin Pitt 2021-09-16 09:12:35 +02:00 committed by Martin Pitt
parent cd0b88682d
commit a5f319b804

View file

@ -4,8 +4,8 @@ Release: 1%{?dist}
Summary: Cockpit Starter Kit Example Module
License: LGPLv2+
Source0: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/cockpit-starter-kit-%{version}.tar.xz
Source1: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/cockpit-starter-kit-node-%{version}.tar.xz
Source0: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-node-%{version}.tar.xz
BuildArch: noarch
BuildRequires: nodejs
BuildRequires: make
@ -19,8 +19,8 @@ Requires: cockpit-system
Cockpit Starter Kit Example Module
%prep
%setup -q -n cockpit-starter-kit
%setup -q -a 1 -n cockpit-starter-kit
%setup -q -n %{name}
%setup -q -a 1 -n %{name}
%build
# ignore pre-built webpack in release tarball and rebuild it