mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-07 21:18:59 +03:00
spec: replace exists macro with plain shell test
seems this macro works only with recent rpm.
This commit is contained in:
parent
8ce8e33a44
commit
fcfbef26e4
@ -81,3 +81,13 @@ fi \
|
||||
%%endif \
|
||||
: \
|
||||
%%{nil}
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Disable event_activation when creating packages for system
|
||||
# with installed lvm2-testsuite
|
||||
#
|
||||
# This is used for internal package testing to avoid
|
||||
# updating lvm.conf after test suite installation.
|
||||
#
|
||||
%define lvm2_testsuite_build %( test -d /usr/share/lvm2-testsuite && echo 0 || echo 1 )
|
||||
|
@ -15,19 +15,7 @@
|
||||
%global enable_lvmlockd_dlm 0
|
||||
%global enable_lvmlockd_sanlock 0
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Disable event_activation when creating packages for system
|
||||
# with installed lvm2-testsuite
|
||||
#
|
||||
# This is used for internal package testing to avoid
|
||||
# updating lvm.conf after test suite installation.
|
||||
#
|
||||
%if %{exists:/usr/share/lvm2-testsuite/lib/lvm}
|
||||
%with default-event-activation 0
|
||||
%else
|
||||
%with default-event-activation 1
|
||||
%endif
|
||||
%with default-event-activation %{lvm2_testsuite_build}
|
||||
|
||||
%if %{enable_udev}
|
||||
%service lvmpolld 1
|
||||
|
Loading…
Reference in New Issue
Block a user