Ville Skyttä fff27f
# Expected failures in mock, hangs in koji
Ville Skyttä fff27f
%bcond_with tests
Ville Skyttä b03688
# The *.py files we ship are not python scripts, #813651
Ville Skyttä b03688
%global _python_bytecompile_errors_terminate_build 0
Ville Skyttä fff27f
cvsextras 05bf1d
Name:           bash-completion
Siteshwar Vashisht f449c9
Version:        2.8
Siteshwar Vashisht 8e3389
Release:        3%{?dist}
Ville Skyttä 742eb9
Epoch:          1
cvsextras 05bf1d
Summary:        Programmable completion for Bash
cvsextras 05bf1d
Ville Skyttä 77b5bf
License:        GPLv2+
Ville Skyttä cb3caa
URL:            https://github.com/scop/bash-completion
Ville Skyttä cb3caa
Source0:        https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
Ville Skyttä 782583
# https://bugzilla.redhat.com/677446, see also redefine_filedir comments
Ville Skyttä d1d1af
Patch0:         %{name}-1.99-noblacklist.patch
Siteshwar Vashisht f449c9
Siteshwar Vashisht 8e3389
# Remove while rebasing to bash-completion-2.9
Siteshwar Vashisht 8e3389
Patch1:         %{name}-2.9-override-completions.patch
Siteshwar Vashisht 8e3389
cvsextras 05bf1d
BuildArch:      noarch
Ville Skyttä fff27f
%if %{with tests}
Ville Skyttä 6a80f0
BuildRequires:  dejagnu
Ville Skyttä 6a80f0
BuildRequires:  screen
Ville Skyttä 6a80f0
BuildRequires:  tcllib
Ville Skyttä fff27f
%endif
Siteshwar Vashisht cd1a8b
# Needed for rfkill patch as it modifies Makefile.am
Siteshwar Vashisht cd1a8b
# It should be removed while rebasing to bash-completion-2.8
Siteshwar Vashisht 33325c
BuildRequires:  automake
Ville Skyttä 6c1548
Requires:       bash >= 4.1
cvsextras 05bf1d
cvsextras 05bf1d
%description
cvsextras 05bf1d
bash-completion is a collection of shell functions that take advantage
Ville Skyttä 6a80f0
of the programmable completion feature of bash.
cvsextras 05bf1d
cvsextras 05bf1d
%prep
Siteshwar Vashisht a7e7de
%autosetup -p1
Ville Skyttä 9793c2
Ville Skyttä 9793c2
%build
Siteshwar Vashisht cd1a8b
# Needed for rfkill patch as it modifies Makefile.am
Siteshwar Vashisht cd1a8b
# It should be removed while rebasing to bash-completion-2.8
Siteshwar Vashisht 33325c
autoreconf -fi -v
Ville Skyttä 9793c2
%configure
Ville Skyttä 6bdedc
%make_build
Ville Skyttä 9793c2
Ville Skyttä 782583
cat <<EOF >redefine_filedir
Ville Skyttä 782583
# This is a copy of the _filedir function in bash_completion, included
Ville Skyttä 782583
# and (re)defined separately here because some versions of Adobe
Ville Skyttä 782583
# Reader, if installed, are known to override this function with an
Ville Skyttä 782583
# incompatible version, causing various problems.
Ville Skyttä 782583
#
Ville Skyttä 782583
# https://bugzilla.redhat.com/677446
Ville Skyttä 782583
# http://forums.adobe.com/thread/745833
Ville Skyttä 782583
Ville Skyttä 782583
EOF
Ville Skyttä 782583
sed -ne '/^_filedir\s*(/,/^}/p' bash_completion >>redefine_filedir
Ville Skyttä 782583
Ville Skyttä 9793c2
Ville Skyttä 9793c2
%install
Ville Skyttä 6bdedc
%make_install
Ville Skyttä 782583
install -Dpm 644 redefine_filedir \
Siteshwar Vashisht 7187b2
    %{buildroot}%{_sysconfdir}/bash_completion.d/redefine_filedir
