rebuilt with python-build, provide legacy python3dist(zope-interface) [release 6.1-2mamba;Sat Dec 09 2023]
This commit is contained in:
parent
763f6f35f1
commit
c5b3187efd
@ -1,6 +1,8 @@
|
||||
%define pkgname zope.interface
|
||||
|
||||
Name: python-zope-interface
|
||||
Version: 6.1
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Python library for API definitions through interfaces
|
||||
Group: System/Libraries/Python
|
||||
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.
|
||||
|
||||
%if 0%{?with_pyver}
|
||||
%define py_requires_append \
|
||||
Provides: python%{python_version}dist(zope-interface) = %{version}
|
||||
%pyver_package
|
||||
%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}
|
||||
|
||||
%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} \
|
||||
--single-version-externally-managed \
|
||||
--record=%{name}.filelist
|
||||
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||
|
||||
# remove documentation from wrong path
|
||||
rm -f %{buildroot}%{python_sitearch}/zope/interface/*.txt
|
||||
|
||||
# remove a C source file
|
||||
rm -f %{buildroot}%{python_sitearch}/zope/interface/_zope_interface_coptimizations.c
|
||||
|
||||
# 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}"
|
||||
#%if "%{?with_pyver}" != "3"
|
||||
## Rename any conflicting file outside of python site packages tree
|
||||
#for f in %{_bindir}/example; do
|
||||
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||||
#done
|
||||
#%endif
|
||||
|
||||
%files %{?pyappend}
|
||||
#-f %{name}.filelist
|
||||
%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
|
||||
%{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 CHANGES.txt README.txt
|
||||
|
||||
%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
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user