| 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 | |
|---|
| 10 | License: GPLv2+ |
|---|
| 11 | URL: https://github.com/scop/bash-completion |
|---|
| 12 | Source0: https://github.com/scop/bash-completion/releases/download/%{version}/bash-completion-%{version}.tar.xz |
|---|
| 13 | Patch0: %{name}-1.99-noblacklist.patch |
|---|
| 14 | # patch for apt-rpm |
|---|
| 15 | Patch1000: bash-completion-2.11-apt-cache.patch |
|---|
| 16 | |
|---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 18 | BuildArch: noarch |
|---|
| 19 | |
|---|
| 20 | %description |
|---|
| 21 | bash-completion is a collection of shell functions that take advantage of |
|---|
| 22 | the programmable completion feature of bash. |
|---|
| 23 | |
|---|
| 24 | %description -l ja |
|---|
| 25 | bash-completion は bash のプログラム可能な補完機能を利用し、 |
|---|
| 26 | 高機能な補完機能を bash に提供するシェル関数集です。 |
|---|
| 27 | |
|---|
| 28 | 使用にあたっては ~/.bashrc に以下の行を追加してください。 |
|---|
| 29 | . /etc/profile.d/bash_completion.sh |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | %prep |
|---|
| 33 | %setup -q |
|---|
| 34 | %patch0 -p1 |
|---|
| 35 | %patch1000 -p1 |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | %build |
|---|
| 39 | autoreconf -fiv |
|---|
| 40 | %configure |
|---|
| 41 | %{__make} %{?_smp_mflags} |
|---|
| 42 | |
|---|
| 43 | cat <<EOF >redefine_filedir |
|---|
| 44 | # This is a copy of the _filedir function in bash_completion, included |
|---|
| 45 | # and (re)defined separately here because some versions of Adobe |
|---|
| 46 | # Reader, if installed, are known to override this function with an |
|---|
| 47 | # incompatible version, causing various problems. |
|---|
| 48 | # |
|---|
| 49 | # https://bugzilla.redhat.com/677446 |
|---|
| 50 | # http://forums.adobe.com/thread/745833 |
|---|
| 51 | |
|---|
| 52 | EOF |
|---|
| 53 | sed -ne '/^_filedir\s*(/,/^}/p' bash_completion >>redefine_filedir |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | %install |
|---|
| 57 | %{__rm} -rf %{buildroot} |
|---|
| 58 | %{__make} install DESTDIR=%{buildroot} |
|---|
| 59 | install -Dpm 644 redefine_filedir \ |
|---|
| 60 | %{buildroot}%{_sysconfdir}/bash_completion.d/redefine_filedir |
|---|
| 61 | |
|---|
| 62 | #remove for vine |
|---|
| 63 | rm %{buildroot}%{_datadir}/bash-completion/completions/{cowsay,cowthink} |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | %clean |
|---|
| 67 | %{__rm} -rf %{buildroot} |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | %files |
|---|
| 71 | %defattr(-,root,root) |
|---|
| 72 | %license COPYING |
|---|
| 73 | %doc AUTHORS README.md doc/*.txt |
|---|
| 74 | %config %{_sysconfdir}/profile.d/bash_completion.sh |
|---|
| 75 | %{_sysconfdir}/bash_completion.d/ |
|---|
| 76 | %{_datadir}/bash-completion/ |
|---|
| 77 | %{_datadir}/pkgconfig/bash-completion.pc |
|---|
| 78 | %{_datadir}/cmake/bash-completion |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | %changelog |
|---|
| 82 | * Wed Mar 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.11-1 |
|---|
| 83 | - new upstream release. |
|---|
| 84 | - dropped Source3. |
|---|
| 85 | - added Patch3 for apt-rpm. |
|---|
| 86 | |
|---|
| 87 | * Fri Oct 6 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7-2 |
|---|
| 88 | - new upstream release |
|---|
| 89 | (2.7-1 was used for vl6) |
|---|
| 90 | - fix incorrect changelog date.... |
|---|
| 91 | |
|---|
| 92 | * Fri Dec 27 2013 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.1-2 |
|---|
| 93 | - rebuild with gcc-4.8 |
|---|
| 94 | |
|---|
| 95 | * Tue May 28 2013 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.1-1 |
|---|
| 96 | - source update |
|---|
| 97 | - Don't install nmcli completion >= Vine7 |
|---|
| 98 | |
|---|
| 99 | * Wed Jul 25 2012 TANAKA hiroaki mosaicist@jcom.home.ne.jp > 2.0-1 |
|---|
| 100 | - source update |
|---|
| 101 | - merge bash-completion-2.0-redefine_filedir.bash from bash-completion-2.0-1.fc17 |
|---|
| 102 | |
|---|
| 103 | * Tue Feb 7 2012 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 1.99-1 |
|---|
| 104 | - initial build for Vine Linux based on bash-completion-1.99-1.fc17.src.rpm |
|---|