Blame SPECS/bash-completion.spec

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