Files
python-shtab/python-shtab.spec

83 lines
2.7 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-shtab
Version: 1.12.1
Release: 1mamba
Summary: Automagic shell tab completion for Python CLI applications
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan@openmamba.org>
URL: https://github.com/tqdm/shtab
Source: https://pypi.debian.net/shtab/shtab-%{version}.tar.gz
License: Apache License 2.0
BuildArch: noarch
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython314-devel
## AUTOBUILDREQ-END
BuildRequires: python3 >= 0:3.14.6-2mamba
Obsoletes: python-shtab-py3 < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: python-shtab-py3 = %{?epoch:%{epoch}:}%{version}-%{release}
%description
%{summary}.
%prep
%setup -q -n shtab-%{version}
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%files
%defattr(-,root,root)
%{_bindir}/shtab
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENCE
%changelog
* Wed Sep 02 2026 Automatic Build System <autodist@openmamba.org> 1.12.1-1mamba
- automatic version update by autodist
* Mon Aug 24 2026 Automatic Build System <autodist@openmamba.org> 1.12.0-1mamba
- automatic version update by autodist
* Sun Aug 16 2026 Automatic Build System <autodist@openmamba.org> 1.11.0-1mamba
- automatic version update by autodist
* Sat Aug 08 2026 Automatic Build System <autodist@openmamba.org> 1.10.0-1mamba
- automatic version update by autodist
* Tue Aug 04 2026 Automatic Build System <autodist@openmamba.org> 1.9.3-1mamba
- automatic version update by autodist
* Sat Aug 01 2026 Automatic Build System <autodist@openmamba.org> 1.9.2-1mamba
- automatic version update by autodist
* Fri Jul 31 2026 Automatic Build System <autodist@openmamba.org> 1.9.0-1mamba
- automatic version update by autodist
* Fri Jul 31 2026 Automatic Build System <autodist@openmamba.org> 1.8.2-1mamba
- automatic version update by autodist
* Wed Jul 08 2026 Automatic Build System <autodist@openmamba.org> 1.8.1-2mamba
- rebuilt by autoport with build requirements: python3>=0:3.14.6-2mamba
* Fri Jul 03 2026 Automatic Build System <autodist@openmamba.org> 1.8.1-1mamba
- automatic version update by autodist
* Tue Jan 20 2026 Silvan Calarco <silvan@openmamba.org> 1.8.0-1mamba
- package created using the webbuild interface