From eca6f28f04804241d4681e02062bb65cc366416a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 7 Aug 2024 19:17:12 +0200 Subject: [PATCH] package created using the webbuild interface [release 0.9.1-1mamba;Sun Aug 04 2024] --- README.md | 2 ++ python-hatch_jupyter_builder.spec | 52 +++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 python-hatch_jupyter_builder.spec diff --git a/README.md b/README.md index 51cd079..5bdf91d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-hatch_jupyter_builder +A hatch plugin to help build Jupyter packages. + diff --git a/python-hatch_jupyter_builder.spec b/python-hatch_jupyter_builder.spec new file mode 100644 index 0000000..c0b263b --- /dev/null +++ b/python-hatch_jupyter_builder.spec @@ -0,0 +1,52 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-hatch_jupyter_builder +Version: 0.9.1 +Release: 1mamba +Summary: A hatch plugin to help build Jupyter packages +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/jupyterlab/hatch-jupyter-builder +Source: https://pypi.debian.net/hatch-jupyter-builder/hatch_jupyter_builder-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +BuildRequires: python3.11dist(hatchling) +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n hatch_jupyter_builder-%{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) +%{_bindir}/hatch-jupyter-builder +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* + +%changelog +* Sun Aug 04 2024 Silvan Calarco 0.9.1-1mamba +- package created using the webbuild interface