Blame SPECS/bash-completion.spec

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