diff --git a/cabal-install.spec b/cabal-install.spec index 8a660f8..7f61c66 100644 --- a/cabal-install.spec +++ b/cabal-install.spec @@ -6,7 +6,7 @@ Name: cabal-install Version: 2.0.0.1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: The command-line interface for Cabal and Hackage License: BSD @@ -86,11 +86,9 @@ cp -p %{SOURCE1} %{name}.cabal %install %ghc_bin_install -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d -cp -p bash-completion/cabal $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d +install -pm 644 -D -t %{buildroot}%{_datadir}/bash-completion/completions/ bash-completion/cabal -mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d -install -pm 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d +install -pm 644 -D -t %{buildroot}%{_sysconfdir}/profile.d/ %{SOURCE10} %check @@ -101,12 +99,15 @@ install -pm 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d %license LICENSE %doc README.md changelog %{_bindir}/cabal -%config(noreplace) %{_sysconfdir}/bash_completion.d/cabal %config(noreplace) %{_sysconfdir}/profile.d/cabal-install.sh +%{_datadir}/bash-completion/completions/cabal %{_mandir}/man1/cabal.1* %changelog +* Thu Feb 28 2019 Jens Petersen - 2.0.0.1-11 +- install bash-completion file under datadir (Chris King-Parra, #1683879) + * Fri Dec 14 2018 Jens Petersen - 2.0.0.1-10 - drop the rpmlint whitelist of ghc-Cabal-devel again since no longer Requires