# Expected failures in mock, hangs in koji %bcond_with tests # The *.py files we ship are not python scripts, #813651 %global _python_bytecompile_errors_terminate_build 0 Name: bash-completion Version: 2.1 Release: 6%{?dist} Epoch: 1 Summary: Programmable completion for Bash License: GPLv2+ URL: http://bash-completion.alioth.debian.org/ Source0: https://launchpad.net/bash-completion/master/%{version}/+download/%{name}-%{version}.tar.gz Source2: CHANGES.package.old # https://bugzilla.redhat.com/677446, see also noblacklist patch Source3: %{name}-2.0-redefine_filedir.bash Source4: script_list # https://bugzilla.redhat.com/677446, see also redefine_filedir source Patch0: %{name}-1.99-noblacklist.patch # Commands included in util-linux >= 2.23-rc2 Patch1: %{name}-2.1-util-linux-223.patch BuildArch: noarch %if %{with tests} BuildRequires: dejagnu BuildRequires: screen BuildRequires: tcllib %endif Requires: bash >= 4.1 %description bash-completion is a collection of shell functions that take advantage of the programmable completion feature of bash. %prep %setup -q %patch0 -p1 %if 0%{?fedora} >= 19 || 0%{?rhel} >= 7 %patch1 -p1 %endif install -pm 644 %{SOURCE2} . %build %configure make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT # Updated completion shipped in cowsay package: rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/{cowsay,cowthink} %if 0%{?fedora} < 19 && 0%{?rhel} < 7 # systemd >= 198 ships this one: install -pm 644 completions/_udevadm \ $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/udevadm %endif %if 0%{?fedora} > 17 || 0%{?rhel} >= 7 # NetworkManager >= 0.9.8.0 ships this one: rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/nmcli %endif %if 0%{?rhel} >= 7 # remove all completions in file script_list for script in $(cat %{SOURCE4}); do rm -f $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/$script done %endif install -Dpm 644 %{SOURCE3} \ $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/redefine_filedir %if %{with tests} %check # For some tests involving non-ASCII filenames export LANG=en_US.UTF-8 # This stuff borrowed from dejagnu-1.4.4-17 (tests need a terminal) tmpfile=$(mktemp) screen -D -m sh -c '( make check ; echo $? ) >'$tmpfile cat $tmpfile result=$(tail -n 1 $tmpfile) rm -f $tmpfile exit $result %endif %files %doc AUTHORS CHANGES CHANGES.package.old COPYING README # Temporarily not noreplace for < 1.90 to 1.90+ updates (changed location) %config %{_sysconfdir}/profile.d/bash_completion.sh %{_sysconfdir}/bash_completion.d/ %{_datadir}/bash-completion/ %{_datadir}/pkgconfig/bash-completion.pc %changelog * Fri Nov 1 2013 Petr Stodulka - 2.1-6 - Install only available completions (#810343 - comment 15) without "tar" and remove the other. * Fri Sep 13 2013 Roman Rakus - 2.1-5 - Added one more missing conditional Resolves: #1007839 * Fri Sep 13 2013 Roman Rakus - 2.1-4 - Added conditionals to not add completions for some commands; the packages has their own completions Resolves: #1007839 * Thu Sep 12 2013 Roman Rakus - 2.1-3 - Build for RHEL-7 * Tue Apr 9 2013 Ville Skyttä - 1:2.1-2 - Don't install nmcli completion on F-18+ (#950071). * Mon Apr 8 2013 Ville Skyttä - 1:2.1-1 - Update to 2.1 (fixes #860510, #906469, #912113, #919246, #928253). - Don't ship completions included in util-linux 2.23-rc2 for F-19+. * Wed Feb 13 2013 Fedora Release Engineering - 1:2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 1:2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 19 2012 Ville Skyttä - 1:2.0-1 - Update to 2.0 (fixes #817902, #831835). - Don't try to python-bytecompile our non-python *.py (#813651). * Sun Jan 8 2012 Ville Skyttä - 1:1.99-1 - Update to 1.99. * Fri Nov 4 2011 Ville Skyttä - 1:1.90-1 - Update to 1.90. - Specfile cleanups. - Move pre-1.2 %%changelog entries to CHANGES.package.old. * Mon Sep 5 2011 Ville Skyttä - 1:1.3-6 - Apply upstream patch providing a config and profile hook to make it easier to disable bash-completion on per user basis. * Mon Aug 15 2011 Ville Skyttä - 1:1.3-5 - Fix ant completion when complete-ant-cmd.pl is N/A (#729771). - Fix bash < 4 _filedir_xspec uppercase expansion issue (#726220). - Drop _filedir_xspec self-parsing with bash >= 4 for speedups (#479936). - Do install triggers with lua where available to speed up package install. - Add completion for sum (#717341). * Tue May 10 2011 Ville Skyttä - 1:1.3-4 - Work around problems caused by Adobe Reader overriding _filedir (#677446). * Tue Apr 12 2011 Ville Skyttä - 1:1.3-3 - Patch to not test command availability for each snippet, improves load time. - Apply upstream libreoffice flat XML extensions fix for #692548. - Apply upstream MANPAGER fix for #689180. - Apply upstream (la)tex *.dbj fix for #678122. * Mon Feb 07 2011 Fedora Release Engineering - 1:1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Feb 7 2011 Ville Skyttä - 1:1.3-1 - Update to 1.3. * Wed Oct 13 2010 Ville Skyttä - 1:1.2-5 - Install util-linux completions unconditionally. - Make trigger target package rename etc tracking easier to maintain, and handle man-db/man (#642193, Yanko Kaneti), mysql/MySQL-client-community, and tigervnc/vnc renames better. - Move pre-1.0 %%changelog entries to CHANGES.package.old. * Tue Oct 5 2010 Ville Skyttä - 1:1.2-4 - More IPv6 address completion fixes, #630658. * Tue Sep 28 2010 Ville Skyttä - 1:1.2-3 - Apply upstream ~username completion fix for #628130. - Apply upstream rpm completion improvements for #630328. - Apply upstream IPv6 address completion fix for #630658. - Drop some completions that are included in respective upstream packages. - Fix qdbus/dcop uninstall trigger. * Mon Jun 28 2010 Ville Skyttä - 1:1.2-2 - Apply upstream post 1.2 /etc/init.d/* completion improvements to fix #608351. * Wed Jun 16 2010 Ville Skyttä - 1:1.2-1 - Update to 1.2, all patches applied upstream. - Fixes #444469, #538433, #541423, and #601813, works around #585384.