fix: use %{spec_version} macro in RPM spec file
- Define %global spec_version before Version: field
- Use %{spec_version} in Version: field for proper macro expansion
- Makes version management easier for RPM builds
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@ -1,8 +1,11 @@
|
|||||||
# logcorrelator RPM spec file
|
# logcorrelator RPM spec file
|
||||||
# Compatible with CentOS 7, Rocky Linux 8, 9, 10
|
# Compatible with CentOS 7, Rocky Linux 8, 9, 10
|
||||||
|
|
||||||
|
# Define version before Version: field for RPM macro support
|
||||||
|
%global spec_version 1.0.4
|
||||||
|
|
||||||
Name: logcorrelator
|
Name: logcorrelator
|
||||||
Version: 1.0.4
|
Version: %{spec_version}
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Log correlation service for HTTP and network events
|
Summary: Log correlation service for HTTP and network events
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user