Kaynağa Gözat

Use old name for Jinja2 dependency

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

Fixes #3.
Alois Mahdal 6 yıl önce
ebeveyn
işleme
3bb46e35d8
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6
    1
      packaging/template.spec

+ 6
- 1
packaging/template.spec Dosyayı Görüntüle

1
 %global sfincb %{_datadir}/shellfu/include-bash
1
 %global sfincb %{_datadir}/shellfu/include-bash
2
 %global shellfu_req shellfu >= 0.10.8, shellfu < 0.11
2
 %global shellfu_req shellfu >= 0.10.8, shellfu < 0.11
3
 %global saturnin_req shellfu-bash-saturnin >= 0.4.12, shellfu-bash-saturnin < 0.5
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
 Name:       __MKIT_PROJ_PKGNAME__
10
 Name:       __MKIT_PROJ_PKGNAME__
6
 Version:    __MKIT_PROJ_VERSION__
11
 Version:    __MKIT_PROJ_VERSION__
35
 running.
40
 running.
36
 
41
 
37
 %package report
42
 %package report
38
-Requires: python2-jinja2
43
+Requires: %jinja_req
39
 Requires: jattool-minimal == %{version}
44
 Requires: jattool-minimal == %{version}
40
 Summary: JAT result post-processing
45
 Summary: JAT result post-processing
41
 %description report
46
 %description report