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.
This commit is contained in:
parent
094fe0c1aa
commit
6d9997e628
@ -128,6 +128,9 @@ done
|
|||||||
%endif
|
%endif
|
||||||
# /with rust
|
# /with rust
|
||||||
|
|
||||||
|
# These are shipped as examples in /usr/share/docs and should not be executable
|
||||||
|
chmod -x hgweb.cgi contrib/hgweb.fcgi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
PYTHON=%{python3} make all
|
PYTHON=%{python3} make all
|
||||||
|
|
||||||
@ -223,7 +226,7 @@ pathfix.py -pni "%{python3}" %{buildroot}%{_bindir}/hg-ssh
|
|||||||
|
|
||||||
|
|
||||||
%files -f %{name}-base.files -f hg.lang
|
%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) %{_mandir}/man?/hg*.gz
|
||||||
%doc %attr(644,root,root) contrib/*.svg
|
%doc %attr(644,root,root) contrib/*.svg
|
||||||
%dir %{_datadir}/zsh/
|
%dir %{_datadir}/zsh/
|
||||||
|
Loading…
Reference in New Issue
Block a user