2022-09-24 12:43:24 +08:00
|
|
|
|
%global _empty_manifest_terminate_build 0
|
|
|
|
|
|
Name: python-importlib-metadata
|
|
|
|
|
|
Version: 4.12.0
|
2023-02-27 10:29:39 +08:00
|
|
|
|
Release: 2
|
2020-02-18 16:54:38 +08:00
|
|
|
|
Summary: Read metadata from Python packages
|
2022-09-24 12:43:24 +08:00
|
|
|
|
License: Apache-2.0
|
|
|
|
|
|
URL: https://github.com/python/importlib_metadata
|
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/1a/16/441080c907df829016729e71d8bdd42d99b9bdde48b01492ed08912c0aa9/importlib_metadata-4.12.0.tar.gz
|
|
|
|
|
|
Patch0: 0001-add-setup.py.patch
|
2020-02-18 16:54:38 +08:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
2022-09-24 12:43:24 +08:00
|
|
|
|
Requires: python3-zipp >= 0.5
|
|
|
|
|
|
Requires: python3-typing-extensions
|
|
|
|
|
|
Requires: python3-sphinx
|
|
|
|
|
|
Requires: python3-ipython
|
|
|
|
|
|
Requires: python3-pytest
|
|
|
|
|
|
Requires: python3-pytest-checkdocs
|
|
|
|
|
|
Requires: python3-pytest-flake8
|
|
|
|
|
|
Requires: python3-pytest-cov
|
|
|
|
|
|
Requires: python3-pytest-enabler
|
|
|
|
|
|
Requires: python3-pytest-perf
|
|
|
|
|
|
Requires: python3-pytest-black
|
|
|
|
|
|
Requires: python3-pytest-mypy
|
|
|
|
|
|
Requires: python3-packaging
|
|
|
|
|
|
Requires: python3-pyfakefs
|
|
|
|
|
|
Requires: python3-importlib-resources
|
|
|
|
|
|
|
2020-02-18 16:54:38 +08:00
|
|
|
|
%description
|
|
|
|
|
|
importlib_metadata is a library which provides an API for accessing an installed package’s metadata (see PEP 566), such as its entry points or its top-level name.
|
|
|
|
|
|
|
2022-09-24 12:43:24 +08:00
|
|
|
|
%package -n python3-importlib-metadata
|
2020-02-18 16:54:38 +08:00
|
|
|
|
Summary: Read metadata from Python packages
|
2022-09-24 12:43:24 +08:00
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
|
|
BuildRequires: python3-toml
|
|
|
|
|
|
BuildRequires: python3-packaging
|
|
|
|
|
|
BuildRequires: python3-pbr
|
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
|
BuildRequires: python3-zipp >= 0.5
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-importlib-metadata
|
2020-02-18 16:54:38 +08:00
|
|
|
|
importlib_metadata is a library which provides an API for accessing an installed package’s metadata (see PEP 566), such as its entry points or its top-level name.
|
|
|
|
|
|
|
2022-09-24 12:43:24 +08:00
|
|
|
|
%package help
|
|
|
|
|
|
Summary: Development documents and examples for importlib-metadata
|
|
|
|
|
|
%description help
|
|
|
|
|
|
importlib_metadata is a library which provides an API for accessing an installed package’s metadata (see PEP 566), such as its entry points or its top-level name.
|
2020-02-18 16:54:38 +08:00
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-02-27 10:29:39 +08:00
|
|
|
|
%autosetup -n importlib_metadata-%{version} -p1
|
2020-02-18 16:54:38 +08:00
|
|
|
|
|
|
|
|
|
|
%build
|
2022-09-24 12:43:24 +08:00
|
|
|
|
%py3_build
|
2020-02-18 16:54:38 +08:00
|
|
|
|
|
|
|
|
|
|
%install
|
2022-09-24 12:43:24 +08:00
|
|
|
|
%py3_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}/*
|
|
|
|
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
|
|
|
|
|
%{_docdir}/*
|
2021-07-26 15:54:31 +08:00
|
|
|
|
|
2020-02-18 16:54:38 +08:00
|
|
|
|
%changelog
|
2023-02-27 10:29:39 +08:00
|
|
|
|
* Mon Feb 27 2023 wangkai <wangkai385@h-partners.com> - 4.12.0-2
|
|
|
|
|
|
- Modify the patching method
|
|
|
|
|
|
|
2022-09-24 12:43:24 +08:00
|
|
|
|
* Sat Sep 24 2022 guozhengxin <guozhengxin@kylinos.cn> - 4.12.0-1
|
|
|
|
|
|
- Upgrade package to version 4.12.0
|
|
|
|
|
|
|
2022-07-26 07:32:59 +00:00
|
|
|
|
* Mon Jul 25 2022 renliang16 <renliang@uniontech.com> - 4.8.3-1
|
|
|
|
|
|
- Upgrade package python3-importlib-metadata to version 4.8.3
|
|
|
|
|
|
|
2021-12-20 10:45:39 +08:00
|
|
|
|
* Mon Dec 20 2021 shixuantong <shixuantong@huawei.com> - 4.8.2-1
|
|
|
|
|
|
- update version to 4.8.2
|
|
|
|
|
|
|
2021-08-02 12:23:27 +00:00
|
|
|
|
* Mon Aug 2 2021 huangtianhua <huangtianhua@huawei.com> - 3.7.2-2
|
|
|
|
|
|
- Adds provide name python3-importlib-metadata and adds pbr/pip as buildrequires
|
|
|
|
|
|
|
2021-07-26 15:54:31 +08:00
|
|
|
|
* Mon Jul 26 2021 shixuantong <shixuantong@huawei.com> - 3.7.2-1
|
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
|
- ID:NA
|
|
|
|
|
|
- SUG:NA
|
|
|
|
|
|
- DESC:update version to 3.7.2
|
|
|
|
|
|
|
2020-06-19 10:12:26 +08:00
|
|
|
|
* Thu Jun 18 2020 gaochao<gaochao52@huawei.com> - 0.23-2
|
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
|
- ID:NA
|
|
|
|
|
|
- SUG:NA
|
|
|
|
|
|
- DESC:update spec file
|
|
|
|
|
|
|
2020-02-18 16:54:38 +08:00
|
|
|
|
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.23-1
|
|
|
|
|
|
- Package init
|