automatic version update by autodist [release 6.0.0-1mamba;Sat Feb 11 2023]
This commit is contained in:
parent
0259c88035
commit
cf5f3a1b30
@ -1,6 +1,7 @@
|
|||||||
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||||
Name: python-importlib_metadata
|
Name: python-importlib_metadata
|
||||||
Version: 4.10.1
|
Version: 6.0.0
|
||||||
Release: 2mamba
|
Release: 1mamba
|
||||||
Summary: A library to access the metadata for a Python package
|
Summary: A library to access the metadata for a Python package
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -30,26 +31,31 @@ Requires: python-typing_extensions%{?pyappend:-%pyappend}
|
|||||||
%setup -q -n importlib_metadata-%{version}
|
%setup -q -n importlib_metadata-%{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=%{python_inc} \
|
|
||||||
--install-lib=%{python_sitearch} \
|
|
||||||
--record=%{name}.filelist
|
|
||||||
|
|
||||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
#%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
|
||||||
|
|
||||||
%files %{?pyappend} -f %{name}.filelist
|
%files %{?pyappend}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{python_sitearch}/importlib_metadata-*-py*.egg-info
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||||
%{python_sitearch}/importlib_metadata-*-py*.egg-info/*
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||||||
|
%dir %{python_sitelib}/%{pkgname}
|
||||||
|
%{python_sitelib}/%{pkgname}/*
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 11 2023 Automatic Build System <autodist@mambasoft.it> 6.0.0-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
* Tue Jan 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.10.1-2mamba
|
* Tue Jan 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.10.1-2mamba
|
||||||
- rebuilt with python-setuptools_scm-py3 to fix 0.0.0 version problem
|
- rebuilt with python-setuptools_scm-py3 to fix 0.0.0 version problem
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user