source: projects/specs/trunk/b/bash-completion/bash-completion-vl.spec @ 12562

Revision 12562, 2.9 KB checked in by tomop, 3 years ago (diff)

updated 4 packages

bash-completion-2.11-1

hicolor-icon-theme-0.17-1

spawn-fcgi-1.6.4-1

xdg-user-dirs-0.17-1

Line 
1Name:           bash-completion
2Summary:        Programmable completion for Bash
3Summary(ja):    bash のプログラム可能な補完拡張
4Version:        2.11
5Release:        1%{?_dist_release}
6Group:          system
7Distribution:   Vine Linux
8Vendor:         Project Vine
9
10License:        GPLv2+
11URL:            https://github.com/scop/bash-completion
12Source0:        https://github.com/scop/bash-completion/releases/download/%{version}/bash-completion-%{version}.tar.xz
13Patch0:         %{name}-1.99-noblacklist.patch
14# patch for apt-rpm
15Patch1000:      bash-completion-2.11-apt-cache.patch
16
17BuildRoot:      %{_tmppath}/%{name}-%{version}-root
18BuildArch:      noarch
19
20%description
21bash-completion is a collection of shell functions that take advantage of
22the programmable completion feature of bash.
23
24%description -l ja
25bash-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
39autoreconf -fiv
40%configure
41%{__make} %{?_smp_mflags}
42
43cat <<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 
52EOF
53sed -ne '/^_filedir\s*(/,/^}/p' bash_completion >>redefine_filedir
54
55
56%install
57%{__rm} -rf %{buildroot}
58%{__make} install DESTDIR=%{buildroot}
59install -Dpm 644 redefine_filedir \
60    %{buildroot}%{_sysconfdir}/bash_completion.d/redefine_filedir
61 
62#remove for vine
63rm %{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
Note: See TracBrowser for help on using the repository browser.