!34 Update package to version 7.0.1
From: @jxy_git Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
840b49a1fa
Binary file not shown.
BIN
importlib_metadata-7.0.1.tar.gz
Normal file
BIN
importlib_metadata-7.0.1.tar.gz
Normal file
Binary file not shown.
@ -1,11 +1,11 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-importlib-metadata
|
||||
Version: 6.1.0
|
||||
Release: 2
|
||||
Version: 7.0.1
|
||||
Release: 1
|
||||
Summary: Read metadata from Python packages
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/python/importlib_metadata
|
||||
Source0: https://files.pythonhosted.org/packages/e2/d8/3d431bade4598ad9e33be9da41d15e6607b878008e922d122659ab01b077/importlib_metadata-6.1.0.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/90/b4/206081fca69171b4dc1939e77b378a7b87021b0f43ce07439d49d8ac5c84/importlib_metadata-7.0.1.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-pip python3-hatchling python3-hatch-vcs python3-wheel
|
||||
|
||||
@ -54,41 +54,22 @@ importlib_metadata is a library which provides an API for accessing an installed
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%pyproject_install importlib_metadata==%{version}
|
||||
%pyproject_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-importlib-metadata -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%{python3_sitelib}/importlib_metadata
|
||||
%files -n python3-importlib-metadata
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%files help
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 20 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 7.0.1-1
|
||||
- Update package to version 7.0.1
|
||||
|
||||
* Wed Apr 26 2023 xu_ping <707078654@qq.com> - 6.1.0-2
|
||||
- Adapting to the pyproject.toml compilation mode
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user