File bash-completion.spec of Package bash-completion

#
# spec file for package bash-completion
#
# Copyright (c) 2013 SUSE LINUX Products 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
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.

%prep
%setup -q
%patch0 -b .p0
%patch1 -b .p1

%build
%configure
make %{?_smp_mflags}

%install
%make_install

# shipping in latest systemd now
rm -f %{buildroot}%{_datadir}/bash-completion/completions/udevadm
rm -f %{buildroot}%{_datadir}/bash-completion/completions/nmcli

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_datadir}/bash-completion
%config %{_sysconfdir}/profile.d/bash_completion.sh
%{_datadir}/pkgconfig/bash-completion.pc

%changelog
openSUSE Build Service is sponsored by