rebuilt with distdeps [release 7.0.1-3mamba;Mon Dec 25 2023]
This commit is contained in:
parent
7f44f28587
commit
52c0362ce9
@ -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 <stefano.cotta@openmamba.org>
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
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 <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
|
||||
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user