2024-01-06 10:57:55 +01:00
|
|
|
Name: python-click
|
2024-01-06 10:57:55 +01:00
|
|
|
Version: 8.0.3
|
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
|
2024-01-06 10:57:55 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://click.palletsprojects.com/en/8.0.x/
|
|
|
|
Source: https://pypi.debian.net/click/click-%{version}.tar.gz
|
2024-01-06 10:57:55 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 10:57:55 +01:00
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
BuildRequires: python3.7dist(importlib-metadata)
|
2024-01-06 10:57:55 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
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
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
%prep
|
2024-01-06 10:57:55 +01:00
|
|
|
%setup -q -n click-%{version}
|
2024-01-06 10:57:55 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 10:57:55 +01:00
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-06 10:57:55 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:57:55 +01:00
|
|
|
%dir %{python_sitearch}/click-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/click-%{version}-py*.egg-info/*
|
2024-01-06 10:57:55 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:57:55 +01:00
|
|
|
* Tue Jan 11 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 8.0.3-1mamba
|
|
|
|
- update to 8.0.3
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
* Tue Apr 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0-1mamba
|
|
|
|
- update to 7.0
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
* Tue Jan 10 2017 Automatic Build System <autodist@mambasoft.it> 6.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
* Sun Apr 10 2016 Automatic Build System <autodist@mambasoft.it> 6.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
* Tue Mar 01 2016 Automatic Build System <autodist@mambasoft.it> 6.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:57:55 +01:00
|
|
|
* Tue Dec 01 2015 Automatic Build System <autodist@mambasoft.it> 6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
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
|