Browse Source

Clean up specfile header

Prefer `%global` over `%define` and do it earlier.
Alois Mahdal 6 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
+%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
 Name:           __MKIT_PROJ_PKGNAME__
7
 Name:           __MKIT_PROJ_PKGNAME__
2
 Version:        __MKIT_PROJ_VERSION__
8
 Version:        __MKIT_PROJ_VERSION__
3
 Release:        1%{?dist}
9
 Release:        1%{?dist}
6
 URL:            __MKIT_PROJ_VCS_BROWSER__
12
 URL:            __MKIT_PROJ_VCS_BROWSER__
7
 Source0:        %{name}-%{version}.tar.gz
13
 Source0:        %{name}-%{version}.tar.gz
8
 BuildArch:      noarch
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
 BuildRequires:  perl
15
 BuildRequires:  perl
17
 BuildRequires:  %{pspkg}
16
 BuildRequires:  %{pspkg}
18
 
17