From 52c0362ce97df48570acd84b93d6a7f6854fe6f3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:57:58 +0100 Subject: [PATCH] rebuilt with distdeps [release 7.0.1-3mamba;Mon Dec 25 2023] --- python-zope-schema.spec | 70 +++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 45 deletions(-) diff --git a/python-zope-schema.spec b/python-zope-schema.spec index 4cb2978..40a4cb5 100644 --- a/python-zope-schema.spec +++ b/python-zope-schema.spec @@ -1,80 +1,60 @@ +%define pkgname zope.schema Name: python-zope-schema Version: 7.0.1 -Release: 2mamba +Release: 3mamba Summary: zope.interface extension for defining data schemas Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba -Packager: Stefano Cotta Ramusino +Packager: Silvan Calarco URL: https://pypi.org/project/zope.schema/ Source: https://pypi.debian.net/zope.schema/zope.schema-%{version}.tar.gz License: Zope Public License ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel +BuildRequires: python3.11dist(setuptools) +BuildRequires: python3.11dist(zope.event) +BuildRequires: python3.11dist(zope.interface) ## AUTOBUILDREQ-END -BuildRequires: python3-devel >= 3.11.5-3mamba -Requires: python >= %python_version -Requires: python-zope-interface -Requires: python-zope-event -Requires: python-six BuildArch: noarch %description zope.interface extension for defining data schemas. -%if "%?with_pyver" -%define pyver %{with_pyver} -%define pyappend py%{with_pyver} -%define __python %(rpm --eval %{__python%{with_pyver}}) -%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch}) -%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib}) -%define python_inc %(rpm --eval %{python%{with_pyver}_inc}) -%define python_version %(rpm --eval %{python%{with_pyver}_version}) -%define python_provides %(rpm --eval %{python%{with_pyver}_provides}) -%define python_requires %(rpm --eval %{python%{with_pyver}_requires}) -%define py_requires %(rpm --eval %{py%{with_pyver}_requires}) - -%package py%{pyver} -Group: System/Libraries/Python -Summary: %{summary}. -Requires: python-zope-interface-%{?pyappend} -Requires: python-zope-event-%{?pyappend} -Requires: python-six-%{?pyappend} -%py_requires - -%description py%{pyver} -%{summary}. +%if 0%{?with_pyver} +%pyver_package %endif %prep %setup -q -n zope.schema-%{version} %build -%{__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} \ - --single-version-externally-managed \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -# remove tests -rm -rf %{buildroot}%{python_sitearch}/zope/schema/tests +#%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 -sed -i "\,/tests/,d" %{name}.filelist - -%clean -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" - -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%{python_sitelib}/zope.schema-%{version}-py*-nspkg.pth +%dir %{python_sitelib}/zope/schema +%{python_sitelib}/zope/schema/* %doc COPYRIGHT.txt LICENSE.txt %changelog +* Mon Dec 25 2023 Silvan Calarco 7.0.1-3mamba +- rebuilt with distdeps + * Wed Sep 27 2023 Automatic Build System 7.0.1-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba