1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

spec: define rhel_version_file for rhel only

Do not define rhel_minor_version on non-rhel systems.
This commit is contained in:
Zdenek Kabelac 2024-04-19 20:45:15 +02:00
parent 79bb9e3172
commit 6ee731ba1a

View File

@ -83,9 +83,11 @@ fi \
%%{nil}
# Resolve RHEL minor version from redhat-release
%if 0%{?rhel} > 0
%define rhel_minor_version %(rhel_version_file="/etc/redhat-release";
if [ -f $rhel_version_file ]; then cat $rhel_version_file |
if [ -f "$rhel_version_file" ]; then cat "$rhel_version_file" |
cut -f2 -d. | cut -f1 -d' '; else echo 0; fi)
%endif
#############################################################
#