2010-02-25 12:52:38 +00:00
|
|
|
#
|
2011-02-25 17:33:43 +00:00
|
|
|
# spec file for package bash-completion
|
2010-02-25 12:52:38 +00:00
|
|
|
#
|
2019-04-02 08:46:37 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-02-25 12:52:38 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-02 08:46:37 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-02-25 12:52:38 +00:00
|
|
|
#
|
|
|
|
|
2012-07-19 23:56:29 +00:00
|
|
|
|
2010-02-25 12:52:38 +00:00
|
|
|
Name: bash-completion
|
2016-08-03 14:01:00 +00:00
|
|
|
# WARNING: After editing this file please call pre_checkin.sh to update bash-completion-doc.spec.
|
|
|
|
# Do not change %%build_core.
|
|
|
|
%define build_core 1
|
|
|
|
# Always set %%build_doc to 0 before submit to OBS.
|
|
|
|
%define build_doc 0
|
2018-08-28 07:45:21 +00:00
|
|
|
Version: 2.8
|
2012-01-09 11:16:27 +00:00
|
|
|
Release: 0
|
2010-02-25 12:52:38 +00:00
|
|
|
Summary: Programmable Completion for Bash
|
2018-04-20 11:56:11 +00:00
|
|
|
License: GPL-2.0-or-later
|
2010-02-25 12:52:38 +00:00
|
|
|
Group: System/Shells
|
2016-12-14 11:49:24 +00:00
|
|
|
Url: https://github.com/scop/bash-completion/
|
|
|
|
Source0: https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2012-07-19 23:56:29 +00:00
|
|
|
Source1: bash-completion-rpmlintrc
|
2013-04-23 14:21:13 +00:00
|
|
|
# PATCH-FIX-UPSTREAM bnc#717151 -- Terminal tab autocompletion error
|
2017-05-30 16:31:52 +00:00
|
|
|
Patch0: %{name}-2.4.patch
|
2016-12-14 12:42:41 +00:00
|
|
|
# PATCH-FIX-SUSE bnc#1012212 -- bash tab-autocompletion hangs on TAR-archiving with --create key
|
|
|
|
Patch1: tar-completion.patch
|
2014-11-17 12:50:19 +00:00
|
|
|
# PATCH-FIX-SUSE bnc#903362 -- tab completion for file names prints error
|
|
|
|
Patch2: PS1-completion-boo903362.patch
|
2015-03-18 13:07:18 +00:00
|
|
|
# PATCH-FIX-SUSE boo#905348 -- tab completion with shell variable changes command line with backslash
|
2014-11-17 12:50:19 +00:00
|
|
|
Patch3: FOO-dir-completion-boo905348.patch
|
2015-06-15 08:39:30 +00:00
|
|
|
# PATCH-FIX-SUSE boo#889319
|
|
|
|
Patch5: ls-completion-boo889319.patch
|
2015-08-13 06:56:41 +00:00
|
|
|
# PATCH-FIX-SUSE boo#940835
|
|
|
|
Patch6: backtick-completion-boo940835.patch
|
2015-09-23 11:59:55 +00:00
|
|
|
# PATCH-FIX-SUSE bsc#946875
|
|
|
|
Patch7: LVM-completion-bsc946875.patch
|
2015-12-18 09:35:44 +00:00
|
|
|
# PATCH-FIX-SUSE boo#940837, bsc#959299
|
|
|
|
Patch8: respect-variables-boo940837.patch
|
|
|
|
# PATCH-FIX-SUSE boo#958462
|
|
|
|
Patch9: rm-completion-smart-boo958462.patch
|
2016-01-27 15:43:52 +00:00
|
|
|
# PATCH-FIX-SUSE boo#963140
|
|
|
|
Patch10: backticks-bsc963140.patch
|
2016-04-27 12:44:05 +00:00
|
|
|
# PATCH-FIX-SUSE boo#977336
|
|
|
|
Patch11: sh-script-completion-boo977336.patch
|
2018-04-24 09:23:39 +00:00
|
|
|
# PATCH-FIX-SUSE boo#1090515
|
|
|
|
Patch12: bash-completion-2.7-unRAR-remove.patch
|
2016-08-03 14:01:00 +00:00
|
|
|
%if %build_doc
|
2016-04-27 11:55:31 +00:00
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: libxslt-tools
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_doc
|
2012-07-19 23:56:29 +00:00
|
|
|
BuildRequires: pkg-config
|
2016-08-03 14:01:00 +00:00
|
|
|
%if %build_core
|
2016-12-14 11:49:24 +00:00
|
|
|
BuildRequires: cmake
|
2016-12-15 09:39:43 +00:00
|
|
|
BuildRequires: util-linux
|
2010-02-25 12:52:38 +00:00
|
|
|
Requires: bash
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif
|
2010-02-25 12:52:38 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-08-03 14:01:00 +00:00
|
|
|
%if %build_core
|
2010-02-25 12:52:38 +00:00
|
|
|
%description
|
|
|
|
bash-completion is a collection of shell functions that take advantage
|
|
|
|
of the programmable completion feature of Bash 2.04 and later.
|
|
|
|
|
2016-05-18 13:41:14 +00:00
|
|
|
%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.
|
|
|
|
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_core
|
|
|
|
%if %build_doc
|
2016-05-18 13:41:14 +00:00
|
|
|
%package doc
|
|
|
|
Summary: The Documentation of Programmable Completion for Bash
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: bash-completion:%{_defaultdocdir}/%{name}/AUTHORS
|
2016-10-17 12:19:36 +00:00
|
|
|
BuildArch: noarch
|
2016-05-18 13:41:14 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the package documentation file of the
|
|
|
|
package bash-completion.
|
|
|
|
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_doc
|
2010-02-25 12:52:38 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-04-23 14:21:13 +00:00
|
|
|
%patch0 -b .p0
|
2017-07-04 07:57:49 +00:00
|
|
|
%patch1 -b .p1
|
2014-11-17 12:50:19 +00:00
|
|
|
%patch2 -b .p2
|
|
|
|
%patch3 -b .p3
|
2015-06-15 08:39:30 +00:00
|
|
|
%patch5 -b .p5
|
2015-08-13 06:56:41 +00:00
|
|
|
%patch6 -b .p6
|
2015-12-18 09:35:44 +00:00
|
|
|
%patch7 -b .p7 -p1
|
|
|
|
%patch8 -b .p8
|
|
|
|
%patch9 -b .p9
|
2016-01-27 15:43:52 +00:00
|
|
|
%patch10 -b .p10 -p1
|
2016-04-27 12:44:05 +00:00
|
|
|
%patch11 -b .p11 -p0
|
2018-04-24 09:23:39 +00:00
|
|
|
%patch12 -b .p12 -p0
|
2010-02-25 12:52:38 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2016-08-03 14:01:00 +00:00
|
|
|
%if %build_core
|
2011-09-18 09:04:19 +00:00
|
|
|
make %{?_smp_mflags}
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_core
|
|
|
|
%if %build_doc
|
2016-04-27 11:55:31 +00:00
|
|
|
pushd doc
|
|
|
|
mkdir html
|
|
|
|
a2x -D html -d book -f xhtml --asciidoc-opts="--unsafe" main.txt
|
|
|
|
popd
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_doc
|
2010-02-25 12:52:38 +00:00
|
|
|
|
|
|
|
%install
|
2016-08-03 14:01:00 +00:00
|
|
|
%if %build_core
|
2012-07-19 23:56:29 +00:00
|
|
|
%make_install
|
2013-04-19 17:28:11 +00:00
|
|
|
# shipping in latest systemd now
|
2016-05-18 13:41:14 +00:00
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/udevadm
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/nmcli
|
2016-04-28 06:58:03 +00:00
|
|
|
# shipping in latest util-linux now
|
2016-05-18 13:41:14 +00:00
|
|
|
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
|
2016-12-15 09:39:43 +00:00
|
|
|
if test -e %{_datadir}/bash-completion/completions/mount
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/mount
|
|
|
|
fi
|
2016-05-18 13:41:14 +00:00
|
|
|
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
|
2016-12-15 09:39:43 +00:00
|
|
|
if test -e %{_datadir}/bash-completion/completions/umount
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/umount
|
|
|
|
fi
|
2019-04-02 08:46:37 +00:00
|
|
|
# shipping in devscripts now
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/bts
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_core
|
|
|
|
%if %build_doc
|
|
|
|
pushd doc
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}/html
|
|
|
|
install -m 0644 html/* %{buildroot}%{_defaultdocdir}/%{name}/html/
|
|
|
|
popd
|
|
|
|
install -m 0644 AUTHORS %{buildroot}%{_defaultdocdir}/%{name}/
|
2016-12-14 11:49:24 +00:00
|
|
|
install -m 0644 README.md %{buildroot}%{_defaultdocdir}/%{name}/README
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_doc
|
2013-04-19 17:28:11 +00:00
|
|
|
|
2016-08-03 14:01:00 +00:00
|
|
|
%if %build_core
|
2010-02-25 12:52:38 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-04-20 11:56:11 +00:00
|
|
|
%license COPYING
|
2016-08-03 14:01:00 +00:00
|
|
|
%if %build_doc
|
2016-05-18 13:47:35 +00:00
|
|
|
%exclude %{_defaultdocdir}/%{name}/AUTHORS
|
|
|
|
%exclude %{_defaultdocdir}/%{name}/README
|
|
|
|
%exclude %{_defaultdocdir}/%{name}/html/
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_doc
|
Accepting request 94556 from home:tiwai:branches:shells
- Update to version 1.90:
- new completions: epdfview, lpr, lpq, mysql, puppet, pkgtool,
makepkg, rmp2tgz, slapt-get, slapt-src, slackpkg, kcov, feh,
xgamma, fbi, fbgs sbopkg, a2x, arping, asciidoc, base64, cal,
chrpath, cppcheck, curl, dmesg, dot, file, gnome-mplayer, gprof,
hddtemp, host, htpasswd, idn, ionice, jps, lbunzip2, lbzip2,
lbzcat, prelink, protoc, pwdx, pwgen, reptyr, sum, watch,
phing, pinfo
- installed location changed to /usr/share/bash-completion/*
- see more changes in CHANGES file
OBS-URL: https://build.opensuse.org/request/show/94556
OBS-URL: https://build.opensuse.org/package/show/shells/bash-completion?expand=0&rev=37
2011-12-01 14:03:29 +00:00
|
|
|
%{_datadir}/bash-completion
|
2016-12-14 11:49:24 +00:00
|
|
|
%{_datadir}/cmake/bash-completion
|
2011-01-10 15:15:40 +00:00
|
|
|
%config %{_sysconfdir}/profile.d/bash_completion.sh
|
2016-05-18 13:41:14 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-07-19 23:56:29 +00:00
|
|
|
%{_datadir}/pkgconfig/bash-completion.pc
|
2016-08-03 14:01:00 +00:00
|
|
|
# TRICK: bash-completion-devel does not require bash-completion.
|
|
|
|
# It would cause failure of directory ownership check.
|
|
|
|
# Own this directory to prevent it.
|
|
|
|
%dir %{_datadir}/bash-completion
|
2010-02-25 12:52:38 +00:00
|
|
|
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_core
|
|
|
|
%if %build_doc
|
2016-05-18 13:41:14 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2016-08-03 14:01:00 +00:00
|
|
|
%dir %{_defaultdocdir}/%{name}
|
2016-05-18 13:47:35 +00:00
|
|
|
%{_defaultdocdir}/%{name}/AUTHORS
|
|
|
|
%{_defaultdocdir}/%{name}/README
|
|
|
|
%{_defaultdocdir}/%{name}/html/
|
2016-05-18 13:41:14 +00:00
|
|
|
|
2016-08-03 14:01:00 +00:00
|
|
|
%endif %build_doc
|
|
|
|
|
2010-02-25 12:52:38 +00:00
|
|
|
%changelog
|