2024-09-05 16:31:16 +02:00
|
|
|
%define pkgname PyGithub
|
|
|
|
Name: python-pygithub
|
2024-11-08 00:45:48 +01:00
|
|
|
Version: 2.5.0
|
2024-09-05 16:31:16 +02:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A Python library to access the GitHub REST API
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
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
|
2024-11-08 00:45:48 +01:00
|
|
|
* Thu Nov 07 2024 Automatic Build System <autodist@openmamba.org> 2.5.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-09-05 16:31:16 +02:00
|
|
|
* Thu Sep 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
|
|
|
|
- package created using the webbuild interface
|