Browse Source

Use old name for Jinja2 dependency

RHEL6 and older call it python-jinja2, then it's called python2-jinja2.

Fixes #3.
Alois Mahdal 6 years ago
parent
commit
3bb46e35d8
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      packaging/template.spec

+ 6
- 1
packaging/template.spec View File

@@ -1,6 +1,11 @@
1 1
 %global sfincb %{_datadir}/shellfu/include-bash
2 2
 %global shellfu_req shellfu >= 0.10.8, shellfu < 0.11
3 3
 %global saturnin_req shellfu-bash-saturnin >= 0.4.12, shellfu-bash-saturnin < 0.5
4
+%if 0%{?rhel} && 0%{?rhel} < 7
5
+%global jinja_req python-jinja2
6
+%else
7
+%global jinja_req python2-jinja2
8
+%endif
4 9
 
5 10
 Name:       __MKIT_PROJ_PKGNAME__
6 11
 Version:    __MKIT_PROJ_VERSION__
@@ -35,7 +40,7 @@ This sub-package contains minimal set of tools, just for test discovery and
35 40
 running.
36 41
 
37 42
 %package report
38
-Requires: python2-jinja2
43
+Requires: %jinja_req
39 44
 Requires: jattool-minimal == %{version}
40 45
 Summary: JAT result post-processing
41 46
 %description report