|
|
a23ab0 |
# Expected failures in mock, hangs in koji
|
|
|
a23ab0 |
%bcond_with tests
|
|
|
a23ab0 |
# The *.py files we ship are not python scripts, #813651
|
|
|
a23ab0 |
%global _python_bytecompile_errors_terminate_build 0
|
|
|
a23ab0 |
|
|
|
a23ab0 |
Name: bash-completion
|
|
|
a23ab0 |
Version: 2.11
|
|
|
a23ab0 |
Release: 4%{?dist}
|
|
|
a23ab0 |
Epoch: 1
|
|
|
a23ab0 |
Summary: Programmable completion for Bash
|
|
|
a23ab0 |
|
|
|
a23ab0 |
License: GPLv2+
|
|
|
a23ab0 |
URL: https://github.com/scop/bash-completion
|
|
|
a23ab0 |
Source0: https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
a23ab0 |
# https://bugzilla.redhat.com/677446, see also redefine_filedir comments
|
|
|
a23ab0 |
Patch0: %{name}-1.99-noblacklist.patch
|
|
|
a23ab0 |
|
|
|
a23ab0 |
BuildArch: noarch
|
|
|
a23ab0 |
%if %{with tests}
|
|
|
a23ab0 |
BuildRequires: dejagnu
|
|
|
a23ab0 |
BuildRequires: screen
|
|
|
a23ab0 |
BuildRequires: tcllib
|
|
|
a23ab0 |
%endif
|
|
|
a23ab0 |
# Needed for rfkill patch as it modifies Makefile.am
|
|
|
a23ab0 |
# It should be removed while rebasing to bash-completion-2.8
|
|
|
a23ab0 |
BuildRequires: automake
|
|
|
a23ab0 |
BuildRequires: make
|
|
|
a23ab0 |
Requires: bash >= 4.1
|
|
|
a23ab0 |
|
|
|
a23ab0 |
%description
|
|
|
a23ab0 |
bash-completion is a collection of shell functions that take advantage
|
|
|
a23ab0 |
of the programmable completion feature of bash.
|
|
|
a23ab0 |
|
|
|
a23ab0 |
%prep
|
|
|
a23ab0 |
%autosetup -p1
|
|
|
a23ab0 |
|
|
|
a23ab0 |
%build
|
|
|
a23ab0 |
# Needed for rfkill patch as it modifies Makefile.am
|
|
|
a23ab0 |
# It should be removed while rebasing to bash-completion-2.8
|
|
|
a23ab0 |
autoreconf -fi -v
|
|
|
a23ab0 |
%configure
|
|
|
a23ab0 |
%make_build
|
|
|
a23ab0 |
|
|
|
a23ab0 |
cat <<EOF >redefine_filedir
|
|
|
a23ab0 |
# This is a copy of the _filedir function in bash_completion, included
|
|
|
a23ab0 |
# and (re)defined separately here because some versions of Adobe
|
|
|
a23ab0 |
# Reader, if installed, are known to override this function with an
|
|
|
a23ab0 |
# incompatible version, causing various problems.
|
|
|
a23ab0 |
#
|
|
|
a23ab0 |
# https://bugzilla.redhat.com/677446
|
|
|
a23ab0 |
# http://forums.adobe.com/thread/745833
|
|
|
a23ab0 |
|
|
|
a23ab0 |
EOF
|
|
|
a23ab0 |
sed -ne '/^_filedir\s*(/,/^}/p' bash_completion >>redefine_filedir
|
|
|
a23ab0 |
|
|
|
a23ab0 |
|
|
|
a23ab0 |
%install
|
|
|
a23ab0 |
%make_install
|
|
|
a23ab0 |
install -Dpm 644 redefine_filedir \
|
|
|
a23ab0 |
%{buildroot}%{_sysconfdir}/bash_completion.d/redefine_filedir
|
|
|
a23ab0 |
|
|
|
a23ab0 |
# Updated completion shipped in cowsay package:
|
|
|
a23ab0 |
rm %{buildroot}%{_datadir}/bash-completion/completions/{cowsay,cowthink}
|
|
|
a23ab0 |
|
|
|
a23ab0 |
|
|
|
a23ab0 |
%check
|
|
|
a23ab0 |
# For some tests involving non-ASCII filenames
|
|
|
a23ab0 |
export LANG=C.UTF-8
|
|
|
a23ab0 |
%if %{with tests}
|
|
|
a23ab0 |
# This stuff borrowed from dejagnu-1.4.4-17 (tests need a terminal)
|
|
|
a23ab0 |
tmpfile=$(mktemp)
|
|
|
a23ab0 |
screen -D -m sh -c '( make check ; echo $? ) >'$tmpfile
|
|
|
a23ab0 |
cat $tmpfile
|
|
|
a23ab0 |
result=$(tail -n 1 $tmpfile)
|
|
|
a23ab0 |
rm -f $tmpfile
|
|
|
a23ab0 |
exit $result
|
|
|
a23ab0 |
%else
|
|
|
a23ab0 |
make -C completions check
|
|
|
a23ab0 |
%endif
|
|
|
a23ab0 |
|
|
|
a23ab0 |
|
|
|
a23ab0 |
%files
|
|
|
a23ab0 |
%license COPYING
|
|
|
a23ab0 |
%doc AUTHORS CHANGES CONTRIBUTING.md README.md
|
|
|
a23ab0 |
%doc doc/bash_completion.txt
|
|
|
a23ab0 |
%config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh
|
|
|
a23ab0 |
%{_sysconfdir}/bash_completion.d/
|
|
|
a23ab0 |
%{_datadir}/bash-completion/
|
|
|
a23ab0 |
%{_datadir}/cmake/
|
|
|
a23ab0 |
%{_datadir}/pkgconfig/bash-completion.pc
|
|
|
a23ab0 |
|
|
|
a23ab0 |
|
|
|
a23ab0 |
%changelog
|
|
|
a23ab0 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:2.11-4
|
|
|
a23ab0 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
a23ab0 |
Related: rhbz#1991688
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1:2.11-3
|
|
|
a23ab0 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-2
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Fri Jan 8 13:20:44 CET 2021 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.11-1
|
|
|
a23ab0 |
- Rebase to version 2.11
|
|
|
a23ab0 |
Resolves: #1782254
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-9
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-8
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-7
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-6
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Thu Jan 10 2019 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-5
|
|
|
a23ab0 |
- Add completion for rpm -q --licensefiles
|
|
|
a23ab0 |
Resolves: #1578811
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:2.8-4
|
|
|
a23ab0 |
- Use C.UTF-8 locale
|
|
|
a23ab0 |
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Mon Aug 13 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-3
|
|
|
a23ab0 |
- Document how to turn off default completions
|
|
|
a23ab0 |
Resolves: #1575571
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-2
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Tue Jun 12 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-1
|
|
|
a23ab0 |
- Update to 2.8
|
|
|
a23ab0 |
Resolves: #1561241
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Mar 14 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-4
|
|
|
a23ab0 |
- Do not use $MANPATH directly
|
|
|
a23ab0 |
Resolves: #1495055
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.7-3
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Mon Oct 09 2017 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-2
|
|
|
a23ab0 |
- Rename rfkill function to avoid conflict with util-linux >= 2.31
|
|
|
a23ab0 |
Resolves: #1494855
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Thu Oct 05 2017 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-1
|
|
|
a23ab0 |
- Update to 2.7
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-2
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Tue Jun 27 2017 Ville Skyttä <ville.skytta@iki.fi> - 1:2.6-1
|
|
|
a23ab0 |
- Update to 2.6
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.5-2
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Sat Feb 4 2017 Ville Skyttä <ville.skytta@iki.fi> - 1:2.5-1
|
|
|
a23ab0 |
- Update to 2.5
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Fri Aug 12 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.4-1
|
|
|
a23ab0 |
- Update to 2.4
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Mon Mar 28 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.3-1
|
|
|
a23ab0 |
- Update to 2.3
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Thu Mar 3 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.2-1
|
|
|
a23ab0 |
- Update to 2.2
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.1-9.20150513git1950590
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-8.20150513git1950590
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Thu May 14 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-7.20150513git1950590
|
|
|
a23ab0 |
- Autogenerate redefine_filedir (fixes #1171396 in it too)
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed May 13 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-6.20150513git1950590
|
|
|
a23ab0 |
- Update to current upstream git (fixes #1171396)
|
|
|
a23ab0 |
- Move pre-1.90 %%changelog entries to CHANGES.package.old
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Mon Nov 10 2014 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-6.20141110git52d8316
|
|
|
a23ab0 |
- Update to current upstream git (fixes #744406, #949479, #1090481, #1015935,
|
|
|
a23ab0 |
#1132959, #1135489)
|
|
|
a23ab0 |
- Clean up no longer needed specfile conditionals
|
|
|
a23ab0 |
- Mark COPYING as %%license where applicable
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-5
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Tue Dec 17 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-4
|
|
|
a23ab0 |
- Ship bash_completion.txt.
|
|
|
a23ab0 |
- Make profile.d scriptlet noreplace again.
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-3
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Tue Apr 9 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-2
|
|
|
a23ab0 |
- Don't install nmcli completion on F-18+ (#950071).
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Mon Apr 8 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-1
|
|
|
a23ab0 |
- Update to 2.1 (fixes #860510, #906469, #912113, #919246, #928253).
|
|
|
a23ab0 |
- Don't ship completions included in util-linux 2.23-rc2 for F-19+.
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0-3
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0-2
|
|
|
a23ab0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Tue Jun 19 2012 Ville Skyttä <ville.skytta@iki.fi> - 1:2.0-1
|
|
|
a23ab0 |
- Update to 2.0 (fixes #817902, #831835).
|
|
|
a23ab0 |
- Don't try to python-bytecompile our non-python *.py (#813651).
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Sun Jan 8 2012 Ville Skyttä <ville.skytta@iki.fi> - 1:1.99-1
|
|
|
a23ab0 |
- Update to 1.99.
|
|
|
a23ab0 |
|
|
|
a23ab0 |
* Fri Nov 4 2011 Ville Skyttä <ville.skytta@iki.fi> - 1:1.90-1
|
|
|
a23ab0 |
- Update to 1.90.
|
|
|
a23ab0 |
- Specfile cleanups.
|
|
|
a23ab0 |
- Move pre-1.2 %%changelog entries to CHANGES.package.old.
|