fff27fb
# Expected failures in mock, hangs in koji
fff27fb
%bcond_with tests
b036887
# The *.py files we ship are not python scripts, #813651
b036887
%global _python_bytecompile_errors_terminate_build 0
fff27fb
cvsextras 05bf1d9
Name:           bash-completion
aaf4667
Version:        2.11
eb1c427
Release:        14%{?dist}
742eb98
Epoch:          1
cvsextras 05bf1d9
Summary:        Programmable completion for Bash
cvsextras 05bf1d9
caf24e8
License:        GPL-2.0-or-later
cb3caa7
URL:            https://github.com/scop/bash-completion
cb3caa7
Source0:        https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
f449c99
cvsextras 05bf1d9
BuildArch:      noarch
fff27fb
%if %{with tests}
6a80f0e
BuildRequires:  dejagnu
6a80f0e
BuildRequires:  screen
6a80f0e
BuildRequires:  tcllib
fff27fb
%endif
cd1a8b8
# Needed for rfkill patch as it modifies Makefile.am
cd1a8b8
# It should be removed while rebasing to bash-completion-2.8
33325c0
BuildRequires:  automake
17356a9
BuildRequires: make
6c1548a
Requires:       bash >= 4.1
cvsextras 05bf1d9
cvsextras 05bf1d9
%description
cvsextras 05bf1d9
bash-completion is a collection of shell functions that take advantage
6a80f0e
of the programmable completion feature of bash.
cvsextras 05bf1d9
cvsextras 05bf1d9
%prep
a7e7de4
%autosetup -p1
9793c23
9793c23
%build
cd1a8b8
# Needed for rfkill patch as it modifies Makefile.am
cd1a8b8
# It should be removed while rebasing to bash-completion-2.8
33325c0
autoreconf -fi -v
9793c23
%configure
6bdedcf
%make_build
9793c23
9793c23
%install
6bdedcf
%make_install
9793c23
6c1548a
# Updated completion shipped in cowsay package:
7187b29
rm %{buildroot}%{_datadir}/bash-completion/completions/{cowsay,cowthink}
9793c23
c93709b
# Bug 1819867 - conflict over the makepkg name with pacman
c93709b
rm %{buildroot}%{_datadir}/bash-completion/completions/makepkg
cvsextras 05bf1d9
1951011
# Bug 2088307 - Remove completions for prelink
1951011
rm %{buildroot}%{_datadir}/bash-completion/completions/prelink
1951011
cff9444
# Bug 2188865 - Remove bash completions for javaws as it's not shipped with Fedora
cff9444
rm %{buildroot}%{_datadir}/bash-completion/completions/javaws
cff9444
6a80f0e
%check
6a80f0e
# For some tests involving non-ASCII filenames
dc349ae
export LANG=C.UTF-8
227c9af
%if %{with tests}
6a80f0e
# This stuff borrowed from dejagnu-1.4.4-17 (tests need a terminal)
6a80f0e
tmpfile=$(mktemp)
6a80f0e
screen -D -m sh -c '( make check ; echo $? ) >'$tmpfile
6a80f0e
cat $tmpfile
6a80f0e
result=$(tail -n 1 $tmpfile)
6a80f0e
rm -f $tmpfile
fff27fb
exit $result
227c9af
%else
227c9af
make -C completions check
fff27fb
%endif
6a80f0e
6a80f0e
6c1548a
%files
c30b02a
%license COPYING
1412793
%doc AUTHORS CHANGES CONTRIBUTING.md README.md
cb3caa7
%doc doc/bash_completion.txt
f4e6e06
%config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh
6c1548a
%{_datadir}/bash-completion/
c30b02a
%{_datadir}/cmake/
6c1548a
%{_datadir}/pkgconfig/bash-completion.pc
cvsextras 05bf1d9
cvsextras 05bf1d9
cvsextras 05bf1d9
%changelog
eb1c427
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-14
eb1c427
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
eb1c427
e626b3e
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-13
e626b3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e626b3e
392b4a4
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-12
392b4a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
392b4a4
cff9444
* Fri Jun 16 2023 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.11-11
cff9444
- Remove bash completions for javaws
cff9444
  Resolves: #2188865
cff9444
caf24e8
* Tue Apr 11 2023 Lukáš Zaoral <lzaoral@redhat.com> - 1:2.11-10
caf24e8
- migrate to SPDX license format
caf24e8
957c061
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-9
957c061
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
957c061
2444c27
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-8
2444c27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2444c27
1951011
* Thu May 19 2022 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.11-7
1951011
- Remove completions for prelink
1951011
  Resolves: #2088307
1951011
190691a
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-6
190691a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
190691a
4624529
* Tue Dec 21 2021 Ville Skyttä <ville.skytta@iki.fi> - 1:2.11-5
c6ed6a2
- Revert back to upstream _filedir override avoidance
c6ed6a2
c93709b
* Mon Nov 08 2021 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.11-4
c93709b
- Avoid conflict with makepkg completions in pacman
c93709b
  Resolves: #1819867
