152 lines
5.3 KiB
RPMSpec
152 lines
5.3 KiB
RPMSpec
#
|
|
# spec file for package bash-completion
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: bash-completion
|
|
Version: 2.1
|
|
Release: 0
|
|
Summary: Programmable Completion for Bash
|
|
License: GPL-2.0+
|
|
Group: System/Shells
|
|
Url: http://bash-completion.alioth.debian.org/
|
|
Source0: http://bash-completion.alioth.debian.org/files/%{name}-%{version}.tar.bz2
|
|
Source1: bash-completion-rpmlintrc
|
|
# PATCH-FIX-UPSTREAM bnc#717151 -- Terminal tab autocompletion error
|
|
Patch0: %{name}-%{version}.patch
|
|
# PATCH-PATCH-EXTEND-OPENSUSE bnc#818365 -- bash completion for builtin command "pushd" is missing
|
|
Patch1: pushd-completion-bnc818365.patch
|
|
# PATCH-FIX-SUSE bnc#903362 -- tab completion for file names prints error
|
|
Patch2: PS1-completion-boo903362.patch
|
|
# PATCH-FIX-SUSE boo#905348 -- tab completion with shell variable changes command line with backslash
|
|
Patch3: FOO-dir-completion-boo905348.patch
|
|
# PATCH-FIX-SUSE boo#922758 -- avoid negative cword position counter
|
|
Patch4: init-completion-boo922758.patch
|
|
# PATCH-FIX-SUSE boo#889319
|
|
Patch5: ls-completion-boo889319.patch
|
|
# PATCH-FIX-SUSE boo#940835
|
|
Patch6: backtick-completion-boo940835.patch
|
|
# PATCH-FIX-SUSE bsc#946875
|
|
Patch7: LVM-completion-bsc946875.patch
|
|
# PATCH-FIX-SUSE boo#940837, bsc#959299
|
|
Patch8: respect-variables-boo940837.patch
|
|
# PATCH-FIX-SUSE boo#958462
|
|
Patch9: rm-completion-smart-boo958462.patch
|
|
# PATCH-FIX-SUSE boo#963140
|
|
Patch10: backticks-bsc963140.patch
|
|
# PATCH-FIX-SUSE boo#977336
|
|
Patch11: sh-script-completion-boo977336.patch
|
|
BuildRequires: asciidoc
|
|
BuildRequires: libxslt-tools
|
|
BuildRequires: pkg-config
|
|
Requires: bash
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
bash-completion is a collection of shell functions that take advantage
|
|
of the programmable completion feature of Bash 2.04 and later.
|
|
|
|
%package devel
|
|
Summary: The Configuration of Programmable Completion for Bash
|
|
Group: Development/Libraries/C and C++
|
|
Provides: bash-completion:%{_datadir}/pkgconfig/bash-completion.pc
|
|
|
|
%description devel
|
|
This package contains the package configuration file of the
|
|
package bash-completion.
|
|
|
|
%package doc
|
|
Summary: The Documentation of Programmable Completion for Bash
|
|
Group: Development/Libraries/C and C++
|
|
Provides: bash-completion:%{_defaultdocdir}/%{name}/AUTHORS
|
|
|
|
%description doc
|
|
This package contains the package documentation file of the
|
|
package bash-completion.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -b .p0
|
|
%patch1 -b .p1
|
|
%patch2 -b .p2
|
|
%patch3 -b .p3
|
|
%patch4 -b .p4
|
|
%patch5 -b .p5
|
|
%patch6 -b .p6
|
|
%patch7 -b .p7 -p1
|
|
%patch8 -b .p8
|
|
%patch9 -b .p9
|
|
%patch10 -b .p10 -p1
|
|
%patch11 -b .p11 -p0
|
|
|
|
%build
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
pushd doc
|
|
mkdir html
|
|
a2x -D html -d book -f xhtml --asciidoc-opts="--unsafe" main.txt
|
|
popd
|
|
|
|
%install
|
|
%make_install
|
|
pushd doc
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}/html
|
|
install -m 0644 html/* %{buildroot}%{_defaultdocdir}/%{name}/html/
|
|
popd
|
|
install -m 0644 AUTHORS %{buildroot}%{_defaultdocdir}/%{name}/
|
|
install -m 0644 README %{buildroot}%{_defaultdocdir}/%{name}/
|
|
|
|
# shipping in latest systemd now
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/udevadm
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/nmcli
|
|
# shipping in latest util-linux now
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/cal
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/chsh
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/dmesg
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/eject
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hexdump
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/hwclock
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/ionice
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/look
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/mount
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/newgrp
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/renice
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/rtcwake
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/su
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/umount
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%exclude %{_defaultdocdir}/%{name}/AUTHORS
|
|
%exclude %{_defaultdocdir}/%{name}/README
|
|
%exclude %{_defaultdocdir}/%{name}/html/
|
|
%{_datadir}/bash-completion
|
|
%config %{_sysconfdir}/profile.d/bash_completion.sh
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_datadir}/pkgconfig/bash-completion.pc
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%{_defaultdocdir}/%{name}/AUTHORS
|
|
%{_defaultdocdir}/%{name}/README
|
|
%{_defaultdocdir}/%{name}/html/
|
|
|
|
%changelog
|