diff --git a/0001-bugfix-modify-version-for-pkg.patch b/0001-bugfix-modify-version-for-pkg.patch new file mode 100644 index 0000000..a9f9ea4 --- /dev/null +++ b/0001-bugfix-modify-version-for-pkg.patch @@ -0,0 +1,25 @@ +From d72f3de4e503cbd4e4135c202d2a7c01131c57cd Mon Sep 17 00:00:00 2001 +From: zoujiancang +Date: Tue, 19 Sep 2023 14:11:11 +0800 +Subject: [PATCH] bugfix modify version for pkg + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 69c93d8..28def33 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -30,7 +30,7 @@ dependencies = [ + "comm>=0.1.1", + "traitlets>=5.4.0", + "jupyter_client>=6.1.12", +- "jupyter_core>=4.12,!=5.0.*", ++ "jupyter_core>=5.1", + # For tk event loop support only. + "nest_asyncio", + "tornado>=6.1", +-- +2.27.0 + diff --git a/ipykernel-6.25.0.tar.gz b/ipykernel-6.25.0.tar.gz new file mode 100644 index 0000000..21d831a Binary files /dev/null and b/ipykernel-6.25.0.tar.gz differ diff --git a/python-ipykernel.spec b/python-ipykernel.spec new file mode 100644 index 0000000..2710210 --- /dev/null +++ b/python-ipykernel.spec @@ -0,0 +1,55 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name ipykernel + +Name: python-%{pypi_name} +Version: 6.25.0 +Release: 1 +Summary: This package provides the IPython kernel for Jupyter. + + +License: BSD-3-Clause +URL: https://ipython.org/ +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Patch1: 0001-bugfix-modify-version-for-pkg.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-virtualenv +BuildRequires: python3-poetry-core +BuildRequires: python3-jupyter-client + +%description +This package provides the IPython kernel for Jupyter. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +This package provides the IPython kernel for Jupyter. + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.md +%license LICENSE +%{python3_sitelib}/ipykernel*.dist-info/ +%{python3_sitelib}/__pycache__/ +%{python3_sitelib}/ipykernel +%{python3_sitelib}/ipykernel_launcher.py +%{_datadir}/jupyter + +%changelog +* Fri Jul 28 2023 zoujiancang - 6.25.0-1 +- Initial package +