Procházet zdrojové kódy

Use macros for Shellfu and Saturnin requirements

Alois Mahdal před 6 roky
rodič
revize
e773ee3547
1 změnil soubory, kde provedl 7 přidání a 4 odebrání
  1. 7
    4
      packaging/template.spec

+ 7
- 4
packaging/template.spec Zobrazit soubor

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