Ville Skyttä 9793c2
Ville Skyttä 6c1548
# Updated completion shipped in cowsay package:
Siteshwar Vashisht 7187b2
rm %{buildroot}%{_datadir}/bash-completion/completions/{cowsay,cowthink}
Ville Skyttä 9793c2
cvsextras 05bf1d
Ville Skyttä 6a80f0
%check
Ville Skyttä 6a80f0
# For some tests involving non-ASCII filenames
Ville Skyttä 6a80f0
export LANG=en_US.UTF-8
Ville Skyttä 227c9a
%if %{with tests}
Ville Skyttä 6a80f0
# This stuff borrowed from dejagnu-1.4.4-17 (tests need a terminal)
Ville Skyttä 6a80f0
tmpfile=$(mktemp)
Ville Skyttä 6a80f0
screen -D -m sh -c '( make check ; echo $? ) >'$tmpfile
Ville Skyttä 6a80f0
cat $tmpfile
Ville Skyttä 6a80f0
result=$(tail -n 1 $tmpfile)
Ville Skyttä 6a80f0
rm -f $tmpfile
Ville Skyttä fff27f
exit $result
Ville Skyttä 227c9a
%else
Ville Skyttä 227c9a
make -C completions check
Ville Skyttä fff27f
%endif
Ville Skyttä 6a80f0
Ville Skyttä 6a80f0
Ville Skyttä 6c1548
%files
Ville Skyttä c30b02
%license COPYING
Ville Skyttä 141279
%doc AUTHORS CHANGES CONTRIBUTING.md README.md
Ville Skyttä cb3caa
%doc doc/bash_completion.txt
Ville Skyttä f4e6e0
%config(noreplace) %{_sysconfdir}/profile.d/bash_completion.sh
Ville Skyttä 6c1548
%{_sysconfdir}/bash_completion.d/
Ville Skyttä 6c1548
%{_datadir}/bash-completion/
Ville Skyttä c30b02
%{_datadir}/cmake/
Ville Skyttä 6c1548
%{_datadir}/pkgconfig/bash-completion.pc
cvsextras 05bf1d
cvsextras 05bf1d
cvsextras 05bf1d
%changelog
Siteshwar Vashisht 8e3389
* Mon Aug 13 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-3
Siteshwar Vashisht 8e3389
- Document how to turn off default completions
Siteshwar Vashisht 8e3389
  Resolves: #1575571
Siteshwar Vashisht 8e3389
Fedora Release Engineering 268b52
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.8-2
Fedora Release Engineering 268b52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Fedora Release Engineering 268b52
Siteshwar Vashisht f449c9
* Tue Jun 12 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.8-1
Siteshwar Vashisht f449c9
- Update to 2.8
Siteshwar Vashisht f449c9
  Resolves: #1561241
Siteshwar Vashisht f449c9
Siteshwar Vashisht 7a24e4
* Wed Mar 14 2018 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-4
Siteshwar Vashisht 7a24e4
- Do not use $MANPATH directly
Siteshwar Vashisht 7a24e4
  Resolves: #1495055
Siteshwar Vashisht 7a24e4
Fedora Release Engineering 64b823
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.7-3
Fedora Release Engineering 64b823
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering 64b823
Siteshwar Vashisht 01b9c3
* Mon Oct 09 2017 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-2
Siteshwar Vashisht 01b9c3
- Rename rfkill function to avoid conflict with util-linux >= 2.31
Siteshwar Vashisht 01b9c3
  Resolves: #1494855
