Skip to content

Commit a30c562

Browse files
Copilotalvarolopez
andcommitted
build: Fix RPM spec file macro recursion error
- Add conditional default version definition to prevent circular macro reference - The Version tag was set to %{version} which created infinite recursion - Now uses %{!?version:%define version 5.1.0} to provide a default - This allows rpmbuild to override with --define "version X.Y.Z" from CI - Tested with rpm --define "version 5.1.1.dev1" -q --specfile Co-authored-by: alvarolopez <[email protected]>
1 parent 735b8d2 commit a30c562

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packaging/redhat/caso.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
%{!?version:%define version 5.1.0}
12
Name: caso
23
Version: %{version}
34
Release: 1%{?dist}

0 commit comments

Comments
 (0)