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:
parent
79bb9e3172
commit
6ee731ba1a
@ -83,9 +83,11 @@ fi \
|
|||||||
%%{nil}
|
%%{nil}
|
||||||
|
|
||||||
# Resolve RHEL minor version from redhat-release
|
# Resolve RHEL minor version from redhat-release
|
||||||
|
%if 0%{?rhel} > 0
|
||||||
%define rhel_minor_version %(rhel_version_file="/etc/redhat-release";
|
%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)
|
cut -f2 -d. | cut -f1 -d' '; else echo 0; fi)
|
||||||
|
%endif
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user