From 6dc51c8bcfe9246054c1bd8d8a1ec936948d46b5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 10 May 2024 13:29:47 +0200 Subject: [PATCH] package created using the webbuild interface [release 4.2.0-1mamba;Thu May 09 2024] --- README.md | 2 ++ python-immutabledict.spec | 51 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 python-immutabledict.spec diff --git a/README.md b/README.md index 3296b98..1135753 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-immutabledict +Immutable wrapper around dictionaries (a fork of frozendict). + diff --git a/python-immutabledict.spec b/python-immutabledict.spec new file mode 100644 index 0000000..5eaf216 --- /dev/null +++ b/python-immutabledict.spec @@ -0,0 +1,51 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-immutabledict +Version: 4.2.0 +Release: 1mamba +Summary: Immutable wrapper around dictionaries (a fork of frozendict) +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/corenting/immutabledict +Source: https://pypi.debian.net/immutabledict/immutabledict-%{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 immutabledict-%{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}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Thu May 09 2024 Silvan Calarco 4.2.0-1mamba +- package created using the webbuild interface