2024-01-06 10:57:55 +01:00
|
|
|
Name: python-click
|
2024-01-06 10:57:55 +01:00
|
|
|
Version: 5.1
|
2024-01-06 10:57:55 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A simple wrapper around optparse for powerful command line utilities
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
|
|
URL: http://click.pocoo.org
|
|
|
|
Source: https://pypi.python.org/packages/source/c/click/click-%{version}.tar.gz
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: python >= %python_version
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Click is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary.
|
|
|
|
It's the "Command Line Interface Creation Kit".
|
|
|
|
It's highly configurable but comes with sensible defaults out of the box.
|
|
|
|
|
|
|
|
It aims to make the process of writing command line tools quick and fun while also preventing any frustration caused by the inability to implement an intended CLI API.
|
|
|
|
|
|
|
|
Click in three points:
|
|
|
|
* arbitrary nesting of commands
|
|
|
|
* automatic help page generation
|
|
|
|
* supports lazy loading of subcommands at runtime
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n click-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} setup.py install \
|
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|
|
|
|
|
|
|
%files -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:57:55 +01:00
|
|
|
* Wed Nov 04 2015 Automatic Build System <autodist@mambasoft.it> 5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
* Thu Jul 02 2015 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 4.0-1mamba
|
|
|
|
- package created using the webbuild interface
|