Browse Source

Clean up SPEC file template

Use `%global` definition for Shellfu requires and cluster fields
according to relevancy (source vs. build).
Alois Mahdal 7 years ago
parent
commit
24b6f5cc0a
1 changed files with 14 additions and 13 deletions
  1. 14
    13
      packaging/template.spec

+ 14
- 13
packaging/template.spec View File

1
-Name:           __MKIT_PROJ_PKGNAME__
2
-Version:        __MKIT_PROJ_VERSION__
3
-Release:        1%{?dist}
4
-Summary:        __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
5
-URL:            __MKIT_PROJ_VCS_BROWSER__
6
-License:        GPLv2
7
-Source0:        %{name}-%{version}.tar.gz
8
-BuildArch:      noarch
9
-
10
-Requires:       imapfilter
11
-Requires:       shellfu >= 0.10, shellfu < 0.11
12
-Requires:       shellfu-bash-pretty
13
-
1
+%global shellfu_req shellfu >= 0.10.4, shellfu < 0.11
2
+
3
+Name:       __MKIT_PROJ_PKGNAME__
4
+Version:    __MKIT_PROJ_VERSION__
5
+Release:    1%{?dist}
6
+Summary:    __MKIT_PROJ_NAME__ - __MKIT_PROJ_TAGLINE__
7
+URL:        __MKIT_PROJ_VCS_BROWSER__
8
+License:    GPLv2
9
+Source0:    %{name}-%{version}.tar.gz
10
+BuildArch:  noarch
11
+
12
+Requires: %shellfu_req
13
+Requires: imapfilter
14
+Requires: shellfu-bash-pretty
14
 %description
15
 %description
15
 imapdomo is simple convenience wrapper around imapfilter that
16
 imapdomo is simple convenience wrapper around imapfilter that
16
 adds few more Lua functions and suggests some system to way how you can
17
 adds few more Lua functions and suggests some system to way how you can