Blame SPECS/bash-completion.spec

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