63 lines
1.7 KiB
RPMSpec
63 lines
1.7 KiB
RPMSpec
|
%global pypi_name importlib_resources
|
||
|
|
||
|
%global desc \
|
||
|
importlib_resources is a backport of Python 3.7's standard library\
|
||
|
importlib.resources module for 3.4 through 3.6. Users of Python 3.7 and\
|
||
|
beyond should use the standard library module, since for these\
|
||
|
versions, importlib_resources just delegates to that module.
|
||
|
|
||
|
|
||
|
Name: python-importlib-resources
|
||
|
Version: 6.0.1
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Read resources from Python packages
|
||
|
|
||
|
License: ASL 2.0
|
||
|
URL: https://importlib-resources.readthedocs.io/
|
||
|
Source0: %pypi_source
|
||
|
|
||
|
#Patch0001: 0001-raise-NotImplementedError-on-Python-2.patch
|
||
|
|
||
|
BuildArch: noarch
|
||
|
|
||
|
BuildRequires: python%{python3_pkgversion}-devel
|
||
|
BuildRequires: python%{python3_pkgversion}dist(wheel)
|
||
|
BuildRequires: python3dist(sphinx)
|
||
|
|
||
|
%description %{desc}
|
||
|
|
||
|
%package -n python%{python3_pkgversion}-importlib-resources
|
||
|
Summary: %{summary}
|
||
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
||
|
%description -n python%{python3_pkgversion}-importlib-resources %{desc}
|
||
|
|
||
|
%prep
|
||
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||
|
# Remove bundled egg-info
|
||
|
rm -rf %{pypi_name}.egg-info
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
|
||
|
# Don't ship docs sources or tests
|
||
|
#rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/{docs,tests}/
|
||
|
|
||
|
%check
|
||
|
%{__python3} setup.py test
|
||
|
|
||
|
%files -n python%{python3_pkgversion}-importlib-resources
|
||
|
%license LICENSE
|
||
|
%doc README.rst
|
||
|
%{python3_sitelib}/%{pypi_name}
|
||
|
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info
|
||
|
|
||
|
%changelog
|
||
|
* Fri Mar 20 2020 Neal Gompa <ngompa13@gmail.com> - 1.0.2-2
|
||
|
- Rebuild again for EPEL 8
|
||
|
|
||
|
* Thu Nov 07 2019 Ken Dreyer <kdreyer@redhat.com> - 1.0.2-1
|
||
|
- Initial package.
|