diff --git a/haskell-platform.spec b/haskell-platform.spec index b7085ea..5753ffd 100644 --- a/haskell-platform.spec +++ b/haskell-platform.spec @@ -260,6 +260,9 @@ rm %{buildroot}%{_bindir}/example echo %{_bindir}/hpack >> %{hpack}/ghc-hpack.files echo %{_bindir}/haskell-mustache >> %{mustache}/ghc-mustache.files +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/ +%{buildroot}%{_bindir}/stack --bash-completion-script stack > %{buildroot}%{_datadir}/bash-completion/completions/stack + %files @@ -270,9 +273,13 @@ echo %{_bindir}/haskell-mustache >> %{mustache}/ghc-mustache.files %doc %{stack}/CONTRIBUTING.md %{stack}/ChangeLog.md %{stack}/README.md %{_bindir}/stack # End cabal-rpm files +%{_datadir}/bash-completion/completions/stack %changelog +* Sat May 2 2020 Jens Petersen +- generate bash completions + * Sun Apr 12 2020 Jens Petersen - 2020.1-2 - stack requires ghc-zlib-devel for ghc - stack: silence warnings about ghc-8.8 and Cabal-3.0