bash-completion-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Name: bash-completion
  2. Summary: Programmable completion for Bash
  3. Summary(ja): bash のプログラム可能な補完拡張
  4. Version: 2.11
  5. Release: 1%{?_dist_release}
  6. Group: system
  7. Distribution: Vine Linux
  8. Vendor: Project Vine
  9. License: GPLv2+
  10. URL: https://github.com/scop/bash-completion
  11. Source0: https://github.com/scop/bash-completion/releases/download/%{version}/bash-completion-%{version}.tar.xz
  12. Patch0: %{name}-1.99-noblacklist.patch
  13. # patch for apt-rpm
  14. Patch1000: bash-completion-2.11-apt-cache.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildArch: noarch
  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. %patch1000 -p1
  29. %build
  30. autoreconf -fiv
  31. %configure
  32. %{__make} %{?_smp_mflags}
  33. cat <<EOF >redefine_filedir
  34. # This is a copy of the _filedir function in bash_completion, included
  35. # and (re)defined separately here because some versions of Adobe
  36. # Reader, if installed, are known to override this function with an
  37. # incompatible version, causing various problems.
  38. #
  39. # https://bugzilla.redhat.com/677446
  40. # http://forums.adobe.com/thread/745833
  41. EOF
  42. sed -ne '/^_filedir\s*(/,/^}/p' bash_completion >>redefine_filedir
  43. %install
  44. %{__rm} -rf %{buildroot}
  45. %{__make} install DESTDIR=%{buildroot}
  46. install -Dpm 644 redefine_filedir \
  47. %{buildroot}%{_sysconfdir}/bash_completion.d/redefine_filedir
  48. #remove for vine
  49. rm %{buildroot}%{_datadir}/bash-completion/completions/{cowsay,cowthink}
  50. %clean
  51. %{__rm} -rf %{buildroot}
  52. %files
  53. %defattr(-,root,root)
  54. %license COPYING
  55. %doc AUTHORS README.md doc/*.txt
  56. %config %{_sysconfdir}/profile.d/bash_completion.sh
  57. %{_sysconfdir}/bash_completion.d/
  58. %{_datadir}/bash-completion/
  59. %{_datadir}/pkgconfig/bash-completion.pc
  60. %{_datadir}/cmake/bash-completion
  61. %changelog
  62. * Wed Mar 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.11-1
  63. - new upstream release.
  64. - dropped Source3.
  65. - added Patch3 for apt-rpm.
  66. * Fri Oct 6 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7-2
  67. - new upstream release
  68. (2.7-1 was used for vl6)
  69. - fix incorrect changelog date....
  70. * Fri Dec 27 2013 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.1-2
  71. - rebuild with gcc-4.8
  72. * Tue May 28 2013 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.1-1
  73. - source update
  74. - Don't install nmcli completion >= Vine7
  75. * Wed Jul 25 2012 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.0-1
  76. - source update
  77. - merge bash-completion-2.0-redefine_filedir.bash from bash-completion-2.0-1.fc17
  78. * Tue Feb 7 2012 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 1.99-1
  79. - initial build for Vine Linux based on bash-completion-1.99-1.fc17.src.rpm