%define pkgname PyGithub Name: python-pygithub Version: 2.4.0 Release: 1mamba Summary: A Python library to access the GitHub REST API Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/PyGithub/PyGithub Source: https://pypi.debian.net/PyGithub/pygithub-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel BuildRequires: python3.11dist(deprecated) BuildRequires: python3.11dist(pyjwt) BuildRequires: python3.11dist(pynacl) BuildRequires: python3.11dist(requests) BuildRequires: python3.11dist(typing-extensions) BuildRequires: python3.11dist(urllib3) ## AUTOBUILDREQ-END %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n pygithub-%{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 %{?pyappend} %defattr(-,root,root) %dir %{python_sitelib}/%{pkgname}-%{version}.dist-info %{python_sitelib}/%{pkgname}-%{version}.dist-info/* %dir %{python_sitelib}/github %{python_sitelib}/github/* %doc COPYING COPYING.LESSER %changelog * Thu Sep 05 2024 Silvan Calarco 2.4.0-1mamba - package created using the webbuild interface