forked from pool/python-argcomplete
the python argcomplete package. please make me the maintainer. OBS-URL: https://build.opensuse.org/request/show/173718 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=1
58 lines
1.6 KiB
RPMSpec
58 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package python-argcomplete
|
|
#
|
|
# Copyright (c) 2013 Darin Perusich.
|
|
#
|
|
|
|
Name: python-argcomplete
|
|
Version: 0.4.9
|
|
Release: 0
|
|
Url: https://github.com/kislyuk/argcomplete
|
|
Summary: Bash tab completion for argparse
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Source: http://pypi.python.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-distribute
|
|
|
|
%description
|
|
argcomplete - Bash completion for argparse
|
|
|
|
Argcomplete provides easy, extensible command line tab completion of
|
|
arguments for your Python script.
|
|
|
|
It makes two assumptions:
|
|
|
|
* You're using bash as your shell
|
|
* You're using argparse to manage your command line arguments/options
|
|
|
|
Argcomplete is particularly useful if your program has lots of options
|
|
or subparsers, and if your program can dynamically suggest completions
|
|
for your argument/option values (for example, if the user is browsing
|
|
resources over the network).
|
|
|
|
%prep
|
|
%setup -q -n argcomplete-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
# You may have to add additional files here (documentation and binaries mostly)
|
|
%{python_sitelib}/*
|
|
%{_bindir}/activate-global-python-argcomplete
|
|
%{_bindir}/python-argcomplete-check-easy-install-script
|
|
%{_bindir}/register-python-argcomplete
|
|
|
|
%changelog
|