From a8003790ab915e3e27ce0fe41904222dcc66d4c5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 5 Sep 2024 16:31:16 +0200 Subject: [PATCH] package created using the webbuild interface [release 2.4.0-1mamba;Thu Sep 05 2024] --- README.md | 2 ++ python-pygithub.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 python-pygithub.spec diff --git a/README.md b/README.md index e0e0357..92a037e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-pygithub +A Python library to access the GitHub REST API. + diff --git a/python-pygithub.spec b/python-pygithub.spec new file mode 100644 index 0000000..a1d8ff3 --- /dev/null +++ b/python-pygithub.spec @@ -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 +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