rebuilt with python-build, provide legacy python3dist(zope-interface) [release 6.1-2mamba;Sat Dec 09 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 16:57:33 +01:00
parent 763f6f35f1
commit c5b3187efd

View File

@ -1,6 +1,8 @@
%define pkgname zope.interface
Name: python-zope-interface Name: python-zope-interface
Version: 6.1 Version: 6.1
Release: 1mamba Release: 2mamba
Summary: Python library for API definitions through interfaces Summary: Python library for API definitions through interfaces
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
@ -22,6 +24,8 @@ Interfaces are a mechanism for labeling objects as conforming to a given API or
So, this package can be considered as implementation of the Design By Contract methodology support in Python. So, this package can be considered as implementation of the Design By Contract methodology support in Python.
%if 0%{?with_pyver} %if 0%{?with_pyver}
%define py_requires_append \
Provides: python%{python_version}dist(zope-interface) = %{version}
%pyver_package %pyver_package
%endif %endif
@ -29,45 +33,33 @@ So, this package can be considered as implementation of the Design By Contract m
%setup -q -n zope.interface-%{version} %setup -q -n zope.interface-%{version}
%build %build
CFLAGS="%{optflags}" %{__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 documentation from wrong path #%if "%{?with_pyver}" != "3"
rm -f %{buildroot}%{python_sitearch}/zope/interface/*.txt ## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/example; do
# remove a C source file # mv %{buildroot}${f}{,-%{?pyappend}}
rm -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c #done
#%endif
# remove tests
rm -rf %{buildroot}%{python_sitearch}/zope/interface/{tests,common/tests}
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz,;\,\.c$,d;\,\.txt$,d;\,/tests/,d" %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} %files %{?pyappend}
#-f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%dir %{python_sitearch}/zope %dir %{python_sitearch}/%{pkgname}-%{version}.dist-info
%{python_sitearch}/%{pkgname}-%{version}.dist-info/*
%{python_sitearch}/zope.interface-%{version}-py*-nspkg.pth
%dir %{python_sitearch}/zope/interface %dir %{python_sitearch}/zope/interface
%{python_sitearch}/zope/interface/* %{python_sitearch}/zope/interface/*
%dir %{python_sitearch}/zope.interface-*-py*.egg-info
%{python_sitearch}/zope.interface-*-py*.egg-info/*
%{python_sitearch}/zope.interface-*-py*.pth
%doc COPYRIGHT.txt LICENSE.txt %doc COPYRIGHT.txt LICENSE.txt
#%doc CHANGES.txt README.txt #%doc CHANGES.txt README.txt
%changelog %changelog
* Sat Dec 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1-2mamba
- rebuilt with python-build, provide legacy python3dist(zope-interface)
* Thu Oct 05 2023 Automatic Build System <autodist@mambasoft.it> 6.1-1mamba * Thu Oct 05 2023 Automatic Build System <autodist@mambasoft.it> 6.1-1mamba
- automatic version update by autodist - automatic version update by autodist