Blame SPECS/bash-completion.spec

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