%global pypi_name jupyterlab

Name:           python-%{pypi_name}
Version:        4.6.0a0
Release:        1
Summary:        JupyterLab computational environment
License:        MIT
URL:            https://github.com/jupyterlab/jupyterlab
Source0:        https://files.pythonhosted.org/packages/2b/22/8440ec827762146e7cdecf04335bd348795899d29dc6ae82238707353a2c/jupyterlab-4.6.0a0.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pip
BuildRequires:  python3-wheel
BuildRequires:	python3-hatchling
BuildRequires:	python3-hatch-jupyter-builder
#install requirements
BuildRequires:	python3-ipykernel
BuildRequires:	python3-jupyter-lsp
BuildRequires:	python3-jupyter-server
BuildRequires:	python3-jupyterlab-server
BuildRequires:	python3-notebook-shim

%description
JupyterLab is the next-generation user interface for Project Jupyter offering all the familiar building blocks of the classic Jupyter Notebook (notebook, terminal, text editor, file browser, rich outputs, etc.) in a flexible and powerful user interface.

%package -n python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
JupyterLab is the next-generation user interface for Project Jupyter offering all the familiar building blocks of the classic Jupyter Notebook (notebook, terminal, text editor, file browser, rich outputs, etc.) in a flexible and powerful user interface.


%prep
%autosetup -n %{pypi_name}-%{version}

%build
%pyproject_build

%install
%pyproject_install


%files -n python3-%{pypi_name}
%doc LICENSE README.md
%{python3_sitelib}/*
%{_bindir}/jlpm
%{_bindir}/jupyter*
%{_usr}/share/*
%{_usr}/etc/jupyter



%changelog
* Mon Jul 27 2026 shaoning <shaoning@kylinos.cn> - 4.6.0a0-1
- Update to 4.6.0a0

* Sat Jul 25 2026 shaoning <shaoning@kylinos.cn> - 4.5.10-1
- Update to 4.5.10

* Thu Jul 23 2026 shaoning <shaoning@kylinos.cn> - 4.5.9-1
- Update to 4.5.9

* Thu Jul 23 2026 shaoning <shaoning@kylinos.cn> - 4.5.8-1
- Update to 4.5.8

* Wed Jun 24 2026 wanggang <wanggang1@kylinos.cn> - 4.5.7-1
- Update version to 4.5.7
- fix cves:CVE-2026-42557 CVE-2026-42266 CVE-2026-40171

* Tue Apr 14 2026 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 4.5.6-1
- Update package with version 4.5.6
  Improve notebook scroll anchoring and windowing behavior outside full mode
  Harmonize Python translations with standard gettext usage
  Fix status bar, file browser, code console, and theme issues across locales
  Upgrade CodeMirror and Lumino for editor selection and layout fixes
  Refine notebook clipboard handling and subshell cleanup when settings change
  Fix debugger panels, document typing, and deferred loading in windowed notebooks
  Make system clipboard for notebook cells opt-in
  Deprecate default drive content provider and surface slow plugin activations in logs

* Thu Nov 27 2025 gongxingliang <gongxingliang@kylinos.cn> - 4.5.0-1
- Update package to version 4.5.0

* Tue Jun 10 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 4.4.3-1
- Update package with version 4.4.3
  Enable save in collaborative mode
  Fix error handing in extension manager (typo and undefined variable)
  Ensure strings with yellow background in tracebacks are visible
  Fix stdin input triggering cell re-execution on Shift+Enter
  Add standby callback to lumino polls
  Fix incorrect ARIA labels in the MainAreaWidget
  fileeditor-extension: fix handling of launcher, commands and menu entries on specsChanged
  Fix Settings Editor incorrectly resetting values to default in filtered view
  Upgrade CodeMirror packages to latest
  Update widget flag on attaching cell to viewport
  Update lumino to v2025.4.30 to pull menu aria fix
  Fix rendering of long cell editors in windowed notebook
  Add aria-hidden to icons (<svg> elements) which do not have a title
  Fix editing shortcuts on Safari (allow shortcut edit button to receive focus)

* Thu Apr 24 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 4.4.1-1
- Update package with version 4.4.1
  Fix undo/redo in cells created in none windowing mode
  Fix token extraction for incomplete paths
  Fix handling of the single click navigation
  Follow changes to stream outputs
  Fix incorrect modifications in collaborative save events
  Fix document search matching text within unsupported SVG tags
  Fix handling of the CSV viewer theme
  Fix browser tab name updates when started in single-document mode
  Add Settings Import Feature from a JSON File
  Support kernel subshells
  Remove spurious regex to slightly improve performance of streaming large outputs

* Fri Mar 07 2025 jiangxinyu <jiangxinyu@kylinos.cn> - 4.3.5-2
- Fix macro usage in the Summary field.

* Tue Feb 25 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 4.3.5-1
- Upgrade package with version 4.3.5
  Fix scrolling and selection restoration on undo/redo
  Fix windowing crash due to out-of-bounds access
  Increase color contrast of operators in code editor
  Fix jupyverse installation instructions
  Use Zulip for instant messaging

* Thu Oct 31 2024 muxiaohui <muxiaohui@kylinos.cn> - 4.3.0-1
- Update version to 4.3.0
  Add setting to enable single-click navigation in file browser.
  Adds command to toggle cell outputs.
  Add kernel selection to Galata notebook creation.
  
* Tue Apr 23 2024 zhaojingyu <zhaojingyu@kylinos.cn> - 4.1.6-1
- Upgrade package with version 4.1.6
- Fix outputarea collapse expand
  Disable placeholder for password input

* Thu Feb 29 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 4.1.2-1
- Upgrade package with version 4.1.2
  Fix highlight sequencing when replacing text in code cells
  Restore notebook scrolling on dragging a cell to the viewport edge
  Fix typing in editable elements inside of open shadow DOM
  Correct Alt + number keyboard shortcuts command map
  Update jupyter-collaboration for the Binder environment
  Add virtual scrollbar component to windowed lists.
  Load custom CSS functionality and documentation
  Add plugin manager and extension locks

* Wed Nov 29 2023 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 4.0.9-1
- Upgrade package with version 4.0.9

* Tue Sep 19 2023 luluoc <luluoc@isoftstone.com> - 4.0.6-1
- Initial package.