From 1ad85a5fbef533d32a1b199568814a410fb1453d Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Fri, 24 Nov 2023 11:59:44 +0100 Subject: [PATCH] Builds for Fedora 39 --- fedora/SPECS/crowdsec.spec | 14 ++++++++++---- fedora/SPECS/navidrome.spec | 7 +++++-- fedora/SPECS/sshpiper.spec | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/fedora/SPECS/crowdsec.spec b/fedora/SPECS/crowdsec.spec index 5341d8d..d9e9136 100644 --- a/fedora/SPECS/crowdsec.spec +++ b/fedora/SPECS/crowdsec.spec @@ -6,13 +6,16 @@ Summary: Crowdsec - An open-source, lightweight agent to detect and respo License: MIT URL: https://crowdsec.net -Source0: https://github.com/crowdsecurity/%{name}/archive/v%{version}.tar.gz +Source0: %{name}.tar.gz Source1: 80-%{name}.preset Patch0: crowdsec.unit.patch Patch1: user.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: systemd +BuildRequires: git +BuildRequires: re2-devel +BuildRequires: golang >= 1.21 Requires: crontabs %{?fc33:BuildRequires: systemd-rpm-macros} %{?fc34:BuildRequires: systemd-rpm-macros} @@ -28,12 +31,16 @@ Requires: crontabs %global __mangle_shebangs_exclude_from /usr/bin/env %prep -%setup -q -T -b 0 - +%setup -n %{name} +cd .. +rm -rf %{name} +git clone https://github.com/crowdsecurity/crowdsec +cd %{name} %patch -P 0 %patch -P 1 %build +make BUILD_VERSION=v%{version} build sed -i "s#/usr/local/lib/crowdsec/plugins/#%{_libdir}/%{name}/plugins/#g" config/config.yaml %install @@ -74,7 +81,6 @@ install -m 600 cmd/notification-splunk/splunk.yaml %{buildroot}%{_sysconfdir}/cr install -m 600 cmd/notification-email/email.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ install -m 600 cmd/notification-sentinel/sentinel.yaml %{buildroot}%{_sysconfdir}/crowdsec/notifications/ - %clean rm -rf %{buildroot} diff --git a/fedora/SPECS/navidrome.spec b/fedora/SPECS/navidrome.spec index 05926b6..d49dbef 100644 --- a/fedora/SPECS/navidrome.spec +++ b/fedora/SPECS/navidrome.spec @@ -2,8 +2,8 @@ %define navidrome_user navidrome %define debug_package %{nil} Name: navidrome -Version: 0.49.3 -Release: 2%{?dist} +Version: 0.50.1 +Release: 1%{?dist} Summary: Navidrome is a self-hosted, open source music server and streamer Group: System @@ -100,6 +100,9 @@ fi %{_systemd_util_dir}/system/%{name}.service %changelog +* Thu Nov 23 2023 Daniel Steiner +- Update to 0.50.1. + * Thu Feb 23 2023 Daniel Steiner - Update to 0.49.3. diff --git a/fedora/SPECS/sshpiper.spec b/fedora/SPECS/sshpiper.spec index 89e0e62..e1aff51 100644 --- a/fedora/SPECS/sshpiper.spec +++ b/fedora/SPECS/sshpiper.spec @@ -1,6 +1,6 @@ Name: sshpiper Version: 1.2.3 -Release: 1git%{?dist} +Release: 3git%{?dist} Summary: Reverse proxy for sshd. %define debug_package %{nil} %define _build_id_links none