2010-02-25 13:52:38 +01:00
|
|
|
#
|
2011-02-25 18:33:43 +01:00
|
|
|
# spec file for package bash-completion
|
2010-02-25 13:52:38 +01:00
|
|
|
#
|
2020-01-07 11:08:21 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2010-02-25 13:52:38 +01: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.
|
|
|
|
|
2020-01-07 11:08:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-02-25 13:52:38 +01:00
|
|
|
#
|
|
|
|
|
2012-07-20 01:56:29 +02:00
|
|
|
|
2010-02-25 13:52:38 +01:00
|
|
|
Name: bash-completion
|
2016-08-03 16:01:00 +02: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
|
2020-01-07 11:08:21 +01:00
|
|
|
Version: 2.10
|
2012-01-09 12:16:27 +01:00
|
|
|
Release: 0
|
2010-02-25 13:52:38 +01:00
|
|
|
Summary: Programmable Completion for Bash
|
2018-04-20 13:56:11 +02:00
|
|
|
License: GPL-2.0-or-later
|
2010-02-25 13:52:38 +01:00
|
|
|
Group: System/Shells
|
2020-01-07 11:08:21 +01:00
|
|
|
URL: https://github.com/scop/bash-completion/
|
2016-12-14 12:49:24 +01:00
|
|
|
Source0: https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2012-07-20 01:56:29 +02:00
|
|
|
Source1: bash-completion-rpmlintrc
|
2013-04-23 16:21:13 +02:00
|
|
|
# PATCH-FIX-UPSTREAM bnc#717151 -- Terminal tab autocompletion error
|
2017-05-30 18:31:52 +02:00
|
|
|
Patch0: %{name}-2.4.patch
|
2016-12-14 13:42:41 +01:00
|
|
|
# PATCH-FIX-SUSE bnc#1012212 -- bash tab-autocompletion hangs on TAR-archiving with --create key
|
|
|
|
Patch1: tar-completion.patch
|
2014-11-17 13:50:19 +01:00
|
|
|
# PATCH-FIX-SUSE bnc#903362 -- tab completion for file names prints error
|
|
|
|
Patch2: PS1-completion-boo903362.patch
|
2015-03-18 14:07:18 +01:00
|
|
|
# PATCH-FIX-SUSE boo#905348 -- tab completion with shell variable changes command line with backslash
|
2014-11-17 13:50:19 +01:00
|
|
|
Patch3: FOO-dir-completion-boo905348.patch
|
2015-06-15 10:39:30 +02:00
|
|
|
# PATCH-FIX-SUSE boo#889319
|
|
|
|
Patch5: ls-completion-boo889319.patch
|
2015-08-13 08:56:41 +02:00
|
|
|
# PATCH-FIX-SUSE boo#940835
|
|
|
|
Patch6: backtick-completion-boo940835.patch
|
2015-09-23 13:59:55 +02:00
|
|
|
# PATCH-FIX-SUSE bsc#946875
|
|
|
|
Patch7: LVM-completion-bsc946875.patch
|
2015-12-18 10:35:44 +01: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 16:43:52 +01:00
|
|
|
# PATCH-FIX-SUSE boo#963140
|
|
|
|
Patch10: backticks-bsc963140.patch
|
2018-04-24 11:23:39 +02:00
|
|
|
# PATCH-FIX-SUSE boo#1090515
|
|
|
|
Patch12: bash-completion-2.7-unRAR-remove.patch
|
2016-08-03 16:01:00 +02:00
|
|
|
%if %build_doc
|
2016-04-27 13:55:31 +02:00
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: libxslt-tools
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif %build_doc
|
2012-07-20 01:56:29 +02:00
|
|
|
BuildRequires: pkg-config
|
2016-08-03 16:01:00 +02:00
|
|
|
%if %build_core
|
2016-12-14 12:49:24 +01:00
|
|
|
BuildRequires: cmake
|
2016-12-15 10:39:43 +01:00
|
|
|
BuildRequires: util-linux
|
2010-02-25 13:52:38 +01:00
|
|
|
Requires: bash
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif
|
2010-02-25 13:52:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2016-08-03 16:01:00 +02:00
|
|
|
%if %build_core
|
2010-02-25 13:52:38 +01: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 15:41:14 +02: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 16:01:00 +02:00
|
|
|
%endif %build_core
|
|
|
|
%if %build_doc
|
2016-05-18 15:41:14 +02: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 14:19:36 +02:00
|
|
|
BuildArch: noarch
|
2016-05-18 15:41:14 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the package documentation file of the
|
|
|
|
package bash-completion.
|
|
|
|
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif %build_doc
|
2010-02-25 13:52:38 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-04-23 16:21:13 +02:00
|
|
|
%patch0 -b .p0
|
2017-07-04 09:57:49 +02:00
|
|
|
%patch1 -b .p1
|
2014-11-17 13:50:19 +01:00
|
|
|
%patch2 -b .p2
|
|
|
|
%patch3 -b .p3
|
2015-06-15 10:39:30 +02:00
|
|
|
%patch5 -b .p5
|
2015-08-13 08:56:41 +02:00
|
|
|
%patch6 -b .p6
|
2015-12-18 10:35:44 +01:00
|
|
|
%patch7 -b .p7 -p1
|
|
|
|
%patch8 -b .p8
|
|
|
|
%patch9 -b .p9
|
2016-01-27 16:43:52 +01:00
|
|
|
%patch10 -b .p10 -p1
|
2018-04-24 11:23:39 +02:00
|
|
|
%patch12 -b .p12 -p0
|
2010-02-25 13:52:38 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2016-08-03 16:01:00 +02:00
|
|
|
%if %build_core
|
2011-09-18 11:04:19 +02:00
|
|
|
make %{?_smp_mflags}
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif %build_core
|
|
|
|
%if %build_doc
|
2016-04-27 13:55:31 +02:00
|
|
|
pushd doc
|
|
|
|
mkdir html
|
|
|
|
a2x -D html -d book -f xhtml --asciidoc-opts="--unsafe" main.txt
|
|
|
|
popd
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif %build_doc
|
2010-02-25 13:52:38 +01:00
|
|
|
|
|
|
|
%install
|
2016-08-03 16:01:00 +02:00
|
|
|
%if %build_core
|
2012-07-20 01:56:29 +02:00
|
|
|
%make_install
|
2013-04-19 19:28:11 +02:00
|
|
|
# shipping in latest systemd now
|
2016-05-18 15:41:14 +02:00
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/udevadm
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/nmcli
|
2016-04-28 08:58:03 +02:00
|
|
|
# shipping in latest util-linux now
|
2016-05-18 15:41:14 +02: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 10:39:43 +01:00
|
|
|
if test -e %{_datadir}/bash-completion/completions/mount
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/mount
|
|
|
|
fi
|
2016-05-18 15:41:14 +02: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 10:39:43 +01:00
|
|
|
if test -e %{_datadir}/bash-completion/completions/umount
|
|
|
|
then
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/umount
|
|
|
|
fi
|
2019-04-02 10:46:37 +02:00
|
|
|
# shipping in devscripts now
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/bts
|
2020-01-17 10:57:04 +01:00
|
|
|
# Seems to be broken (boo#1161136)
|
|
|
|
rm -vf %{buildroot}%{_datadir}/bash-completion/completions/_adb
|
2016-08-03 16:01:00 +02: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 12:49:24 +01:00
|
|
|
install -m 0644 README.md %{buildroot}%{_defaultdocdir}/%{name}/README
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif %build_doc
|
2013-04-19 19:28:11 +02:00
|
|
|
|
2016-08-03 16:01:00 +02:00
|
|
|
%if %build_core
|
2010-02-25 13:52:38 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-04-20 13:56:11 +02:00
|
|
|
%license COPYING
|
2016-08-03 16:01:00 +02:00
|
|
|
%if %build_doc
|
2016-05-18 15:47:35 +02:00
|
|
|
%exclude %{_defaultdocdir}/%{name}/AUTHORS
|
|
|
|
%exclude %{_defaultdocdir}/%{name}/README
|
|
|
|
%exclude %{_defaultdocdir}/%{name}/html/
|
2016-08-03 16:01:00 +02: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 15:03:29 +01:00
|
|
|
%{_datadir}/bash-completion
|
2016-12-14 12:49:24 +01:00
|
|
|
%{_datadir}/cmake/bash-completion
|
2011-01-10 16:15:40 +01:00
|
|
|
%config %{_sysconfdir}/profile.d/bash_completion.sh
|
2016-05-18 15:41:14 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2012-07-20 01:56:29 +02:00
|
|
|
%{_datadir}/pkgconfig/bash-completion.pc
|
2016-08-03 16:01:00 +02: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 13:52:38 +01:00
|
|
|
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif %build_core
|
|
|
|
%if %build_doc
|
2016-05-18 15:41:14 +02:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2016-08-03 16:01:00 +02:00
|
|
|
%dir %{_defaultdocdir}/%{name}
|
2016-05-18 15:47:35 +02:00
|
|
|
%{_defaultdocdir}/%{name}/AUTHORS
|
|
|
|
%{_defaultdocdir}/%{name}/README
|
|
|
|
%{_defaultdocdir}/%{name}/html/
|
2016-05-18 15:41:14 +02:00
|
|
|
|
2016-08-03 16:01:00 +02:00
|
|
|
%endif %build_doc
|
|
|
|
|
2010-02-25 13:52:38 +01:00
|
|
|
%changelog
|