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:
parent
cd0b88682d
commit
a5f319b804
1 changed files with 4 additions and 4 deletions
|
|
@ -4,8 +4,8 @@ Release: 1%{?dist}
|
||||||
Summary: Cockpit Starter Kit Example Module
|
Summary: Cockpit Starter Kit Example Module
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
|
|
||||||
Source0: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/cockpit-starter-kit-%{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}/cockpit-starter-kit-node-%{version}.tar.xz
|
Source1: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-node-%{version}.tar.xz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: nodejs
|
BuildRequires: nodejs
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
@ -19,8 +19,8 @@ Requires: cockpit-system
|
||||||
Cockpit Starter Kit Example Module
|
Cockpit Starter Kit Example Module
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n cockpit-starter-kit
|
%setup -q -n %{name}
|
||||||
%setup -q -a 1 -n cockpit-starter-kit
|
%setup -q -a 1 -n %{name}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# ignore pre-built webpack in release tarball and rebuild it
|
# ignore pre-built webpack in release tarball and rebuild it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue