From 6d9997e628835d067d6246846ce1a70c00e8e974 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Tue, 3 May 2022 16:46:25 +0200 Subject: [PATCH] Make cgi scripts in docs not executable Fix rpmlint issues: E: env-script-interpreter /usr/share/doc/mercurial/hgweb.cgi /usr/bin/env python3 E: env-script-interpreter /usr/share/doc/mercurial/hgweb.fcgi /usr/bin/env python3 Also be more explicit about which cgi files we ship as documentation. --- mercurial.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mercurial.spec b/mercurial.spec index 2df7e77..8644265 100644 --- a/mercurial.spec +++ b/mercurial.spec @@ -128,6 +128,9 @@ done %endif # /with rust +# These are shipped as examples in /usr/share/docs and should not be executable +chmod -x hgweb.cgi contrib/hgweb.fcgi + %build PYTHON=%{python3} make all @@ -223,7 +226,7 @@ pathfix.py -pni "%{python3}" %{buildroot}%{_bindir}/hg-ssh %files -f %{name}-base.files -f hg.lang -%doc CONTRIBUTORS COPYING doc/README doc/hg*.html *.cgi contrib/*.fcgi contrib/*.wsgi +%doc CONTRIBUTORS COPYING doc/README doc/hg*.html hgweb.cgi contrib/hgweb.fcgi contrib/hgweb.wsgi %doc %attr(644,root,root) %{_mandir}/man?/hg*.gz %doc %attr(644,root,root) contrib/*.svg %dir %{_datadir}/zsh/