瀏覽代碼

Use old name for Jinja2 dependency

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

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

+ 6
- 1
packaging/template.spec 查看文件

@@ -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