Move spec file into packaging/
This is cleaner once projects add debian and arch packaging. Factorize the spec name/path in the Makefile.
This commit is contained in:
parent
0493621504
commit
799d8f5cc9
2 changed files with 11 additions and 10 deletions
43
packaging/cockpit-starter-kit.spec.in
Normal file
43
packaging/cockpit-starter-kit.spec.in
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
Name: cockpit-starter-kit
|
||||
Version: %{VERSION}
|
||||
Release: 1%{?dist}
|
||||
Summary: Cockpit Starter Kit Example Module
|
||||
License: LGPLv2+
|
||||
|
||||
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
|
||||
BuildRequires: libappstream-glib
|
||||
|
||||
Requires: cockpit-system
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
Cockpit Starter Kit Example Module
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
%setup -q -a 1 -n %{name}
|
||||
|
||||
%build
|
||||
# ignore pre-built webpack in release tarball and rebuild it
|
||||
rm -rf dist
|
||||
NODE_ENV=production make
|
||||
|
||||
%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 --no-run-if-empty rm --verbose
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE dist/index.js.LICENSE.txt.gz
|
||||
%{_datadir}/cockpit/*
|
||||
%{_datadir}/metainfo/*
|
||||
|
||||
%changelog
|
||||
Loading…
Add table
Add a link
Reference in a new issue