bash-completion-vl.spec 2.2 KB

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