commit fe2f44601e1bd9051d8d859781e43451c921dc62 Author: Sergey Cherevko Date: Thu Feb 22 15:23:01 2024 +0300 import python-importlib-metadata-0.23-1.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd8166c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/importlib_metadata-0.23.tar.gz diff --git a/.python-importlib-metadata.metadata b/.python-importlib-metadata.metadata new file mode 100644 index 0000000..582b748 --- /dev/null +++ b/.python-importlib-metadata.metadata @@ -0,0 +1 @@ +ff2ba256e0d7180669248b41d5bcb11dcf253de6 SOURCES/importlib_metadata-0.23.tar.gz diff --git a/SPECS/python-importlib-metadata.spec b/SPECS/python-importlib-metadata.spec new file mode 100644 index 0000000..f5311f0 --- /dev/null +++ b/SPECS/python-importlib-metadata.spec @@ -0,0 +1,75 @@ +%global pypi_name importlib_metadata +%global pkg_name importlib-metadata + +Name: python-%{pkg_name} +Version: 0.23 +Release: 1%{?dist} +Summary: Read metadata from Python packages + +License: ASL 2.0 +URL: http://importlib-metadata.readthedocs.io/ +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-packaging +BuildRequires: python3-zipp >= 0.5 +%{?el8:BuildRequires: python3-importlib-resources} + +%description +importlib_metadata is a library which provides an API for accessing an +installed package’s metadata, such as its entry points or its top-level name. +This functionality intends to replace most uses of pkg_resources entry point +API and metadata API. Along with importlib.resources in Python 3.7 and newer +(backported as importlib_resources for older versions of Python), this can +eliminate the need to use the older and less efficient pkg_resources package. + + +%package -n python3-%{pkg_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pkg_name}} + +%description -n python3-%{pkg_name} +importlib_metadata is a library which provides an API for accessing an +installed package’s metadata, such as its entry points or its top-level name. +This functionality intends to replace most uses of pkg_resources entry point +API and metadata API. Along with importlib.resources in Python 3.7 and newer +(backported as importlib_resources for older versions of Python), this can +eliminate the need to use the older and less efficient pkg_resources package. + + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +# Don't ship docs sources +rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/ + +%check +%{__python3} setup.py test + +%files -n python3-%{pkg_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/ + +%changelog +* Thu Feb 22 2024 Sergey Cherevko - 0.23-1 +- Rebuilt for MSVSphere 8.9 + +* Wed Sep 18 2019 Miro Hrončok - 0.23-1 +- Update to 0.23 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.18-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Jun 26 2019 Miro Hrončok - 0.18-1 +- Initial package