Packages are now easier to update

This commit is contained in:
2023-11-04 14:39:34 +01:00
parent 8df93a4a96
commit 685e491925
4 changed files with 205 additions and 20 deletions

View File

@@ -6,15 +6,12 @@ Summary: Crowdsec - An open-source, lightweight agent to detect and respo
License: MIT
URL: https://crowdsec.net
Source0: https://github.com/crowdsecurity/%{name}/archive/%{name}-release.tgz
Source0: https://github.com/crowdsecurity/%{name}/archive/v%{version}.tar.gz
Source1: 80-%{name}.preset
Patch0: crowdsec.unit.patch
Patch1: user.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define debug_package %{nil}
%define _build_id_links none
BuildRequires: systemd
Requires: crontabs
%{?fc33:BuildRequires: systemd-rpm-macros}
@@ -22,16 +19,16 @@ Requires: crontabs
%{?fc35:BuildRequires: systemd-rpm-macros}
%{?fc36:BuildRequires: systemd-rpm-macros}
%define debug_package %{nil}
%define _build_id_links none
%description
%define version_number %(echo $VERSION)
%define releasever %(echo $RELEASEVER)
%global name crowdsec
%global __mangle_shebangs_exclude_from /usr/bin/env
%prep
%setup -q -T -b 0 -n %{name}-v%{version}
%setup -q -T -b 0
%patch -P 0
%patch -P 1
@@ -242,3 +239,4 @@ fi
%changelog
* Sat Nov 4 2023 Daniel Steiner <daniel.steiner@dsteiner.ch>
- First initial packaging