c93709b
e4fc15c
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-3
e4fc15c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e4fc15c
3e470ed
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.11-2
3e470ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3e470ed
aaf4667
* Fri Jan  8 13:20:44 CET 2021 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.11-1
aaf4667
- Rebase to version 2.11
aaf4667
  Resolves: #1782254
aaf4667
9479ecf
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-9
9479ecf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9479ecf
c3fed70
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-8
c3fed70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c3fed70
bdb12a2
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-7
bdb12a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bdb12a2
ec2c007
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-6
ec2c007
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ec2c007
b558aab
* Thu Jan 10 2019 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-5
b558aab
- Add completion for rpm -q --licensefiles
b558aab
  Resolves: #1578811
b558aab
dc349ae
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:2.8-4
dc349ae
- Use C.UTF-8 locale
dc349ae
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
dc349ae
8e3389d
* Mon Aug 13 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-3
8e3389d
- Document how to turn off default completions
8e3389d
  Resolves: #1575571
8e3389d
268b52d
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-2
268b52d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
268b52d
f449c99
* Tue Jun 12 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-1
f449c99
- Update to 2.8
f449c99
  Resolves: #1561241
f449c99
7a24e4f
* Wed Mar 14 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-4
7a24e4f
- Do not use $MANPATH directly
7a24e4f
  Resolves: #1495055
7a24e4f
64b8232
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.7-3
64b8232
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
64b8232
01b9c3d
* Mon Oct 09 2017 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-2
01b9c3d
- Rename rfkill function to avoid conflict with util-linux >= 2.31
01b9c3d
  Resolves: #1494855
01b9c3d
cdc5fc6
* Thu Oct 05 2017 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-1
cdc5fc6
- Update to 2.7
cdc5fc6
76a8173
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-2
76a8173
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
76a8173
9e0d827
* Tue Jun 27 2017 Ville Skyttä <ville.skytta@iki.fi> - 1:2.6-1
9e0d827
- Update to 2.6
9e0d827
ffaac6a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.5-2
ffaac6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ffaac6a
5cb0b43
* Sat Feb  4 2017 Ville Skyttä <ville.skytta@iki.fi> - 1:2.5-1
5cb0b43
- Update to 2.5
5cb0b43
82919f8
* Fri Aug 12 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.4-1
82919f8
- Update to 2.4
82919f8
344ccd9
* Mon Mar 28 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.3-1
344ccd9
- Update to 2.3
344ccd9
cb3caa7
* Thu Mar  3 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.2-1
cb3caa7
- Update to 2.2
cb3caa7
10e04f3
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.1-9.20150513git1950590
10e04f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
10e04f3
d5a7933
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-8.20150513git1950590
d5a7933
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d5a7933
7825831
* Thu May 14 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-7.20150513git1950590
7825831
- Autogenerate redefine_filedir (fixes #1171396 in it too)
7825831
d069f25
* Wed May 13 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-6.20150513git1950590
d069f25
- Update to current upstream git (fixes #1171396)
d069f25
- Move pre-1.90 %%changelog entries to CHANGES.package.old
d069f25
c30b02a
* Mon Nov 10 2014 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-6.20141110git52d8316
c30b02a
- Update to current upstream git (fixes #744406, #949479, #1090481, #1015935,
c30b02a
  #1132959, #1135489)
c30b02a
- Clean up no longer needed specfile conditionals
c30b02a
- Mark COPYING as %%license where applicable
c30b02a
3c8d903
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-5
3c8d903
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3c8d903
f4e6e06
* Tue Dec 17 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-4
f4e6e06
- Ship bash_completion.txt.
f4e6e06
- Make profile.d scriptlet noreplace again.
f4e6e06
1f70fa5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-3
1f70fa5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1f70fa5
0394aa9
* Tue Apr  9 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-2
0394aa9
- Don't install nmcli completion on F-18+ (#950071).
0394aa9
653669b
* Mon Apr  8 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-1
653669b
- Update to 2.1 (fixes #860510, #906469, #912113, #919246, #928253).
653669b
- Don't ship completions included in util-linux 2.23-rc2 for F-19+.
653669b
e353b91
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0-3
e353b91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e353b91
1f3e95a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0-2
1f3e95a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1f3e95a
b036887
* Tue Jun 19 2012 Ville Skyttä <ville.skytta@iki.fi> - 1:2.0-1
b036887
- Update to 2.0 (fixes #817902, #831835).
b036887
- Don't try to python-bytecompile our non-python *.py (#813651).
b036887
d1d1afa
* Sun Jan  8 2012 Ville Skyttä <ville.skytta@iki.fi> - 1:1.99-1
d1d1afa
- Update to 1.99.
d1d1afa
6c1548a
* Fri Nov  4 2011 Ville Skyttä <ville.skytta@iki.fi> - 1:1.90-1
6c1548a
- Update to 1.90.
6c1548a
- Specfile cleanups.
6c1548a
- Move pre-1.2 %%changelog entries to CHANGES.package.old.