From 70bd3a889a683af71ff193d8d102fa94c9235edf Mon Sep 17 00:00:00 2001 From: arabian Date: Tue, 2 Jun 2026 23:44:32 +0300 Subject: [PATCH] packages(rpm): add fallback macros for systems without rpmautospec --- packages/rpm/pwsp.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/rpm/pwsp.spec b/packages/rpm/pwsp.spec index b98ccf4..9c53646 100644 --- a/packages/rpm/pwsp.spec +++ b/packages/rpm/pwsp.spec @@ -1,7 +1,11 @@ - # prevent library files from being installed %global cargo_install_lib 0 +# Fallback macros for systems without rpmautospec (e.g. openSUSE) +%{!?autorelease: %global autorelease 1} +%{!?autochangelog: %global autochangelog * Tue Jun 02 2026 Arabian - %{version}-%{release}\n- Release build} + + # disable debuginfo package generation (debugsourcefiles.list is empty for Rust) %global debug_package %{nil}