From 58e2e74a59b211c01b155c51bdb9789a789b31e5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 24 Mar 2024 22:10:39 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.3.0-1mamba;Sun Mar 24 2024] --- README.md | 2 ++ python-jaraco-context.spec | 51 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 python-jaraco-context.spec diff --git a/README.md b/README.md index 703c0c8..a2165f5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-jaraco-context +Context managers by jaraco. + diff --git a/python-jaraco-context.spec b/python-jaraco-context.spec new file mode 100644 index 0000000..8f442f6 --- /dev/null +++ b/python-jaraco-context.spec @@ -0,0 +1,51 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - .) +Name: python-jaraco-context +Version: 4.3.0 +Release: 1mamba +Summary: Context managers by jaraco +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/jaraco/jaraco.context +Source: https://pypi.debian.net/jaraco.context/jaraco.context-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython311-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n jaraco.context-%{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/* +%{python_sitelib}/jaraco/context.py +%{python3_sitelib}/jaraco/__pycache__/context.cpython*.pyc +%doc LICENSE + +%changelog +* Sun Mar 24 2024 Silvan Calarco 4.3.0-1mamba +- package created using the webbuild interface