From b1111dceda7563f563d6bcfb1a4aed0972aaddb1905f89d08bbd1dbbbb22be27 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 18 Jul 2021 18:36:27 +0000 Subject: [PATCH] Accepting request 906957 from home:AndreasStieger:branches:Virtualization fix Factory (clean) staging OBS-URL: https://build.opensuse.org/request/show/906957 OBS-URL: https://build.opensuse.org/package/show/Virtualization/firejail?expand=0&rev=41 --- firejail.changes | 3 ++- firejail.spec | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/firejail.changes b/firejail.changes index af453cc..55271ef 100644 --- a/firejail.changes +++ b/firejail.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Sun Jul 18 11:47:42 UTC 2021 - Andreas Stieger +Sun Jul 18 16:45:49 UTC 2021 - Andreas Stieger - firejail 0.9.66: * deprecated --audit options, relpaced by jailcheck utility @@ -23,6 +23,7 @@ Sun Jul 18 11:47:42 UTC 2021 - Andreas Stieger * input devices support in private-dev, --no-input * support trailing comments on profile lines * many new profiles +- split shell completion into standard subpackages ------------------------------------------------------------------- Sun Feb 7 23:09:58 UTC 2021 - Илья Индиго diff --git a/firejail.spec b/firejail.spec index 126ee3f..eeb6099 100644 --- a/firejail.spec +++ b/firejail.spec @@ -42,6 +42,26 @@ many existing applications like Iceweasel/Mozilla Firefox and Chromium. Firejail also expands the restricted shell facility found in bash by adding Linux namespace support. It supports sandboxing specific users upon login. +%package bash-completion +Summary: Firejail Bash completion +Group: System/Shells +Requires: %{name} = %{version} +Requires: bash-completion +Supplements: (%{name} and bash-completion) + +%description bash-completion +Optional dependency offering bash completion for firejail + +%package zsh-completion +Summary: Firejail zsh completion +Group: System/Shells +Requires: %{name} = %{version} +Requires: zsh +Supplements: (%{name} and zsh) + +%description zsh-completion +Optional dependency offering zsh completion for firejail + %prep %setup -q sed -i '1s/^#!\/usr\/bin\/env /#!\/usr\/bin\//' contrib/fj-mkdeb.py contrib/fjclip.py contrib/fjdisplay.py contrib/fjresize.py contrib/sort.py contrib/fix_private-bin.py contrib/jail_prober.py @@ -57,6 +77,7 @@ exit 0 %install %make_install +rm %{buildroot}%{_docdir}/firejail/COPYING %fdupes -s %{buildroot} %post @@ -71,8 +92,6 @@ exit 0 %{_bindir}/firecfg %{_bindir}/firemon %{_bindir}/jailcheck -%{_datadir}/bash-completion -%{_datadir}/zsh/site-functions/_firejail %{_libdir}/%{name} %doc %{_docdir}/%{name} %{_mandir}/man1/* @@ -90,4 +109,16 @@ exit 0 %{_datadir}/vim/vimfiles/ftdetect/firejail.vim %{_datadir}/vim/vimfiles/syntax/firejail.vim +%files bash-completion +%license COPYING +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions +%{_datadir}/bash-completion/completions/* + +%files zsh-completion +%license COPYING +%dir %{_datarootdir}/zsh +%dir %{_datarootdir}/zsh/site-functions/ +%{_datadir}/zsh/site-functions/_firejail + %changelog