瀏覽代碼

Use macros for Shellfu and Saturnin requirements

Alois Mahdal 7 年之前
父節點
當前提交
e773ee3547
共有 1 個檔案被更改,包括 7 行新增4 行删除
  1. 7
    4
      packaging/template.spec

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

1
+%define shellfu_req shellfu >= 0.10.4, shellfu < 0.11
2
+%define saturnin_req shellfu-bash-saturnin >= 0.4.10, shellfu-bash-saturnin < 0.5
3
+
1
 Name:           __MKIT_PROJ_PKGNAME__
4
 Name:           __MKIT_PROJ_PKGNAME__
2
 Version:        __MKIT_PROJ_VERSION__
5
 Version:        __MKIT_PROJ_VERSION__
3
 Release:        1%{?dist}
6
 Release:        1%{?dist}
6
 License:        LGPLv2
9
 License:        LGPLv2
7
 Source0:        %{name}-%{version}.tar.gz
10
 Source0:        %{name}-%{version}.tar.gz
8
 BuildArch:      noarch
11
 BuildArch:      noarch
9
-BuildRequires:  shellfu >= 0.10, shellfu < 0.11
10
-BuildRequires:  shellfu-bash-saturnin >= 0.4.8, shellfu-bash-saturnin < 0.5.0
12
+BuildRequires:  %saturnin_req
13
+BuildRequires:  %shellfu_req
11
 
14
 
12
-Requires:       shellfu >= 0.10, shellfu < 0.11
13
-Requires:       shellfu-bash-saturnin >= 0.4.8, shellfu-bash-saturnin < 0.5.0
15
+Requires:   %shellfu_req
16
+Requires:   %saturnin_req
14
 %description
17
 %description
15
 saturnin is Shellfu library that helps you easily build toolkit from
18
 saturnin is Shellfu library that helps you easily build toolkit from
16
 various scripts that you may have lying around.  Instead of having a
19
 various scripts that you may have lying around.  Instead of having a