Add git tag derived version to tarball and spec

Stop hardcoding the version in the spec file, and put the version into
dist tarballs.

Closes #27
This commit is contained in:
Martin Pitt 2018-06-22 20:07:29 +02:00 committed by Lars Karlitski
parent 7260f5c01f
commit f26741e269
3 changed files with 11 additions and 5 deletions

View file

@ -0,0 +1,26 @@
Name: cockpit-starter-kit
Version: @VERSION@
Release: 0
Summary: Cockpit Starter Kit Example Module
License: LGPLv2.1+
Source: cockpit-starter-kit-%{version}.tar.gz
BuildArch: noarch
%define debug_package %{nil}
%description
Cockpit Starter Kit Example Module
%prep
%setup -n cockpit-starter-kit
%build
make
%install
make install DESTDIR=%{buildroot}
find %{buildroot} -type f >> files.list
sed -i "s|%{buildroot}||" *.list
%files -f files.list