All of lore.kernel.org
 help / color / mirror / Atom feed
* master - spec: Use %global instead of %define for constants
@ 2017-03-16 12:05 Marian Csontos
  0 siblings, 0 replies; only message in thread
From: Marian Csontos @ 2017-03-16 12:05 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7067514c9b3e5af88629799a4bd60614ef776a9d
Commit:        7067514c9b3e5af88629799a4bd60614ef776a9d
Parent:        5ba82a16db75a882b886b124c5f893a0ab636ba6
Author:        Marian Csontos <mcsontos@redhat.com>
AuthorDate:    Fri Sep 16 17:23:32 2016 +0200
Committer:     Marian Csontos <mcsontos@redhat.com>
CommitterDate: Thu Mar 16 13:03:24 2017 +0100

spec: Use %global instead of %define for constants

Using %define is now discouraged by Fedora Packaging Guidelines
---
 spec/source.inc |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/spec/source.inc b/spec/source.inc
index 3fa8038..43bb20c 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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-16 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16 12:05 master - spec: Use %global instead of %define for constants Marian Csontos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.