Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>epel10 imports/epel10/python-jaraco-functools-4.0.2-4.el10
parent
ab3af12471
commit
037a5f3831
@ -1,86 +1,82 @@
|
|||||||
# Created by pyp2rpm-3.3.2
|
# Created by pyp2rpm-3.3.2
|
||||||
%global pypi_name jaraco_functools
|
|
||||||
%global pkg_name jaraco-functools
|
|
||||||
# Fedora doesn't have all the docs deps yet
|
# Fedora doesn't have all the docs deps yet
|
||||||
%bcond_with docs
|
%bcond_with docs
|
||||||
|
|
||||||
Name: python-%{pkg_name}
|
Name: python-jaraco-functools
|
||||||
Version: 4.0.2
|
Version: 4.0.2
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Functools like those found in stdlib
|
Summary: Functools like those found in stdlib
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jaraco/jaraco.functools
|
URL: https://github.com/jaraco/jaraco.functools
|
||||||
Source0: %{pypi_source %{pypi_name}}
|
Source0: %{pypi_source jaraco_functools}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Functools like those found in stdlib
|
Functools like those found in stdlib
|
||||||
|
|
||||||
%package -n python3-%{pkg_name}
|
%package -n python3-jaraco-functools
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
# python3-jaraco is an RPM-only namespace package for jaraco.*
|
|
||||||
# it does not exists on PyPI and does not provide python3dist(jaraco)
|
|
||||||
# DO NOT change this dependency to python3dist(jaraco) or similar
|
|
||||||
Requires: python3-jaraco
|
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildConflicts: python3dist(pytest) = 3.7.3
|
BuildRequires: tomcli
|
||||||
BuildRequires: python3dist(jaraco-classes)
|
|
||||||
BuildRequires: python3dist(pip) >= 3.4
|
|
||||||
BuildRequires: python3dist(pytest) >= 3.4
|
|
||||||
BuildRequires: python3dist(setuptools)
|
|
||||||
|
|
||||||
%{?python_provide:%python_provide python3-%{pkg_name}}
|
|
||||||
|
|
||||||
%description -n python3-%{pkg_name}
|
%description -n python3-jaraco-functools
|
||||||
Functools like those found in stdlib
|
Functools like those found in stdlib
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
%package -n python-%{pkg_name}-doc
|
%package -n python-jaraco-functools-doc
|
||||||
Summary: jaraco-functools documentation
|
Summary: jaraco-functools documentation
|
||||||
|
|
||||||
BuildRequires: python3dist(jaraco-packaging) >= 3.2
|
BuildRequires: python3dist(jaraco-packaging) >= 3.2
|
||||||
BuildRequires: python3dist(rst-linker) >= 1.9
|
BuildRequires: python3dist(rst-linker) >= 1.9
|
||||||
BuildRequires: python3dist(sphinx)
|
BuildRequires: python3dist(sphinx)
|
||||||
|
|
||||||
%description -n python-%{pkg_name}-doc
|
%description -n python-jaraco-functools-doc
|
||||||
Documentation for jaraco-functools
|
Documentation for jaraco-functools
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n jaraco_functools-%{version}
|
||||||
|
# Remove dev-only dependencies. Upstream later split the `test` dependencies out of it
|
||||||
|
# https://github.com/jaraco/skeleton/issues/138
|
||||||
|
tomcli set pyproject.toml lists delitem "project.optional-dependencies.test" "pytest-.*"
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires -x test
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
# generate html docs
|
# generate html docs
|
||||||
PYTHONPATH=${PWD} sphinx-build docs html
|
%{python3} -m sphinx docs html
|
||||||
# remove the sphinx-build leftovers
|
# remove the sphinx-build leftovers
|
||||||
rm -rf html/.{doctrees,buildinfo}
|
rm -rf html/.{doctrees,buildinfo}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files -l jaraco
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%files -n python3-%{pkg_name}
|
|
||||||
%license LICENSE
|
%files -n python3-jaraco-functools -f %{pyproject_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/jaraco/functools*
|
|
||||||
%{python3_sitelib}/jaraco.functools-%{version}.dist-info
|
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
%files -n python-%{pkg_name}-doc
|
%files -n python-jaraco-functools-doc
|
||||||
%doc html
|
%doc html
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Loading…
Reference in new issue