Siteshwar Vashisht 01b9c3
Siteshwar Vashisht cdc5fc
* Thu Oct 05 2017 Siteshwar Vashisht <svashisht@redhat.com> - 1:2.7-1
Siteshwar Vashisht cdc5fc
- Update to 2.7
Siteshwar Vashisht cdc5fc
Fedora Release Engineering 76a817
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.6-2
Fedora Release Engineering 76a817
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering 76a817
Ville Skyttä 9e0d82
* Tue Jun 27 2017 Ville Skyttä <ville.skytta@iki.fi> - 1:2.6-1
Ville Skyttä 9e0d82
- Update to 2.6
Ville Skyttä 9e0d82
Fedora Release Engineering ffaac6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.5-2
Fedora Release Engineering ffaac6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering ffaac6
Ville Skyttä 5cb0b4
* Sat Feb  4 2017 Ville Skyttä <ville.skytta@iki.fi> - 1:2.5-1
Ville Skyttä 5cb0b4
- Update to 2.5
Ville Skyttä 5cb0b4
Ville Skyttä 82919f
* Fri Aug 12 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.4-1
Ville Skyttä 82919f
- Update to 2.4
Ville Skyttä 82919f
Ville Skyttä 344ccd
* Mon Mar 28 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.3-1
Ville Skyttä 344ccd
- Update to 2.3
Ville Skyttä 344ccd
Ville Skyttä cb3caa
* Thu Mar  3 2016 Ville Skyttä <ville.skytta@iki.fi> - 1:2.2-1
Ville Skyttä cb3caa
- Update to 2.2
Ville Skyttä cb3caa
Dennis Gilmore 10e04f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.1-9.20150513git1950590
Dennis Gilmore 10e04f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Dennis Gilmore 10e04f
Dennis Gilmore d5a793
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-8.20150513git1950590
Dennis Gilmore d5a793
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore d5a793
Ville Skyttä 782583
* Thu May 14 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-7.20150513git1950590
Ville Skyttä 782583
- Autogenerate redefine_filedir (fixes #1171396 in it too)
Ville Skyttä 782583
Ville Skyttä d069f2
* Wed May 13 2015 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-6.20150513git1950590
Ville Skyttä d069f2
- Update to current upstream git (fixes #1171396)
Ville Skyttä d069f2
- Move pre-1.90 %%changelog entries to CHANGES.package.old
Ville Skyttä d069f2
Ville Skyttä c30b02
* Mon Nov 10 2014 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-6.20141110git52d8316
Ville Skyttä c30b02
- Update to current upstream git (fixes #744406, #949479, #1090481, #1015935,
Ville Skyttä c30b02
  #1132959, #1135489)
Ville Skyttä c30b02
- Clean up no longer needed specfile conditionals
Ville Skyttä c30b02
- Mark COPYING as %%license where applicable
Ville Skyttä c30b02
Dennis Gilmore 3c8d90
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-5
Dennis Gilmore 3c8d90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore 3c8d90
Ville Skyttä f4e6e0
* Tue Dec 17 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-4
Ville Skyttä f4e6e0
- Ship bash_completion.txt.
Ville Skyttä f4e6e0
- Make profile.d scriptlet noreplace again.
Ville Skyttä f4e6e0
Dennis Gilmore 1f70fa
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.1-3
Dennis Gilmore 1f70fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore 1f70fa
Ville Skyttä 0394aa
* Tue Apr  9 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-2
Ville Skyttä 0394aa
- Don't install nmcli completion on F-18+ (#950071).
Ville Skyttä 0394aa
Ville Skyttä 653669
* Mon Apr  8 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:2.1-1
Ville Skyttä 653669
- Update to 2.1 (fixes #860510, #906469, #912113, #919246, #928253).
Ville Skyttä 653669
- Don't ship completions included in util-linux 2.23-rc2 for F-19+.
Ville Skyttä 653669
Dennis Gilmore e353b9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0-3
Dennis Gilmore e353b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore e353b9
Dennis Gilmore 1f3e95
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:2.0-2
Dennis Gilmore 1f3e95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 1f3e95
Ville Skyttä b03688
* Tue Jun 19 2012 Ville Skyttä <ville.skytta@iki.fi> - 1:2.0-1
Ville Skyttä b03688
- Update to 2.0 (fixes #817902, #831835).
Ville Skyttä b03688
- Don't try to python-bytecompile our non-python *.py (#813651).
Ville Skyttä b03688
Ville Skyttä d1d1af
* Sun Jan  8 2012 Ville Skyttä <ville.skytta@iki.fi> - 1:1.99-1
Ville Skyttä d1d1af
- Update to 1.99.
Ville Skyttä d1d1af
Ville Skyttä 6c1548
* Fri Nov  4 2011 Ville Skyttä <ville.skytta@iki.fi> - 1:1.90-1
Ville Skyttä 6c1548
- Update to 1.90.
Ville Skyttä 6c1548
- Specfile cleanups.
Ville Skyttä 6c1548
- Move pre-1.2 %%changelog entries to CHANGES.package.old.