rebuilt with distdeps [release 7.0.1-3mamba;Mon Dec 25 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 16:57:58 +01:00
parent 7f44f28587
commit 52c0362ce9

View File

@ -1,80 +1,60 @@
%define pkgname zope.schema
Name: python-zope-schema Name: python-zope-schema
Version: 7.0.1 Version: 7.0.1
Release: 2mamba Release: 3mamba
Summary: zope.interface extension for defining data schemas Summary: zope.interface extension for defining data schemas
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/zope.schema/ URL: https://pypi.org/project/zope.schema/
Source: https://pypi.debian.net/zope.schema/zope.schema-%{version}.tar.gz Source: https://pypi.debian.net/zope.schema/zope.schema-%{version}.tar.gz
License: Zope Public License License: Zope Public License
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel BuildRequires: libpython311-devel
BuildRequires: python3.11dist(setuptools)
BuildRequires: python3.11dist(zope.event)
BuildRequires: python3.11dist(zope.interface)
## AUTOBUILDREQ-END ## 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 BuildArch: noarch
%description %description
zope.interface extension for defining data schemas. zope.interface extension for defining data schemas.
%if "%?with_pyver" %if 0%{?with_pyver}
%define pyver %{with_pyver} %pyver_package
%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}.
%endif %endif
%prep %prep
%setup -q -n zope.schema-%{version} %setup -q -n zope.schema-%{version}
%build %build
%{__python} setup.py build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} -m installer --destdir=%{buildroot} dist/*.whl
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
# remove tests #%if "%{?with_pyver}" != "3"
rm -rf %{buildroot}%{python_sitearch}/zope/schema/tests ## 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 %files %{?pyappend}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %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 %doc COPYRIGHT.txt LICENSE.txt
%changelog %changelog
* Mon Dec 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.1-3mamba
- rebuilt with distdeps
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 7.0.1-2mamba * Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 7.0.1-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba