%global pypi_name nbclient %global _description %{expand: NBClient, a client library for programmatic notebook execution, is a tool for running Jupyter Notebooks in different execution contexts. NBClient was spun out of nbconvert (formerly ExecutePreprocessor). NBClient lets you execute notebooks. } Name: python-%{pypi_name} Version: 0.7.4 Release: 2 Summary: A client library for executing notebooks. License: BSD-3-Clause URL: https://github.com/jupyter/nbclient Source0: %{url}/archive/%{version}/nbclient-%{version}.tar.gz Patch1: 0001-modify-the-range-of-version-required.patch BuildArch: noarch %description %_description %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-hatchling %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{version} -p1 # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %pyproject_build %install %pyproject_install %files -n python3-%{pypi_name} %doc README.md %license LICENSE %{python3_sitelib}/nbclient %{python3_sitelib}/nbclient-*dist-info/ %{_bindir}/jupyter-execute %changelog * Wed Aug 9 2023 Dongxing Wang - 0.7.4-2 - Fix the package provider missing * Fri Aug 4 2023 mengzhaoa - 0.7.4-1 - Downgrade package python-nbclient to version 0.7.4 * Fri Jul 28 2023 xlhans - 0.8.0-1 - Package init