Files
python-cattrs/python-cattrs.spec

61 lines
1.7 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-cattrs
Version: 25.3.0
Release: 1mamba
Summary: Composable complex class support for attrs and dataclasses
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://catt.rs/en/stable/
Source: https://pypi.debian.net/cattrs/cattrs-%{version}.tar.gz
License: MIT
BuildArch: noarch
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(attrs)
BuildRequires: python3.11dist(typing-extensions)
## AUTOBUILDREQ-END
BuildRequires: python-hatch_vcs-py3
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n cattrs-%{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}/*
%dir %{python3_sitelib}/cattr
%{python3_sitelib}/cattr/*
%doc LICENSE
%changelog
* Tue Oct 07 2025 Automatic Build System <autodist@openmamba.org> 25.3.0-1mamba
- automatic version update by autodist
* Sat Oct 04 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 25.2.0-1mamba
- package created using the webbuild interface