bash-completion-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Name: bash-completion
  2. Version: 2.7
  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.xz
  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. if [ -f $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/nmcli ]; then
  39. rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/nmcli
  40. fi
  41. %endif
  42. install -Dpm 644 %{SOURCE3} \
  43. $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/redefine_filedir
  44. %clean
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %files
  47. %defattr(-,root,root)
  48. %doc AUTHORS COPYING doc/*.txt
  49. %config %{_sysconfdir}/profile.d/bash_completion.sh
  50. %{_sysconfdir}/bash_completion.d/
  51. %{_datadir}/bash-completion/
  52. %{_datadir}/pkgconfig/bash-completion.pc
  53. %changelog
  54. * Fri Oct 6 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7-2
  55. - new upstream release
  56. (2.7-1 was used for vl6)
  57. - fix incorrect changelog date....
  58. * Fri Dec 27 2013 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.1-2
  59. - rebuild with gcc-4.8
  60. * Tue May 28 2013 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.1-1
  61. - source update
  62. - Don't install nmcli completion >= Vine7
  63. * Wed Jul 25 2012 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.0-1
  64. - source update
  65. - merge bash-completion-2.0-redefine_filedir.bash from bash-completion-2.0-1.fc17
  66. * Tue Feb 7 2012 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 1.99-1
  67. - initial build for Vine Linux based on bash-completion-1.99-1.fc17.src.rpm