Browse Source

Use macros for Shellfu and Saturnin requirements

Alois Mahdal 6 years ago
parent
commit
e773ee3547
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      packaging/template.spec

+ 7
- 4
packaging/template.spec View File

@@ -1,3 +1,6 @@
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 4
 Name:           __MKIT_PROJ_PKGNAME__
2 5
 Version:        __MKIT_PROJ_VERSION__
3 6
 Release:        1%{?dist}
@@ -6,11 +9,11 @@ URL:            __MKIT_PROJ_VCS_BROWSER__
6 9
 License:        LGPLv2
7 10
 Source0:        %{name}-%{version}.tar.gz
8 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 17
 %description
15 18
 saturnin is Shellfu library that helps you easily build toolkit from
16 19
 various scripts that you may have lying around.  Instead of having a