diff options
author | Marian Csontos <mcsontos@redhat.com> | 2016-09-16 17:23:32 +0200 |
---|---|---|
committer | Marian Csontos <mcsontos@redhat.com> | 2017-03-16 13:03:24 +0100 |
commit | 7067514c9b3e5af88629799a4bd60614ef776a9d (patch) | |
tree | b692e68af1cbf9b07700adc94642e9fcdc016c0b /spec/source.inc | |
parent | 5ba82a16db75a882b886b124c5f893a0ab636ba6 (diff) | |
download | lvm2-7067514c9b3e5af88629799a4bd60614ef776a9d.tar.gz |
spec: Use %global instead of %define for constants
Using %define is now discouraged by Fedora Packaging Guidelines
Diffstat (limited to 'spec/source.inc')
-rw-r--r-- | spec/source.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/source.inc b/spec/source.inc index 3fa8038ee..43bb20c0a 100644 --- a/spec/source.inc +++ b/spec/source.inc @@ -50,19 +50,19 @@ %if %{fedora} >= 24 || %{rhel} >= 7 %service lvmlockd 1 - %define sanlock_version 3.3.0-1 - %define enable_lockd_dlm 1 - %define enable_lockd_sanlock 1 + %global sanlock_version 3.3.0-1 + %global enable_lockd_dlm 1 + %global enable_lockd_sanlock 1 %if %{rhel} %ifarch i686 x86_64 s390x %global buildreq_lockd_dlm dlm-devel >= %{dlm_version} %else - %define enable_lockd_dlm 0 + %global enable_lockd_dlm 0 %endif %ifarch x86_64 ppc64le ppc64 aarch64 %global buildreq_lockd_sanlock sanlock-devel >= %{sanlock_version} %else - %define enable_lockd_sanlock 0 + %global enable_lockd_sanlock 0 %endif %endif %endif @@ -140,7 +140,7 @@ # same as FC 16 above, only with older udev %if %{rhel} == 6 -%define req_udev udev >= 147-2 +%global req_udev udev >= 147-2 %global req_dm_persistent device-mapper-persistent-data >= 0.1.4 %endif @@ -149,7 +149,7 @@ # Do not reset Release to 1 unless both lvm2 and device-mapper # versions are increased together. -%define device_mapper_version 1.02.97 +%global device_mapper_version 1.02.97 Summary: Userland logical volume management tools Name: lvm2 |