python-importlib-metadata/python-importlib-metadata.spec
2020-06-18 17:26:31 +08:00

46 lines
1.5 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Name: python-importlib-metadata
Version: 0.23
Release: 1
Summary: Read metadata from Python packages
License: Apache v2.0
URL: https://pypi.org/project/importlib-metadata/
Source0: https://files.pythonhosted.org/packages/source/i/importlib-metadata/importlib_metadata-%{version}.tar.gz
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm
BuildRequires: python3-packaging python3-zipp >= 0.5
BuildArch: noarch
%description
importlib_metadata is a library which provides an API for accessing an installed packages metadata (see PEP 566), such as its entry points or its top-level name.
%package -n python3-importlib_metadata
Summary: Read metadata from Python packages
%description -n python3-importlib_metadata
importlib_metadata is a library which provides an API for accessing an installed packages metadata (see PEP 566), such as its entry points or its top-level name.
%package_help
%prep
%setup -q -n importlib_metadata-%{version}
%build
%_bindir/python3 setup.py build '--executable=%_bindir/python3 -s'
%install
%_bindir/python3 setup.py install -O1 --skip-build --root %buildroot
%files -n python3-importlib_metadata
%defattr(-,root,root)
%license LICENSE
%_prefix/lib/python%{python3_version}/site-packages/importlib_metadata/
%_prefix/lib/python%{python3_version}/site-packages/importlib_metadata-%{version}-py3.*.egg-info/
%files help
%defattr(-,root,root)
%doc README.rst
%changelog
* Tue Feb 11 2020 huzunhao<huzunhao2@huawei.com> - 0.23-1
- Package init