update to 3.0.1 [release 3.0.1-1mamba;Fri Dec 01 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 16:52:58 +01:00
parent 232ce71194
commit fe997e1016

View File

@ -1,20 +1,20 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-werkzeug
Version: 2.2.3
Release: 2mamba
Version: 3.0.1
Release: 1mamba
Summary: The Swiss Army knife of Python web development
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://werkzeug.palletsprojects.com/en/2.0.x/
Source: https://pypi.debian.net/Werkzeug/Werkzeug-%{version}.tar.gz
Source: https://pypi.debian.net/Werkzeug/werkzeug-%{version}.tar.gz
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(markupsafe)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
Requires: python >= %python_version
%description
%{summary}.
@ -24,28 +24,33 @@ Requires: python >= %python_version
%endif
%prep
%setup -q -n Werkzeug-%{version}
%setup -q -n werkzeug-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
#%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} -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/Werkzeug-%{version}-py*.egg-info
%{python_sitearch}/Werkzeug-%{version}-py*.egg-info/*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog
* Fri Dec 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.1-1mamba
- update to 3.0.1
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 2.2.3-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba