bash-completion-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Name: bash-completion
  2. Version: 2.1
  3. Release: 1%{?_dist_release}
  4. License: GPLv2+
  5. Group: System Environment/Shells
  6. URL: http://bash-completion.alioth.debian.org/
  7. Source0: %{name}-%{version}.tar.bz2
  8. Source3: %{name}-2.0-redefine_filedir.bash
  9. Patch0: %{name}-1.99-noblacklist.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Summary: Programmable completion for Bash
  14. Summary(ja): bash のプログラム可能な補完拡張
  15. BuildArch: noarch
  16. # Dependency
  17. %description
  18. bash-completion is a collection of shell functions that take advantage of
  19. the programmable completion feature of bash.
  20. %description -l ja
  21. bash-completion は bash のプログラム可能な補完機能を利用し、
  22. 高機能な補完機能を bash に提供するシェル関数集です。
  23. 使用にあたっては ~/.bashrc に以下の行を追加してください。
  24. . /etc/profile.d/bash_completion.sh
  25. %prep
  26. %setup -q
  27. %patch0 -p1
  28. %build
  29. %configure
  30. %{__make} %{?_smp_mflags}
  31. %install
  32. %{__rm} -rf ${RPM_BUILD_ROOT}
  33. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  34. #remove for vine
  35. rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/{cowsay,cowthink}
  36. %if "%{?_dist_release}" >= "vl7"
  37. rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/nmcli
  38. %endif
  39. install -Dpm 644 %{SOURCE3} \
  40. $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/redefine_filedir
  41. %clean
  42. %{__rm} -rf ${RPM_BUILD_ROOT}
  43. %files
  44. %defattr(-,root,root)
  45. %doc AUTHORS COPYING README
  46. %config %{_sysconfdir}/profile.d/bash_completion.sh
  47. %{_sysconfdir}/bash_completion.d/
  48. %{_datadir}/bash-completion/
  49. %{_datadir}/pkgconfig/bash-completion.pc
  50. %changelog
  51. * Sun May 28 2013 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.1-1
  52. - source update
  53. - Don't install nmcli completion >= Vine7
  54. * Wed Jul 25 2012 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.0-1
  55. - source update
  56. - merge bash-completion-2.0-redefine_filedir.bash from bash-completion-2.0-1.fc17
  57. * Tue Feb 7 2012 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 1.99-1
  58. - initial build for Vine Linux based on bash-completion-1.99-1.fc17.src.rpm