Browse Source

Clean up specfile header

Prefer `%global` over `%define` and do it earlier.
Alois Mahdal 5 years ago
parent
commit
2e90a8d2e8
1 changed files with 6 additions and 7 deletions
  1. 6
    7
      packaging/template.spec

+ 6
- 7
packaging/template.spec View File

@@ -1,3 +1,9 @@
1
+%if ( 0%{?rhel} && 0%{?rhel} < 7 ) || ( 0%{?centos} && 0%{?centos} < 7 )
2
+%global pspkg procps
3
+%else
4
+%global pspkg procps-ng
5
+%endif
6
+
1 7
 Name:           __MKIT_PROJ_PKGNAME__
2 8
 Version:        __MKIT_PROJ_VERSION__
3 9
 Release:        1%{?dist}
@@ -6,13 +12,6 @@ License:        LGPLv2
6 12
 URL:            __MKIT_PROJ_VCS_BROWSER__
7 13
 Source0:        %{name}-%{version}.tar.gz
8 14
 BuildArch:      noarch
9
-
10
-%if ( 0%{?rhel} && 0%{?rhel} < 7 ) || ( 0%{?centos} && 0%{?centos} < 7 )
11
-%define pspkg procps
12
-%else
13
-%define pspkg procps-ng
14
-%endif
15
-
16 15
 BuildRequires:  perl
17 16
 BuildRequires:  %{pspkg}
18 17