|
|
d171bea |
%global pypi_name importlib_metadata
|
|
|
d171bea |
%global pkg_name importlib-metadata
|
|
|
d171bea |
|
|
|
d171bea |
Name: python-%{pkg_name}
|
|
|
d171bea |
Version: 0.23
|
|
|
c83353f |
Release: 5%{?dist}
|
|
|
d171bea |
Summary: Read metadata from Python packages
|
|
|
d171bea |
|
|
|
f52f30f |
License: Apache-2.0
|
|
|
d171bea |
URL: http://importlib-metadata.readthedocs.io/
|
|
|
d171bea |
Source0: %{pypi_source}
|
|
|
d171bea |
BuildArch: noarch
|
|
|
d171bea |
|
|
|
d171bea |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
d171bea |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
d171bea |
BuildRequires: python%{python3_pkgversion}-setuptools_scm
|
|
|
d171bea |
BuildRequires: python%{python3_pkgversion}-packaging
|
|
|
d171bea |
BuildRequires: python%{python3_pkgversion}-zipp >= 0.5
|
|
|
f52f30f |
%{?el7:BuildRequires: python%{python3_pkgversion}-importlib-resources}
|
|
|
d171bea |
|
|
|
d171bea |
%description
|
|
|
d171bea |
importlib_metadata is a library which provides an API for accessing an
|
|
|
d171bea |
installed package’s metadata, such as its entry points or its top-level name.
|
|
|
d171bea |
This functionality intends to replace most uses of pkg_resources entry point
|
|
|
d171bea |
API and metadata API. Along with importlib.resources in Python 3.7 and newer
|
|
|
d171bea |
(backported as importlib_resources for older versions of Python), this can
|
|
|
d171bea |
eliminate the need to use the older and less efficient pkg_resources package.
|
|
|
d171bea |
|
|
|
d171bea |
|
|
|
cc57778 |
%package -n python%{python3_pkgversion}-%{pkg_name}
|
|
|
d171bea |
Summary: %{summary}
|
|
|
9b64881 |
Requires: python%{python3_pkgversion}-zipp
|
|
|
cc57778 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkg_name}}
|
|
|
d171bea |
|
|
|
cc57778 |
%description -n python%{python3_pkgversion}-%{pkg_name}
|
|
|
d171bea |
importlib_metadata is a library which provides an API for accessing an
|
|
|
d171bea |
installed package’s metadata, such as its entry points or its top-level name.
|
|
|
d171bea |
This functionality intends to replace most uses of pkg_resources entry point
|
|
|
d171bea |
API and metadata API. Along with importlib.resources in Python 3.7 and newer
|
|
|
d171bea |
(backported as importlib_resources for older versions of Python), this can
|
|
|
d171bea |
eliminate the need to use the older and less efficient pkg_resources package.
|
|
|
d171bea |
|
|
|
d171bea |
%prep
|
|
|
d171bea |
%autosetup -n %{pypi_name}-%{version}
|
|
|
d171bea |
|
|
|
d171bea |
%build
|
|
|
d171bea |
%py3_build
|
|
|
d171bea |
|
|
|
d171bea |
%install
|
|
|
d171bea |
%py3_install
|
|
|
d171bea |
|
|
|
d171bea |
# Don't ship docs sources
|
|
|
d171bea |
rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/
|
|
|
d171bea |
|
|
|
f52f30f |
%check
|
|
|
f52f30f |
%{__python3} setup.py test
|
|
|
f52f30f |
|
|
|
cc57778 |
%files -n python%{python3_pkgversion}-%{pkg_name}
|
|
|
d171bea |
%license LICENSE
|
|
|
d171bea |
%doc README.rst
|
|
|
d171bea |
%{python3_sitelib}/%{pypi_name}/
|
|
|
d171bea |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/
|
|
|
d171bea |
|
|
|
d171bea |
%changelog
|
|
|
c83353f |
* Sat Jan 13 2024 Frank Crawford <frank@crawford.emu.id.au> - 0.23-5
|
|
|
c83353f |
- Add requirement for python3-zipp package for EL7 - BZ2257443
|
|
|
c83353f |
|
|
|
f52f30f |
* Thu Jan 05 2023 Frank Crawford <frank@crawford.emu.id.au> - 0.23-4
|
|
|
f52f30f |
- Reenable test as dependencies now available
|
|
|
f52f30f |
- SPDX license update
|
|
|
f52f30f |
|
|
|
9c4dd21 |
* Mon Dec 26 2022 Than Ngo <than@redhat.com> - 0.23-3
|
|
|
9c4dd21 |
- disable test due to missing dep
|
|
|
9c4dd21 |
|
|
|
5b68f84 |
* Sat Sep 03 2022 Frank Crawford <frank@crawford.emu.id.au> - 0.23-2
|
|
|
d171bea |
- Initial package for EPEL7
|
|
|
d171bea |
|
|
|
d171bea |
* Wed Sep 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.23-1
|
|
|
d171bea |
- Update to 0.23
|
|
|
d171bea |
|
|
|
d171bea |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-2
|
|
|
d171bea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
d171bea |
|
|
|
d171bea |
* Wed Jun 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.18-1
|
|
|
d171bea |
- Initial package
|