package created using the webbuild interface [release 2.4.0-1mamba;Thu Sep 05 2024]

This commit is contained in:
Silvan Calarco 2024-09-05 16:31:16 +02:00
parent d77ec366b6
commit a8003790ab
2 changed files with 59 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# python-pygithub
A Python library to access the GitHub REST API.

57
python-pygithub.spec Normal file
View File

@ -0,0 +1,57 @@
%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 <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
* Thu Sep 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.0-1mamba
- package created using the webbuild interface