瀏覽代碼

Clean up specfile header

Prefer `%global` over `%define` and do it earlier.
Alois Mahdal 6 年之前
父節點
當前提交
2e90a8d2e8
共有 1 個檔案被更改,包括 6 行新增7 行删除
  1. 6
    7
      packaging/template.spec

+ 6
- 7
packaging/template.spec 查看文件

@@ -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