|
@@ -1,24 +1,22 @@
|
|
|
Name: bash-completion
|
|
|
-Version: 2.7
|
|
|
-Release: 2%{?_dist_release}
|
|
|
-License: GPLv2+
|
|
|
-Group: System Environment/Shells
|
|
|
-URL: http://bash-completion.alioth.debian.org/
|
|
|
-Source0: %{name}-%{version}.tar.xz
|
|
|
-Source3: %{name}-2.0-redefine_filedir.bash
|
|
|
-Patch0: %{name}-1.99-noblacklist.patch
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+Summary: Programmable completion for Bash
|
|
|
+Summary(ja): bash のプログラム可能な補完拡張
|
|
|
+Version: 2.11
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: system
|
|
|
Distribution: Vine Linux
|
|
|
Vendor: Project Vine
|
|
|
-Packager: TANAKA hiroaki<mosaicist@jcom.home.ne.jp
|
|
|
|
|
|
-Summary: Programmable completion for Bash
|
|
|
-Summary(ja): bash のプログラム可能な補完拡張
|
|
|
+License: GPLv2+
|
|
|
+URL: https://github.com/scop/bash-completion
|
|
|
+Source0: https://github.com/scop/bash-completion/releases/download/%{version}/bash-completion-%{version}.tar.xz
|
|
|
+Patch0: %{name}-1.99-noblacklist.patch
|
|
|
+# patch for apt-rpm
|
|
|
+Patch1000: bash-completion-2.11-apt-cache.patch
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildArch: noarch
|
|
|
|
|
|
-# Dependency
|
|
|
-
|
|
|
%description
|
|
|
bash-completion is a collection of shell functions that take advantage of
|
|
|
the programmable completion feature of bash.
|
|
@@ -34,41 +32,58 @@ bash-completion は bash のプログラム可能な補完機能を利用し、
|
|
|
%prep
|
|
|
%setup -q
|
|
|
%patch0 -p1
|
|
|
+%patch1000 -p1
|
|
|
|
|
|
|
|
|
%build
|
|
|
+autoreconf -fiv
|
|
|
%configure
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
+cat <<EOF >redefine_filedir
|
|
|
+# This is a copy of the _filedir function in bash_completion, included
|
|
|
+# and (re)defined separately here because some versions of Adobe
|
|
|
+# Reader, if installed, are known to override this function with an
|
|
|
+# incompatible version, causing various problems.
|
|
|
+#
|
|
|
+# https://bugzilla.redhat.com/677446
|
|
|
+# http://forums.adobe.com/thread/745833
|
|
|
+
|
|
|
+EOF
|
|
|
+sed -ne '/^_filedir\s*(/,/^}/p' bash_completion >>redefine_filedir
|
|
|
|
|
|
-%install
|
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
-%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
|
+%install
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
+%{__make} install DESTDIR=%{buildroot}
|
|
|
+install -Dpm 644 redefine_filedir \
|
|
|
+ %{buildroot}%{_sysconfdir}/bash_completion.d/redefine_filedir
|
|
|
+
|
|
|
#remove for vine
|
|
|
-rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/{cowsay,cowthink}
|
|
|
-%if "%{?_dist_release}" >= "vl7"
|
|
|
-if [ -f $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/nmcli ]; then
|
|
|
- rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/nmcli
|
|
|
-fi
|
|
|
-%endif
|
|
|
+rm %{buildroot}%{_datadir}/bash-completion/completions/{cowsay,cowthink}
|
|
|
|
|
|
-install -Dpm 644 %{SOURCE3} \
|
|
|
- $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/redefine_filedir
|
|
|
|
|
|
%clean
|
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-%doc AUTHORS COPYING doc/*.txt
|
|
|
+%license COPYING
|
|
|
+%doc AUTHORS README.md doc/*.txt
|
|
|
%config %{_sysconfdir}/profile.d/bash_completion.sh
|
|
|
%{_sysconfdir}/bash_completion.d/
|
|
|
%{_datadir}/bash-completion/
|
|
|
%{_datadir}/pkgconfig/bash-completion.pc
|
|
|
+%{_datadir}/cmake/bash-completion
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Wed Mar 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.11-1
|
|
|
+- new upstream release.
|
|
|
+- dropped Source3.
|
|
|
+- added Patch3 for apt-rpm.
|
|
|
+
|
|
|
* Fri Oct 6 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7-2
|
|
|
- new upstream release
|
|
|
(2.7-1 was used for vl6)
|