!1 Init package with version 0.4.4

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-11-02 03:18:03 +00:00 committed by Gitee
commit 94ab249481
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 66 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,66 @@
%global _empty_manifest_terminate_build 0
Name: python-jupyter-server-terminals
Version: 0.4.4
Release: 1
Summary: A Jupyter Server Extension Providing Terminals.
License: BSD-3-Clause
URL: https://github.com/jupyter-server/jupyter_server_terminals
Source0: https://files.pythonhosted.org/packages/54/e1/6bc19392e6957356f085b8d7ec33d6d0d721e646b7576c1c6758dd264c64/jupyter_server_terminals-0.4.4.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
Jupyter Server Terminals is a Jupyter Server Extension providing support for terminals.
%package -n python3-jupyter-server-terminals
Summary: A Jupyter Server Extension providing support for terminals.
Provides: python-jupyter-server-terminals
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-jupyter-server-terminals
Jupyter Server Terminals is a Jupyter Server Extension providing support for terminals.
%package help
Summary: Development documents and examples for Jupyter Server Terminals.
Provides: python3-jupyter-server-terminals-doc
%description help
Development documents and examples for Jupyter Server Terminals.
%prep
%autosetup -n jupyter_server_terminals-%{version}
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
install -m 0755 -p -d %{buildroot}%{_sysconfdir}/jupyter/jupyter_server_config.d
mv -v %{buildroot}{%{_prefix},}%{_sysconfdir}/jupyter/jupyter_server_config.d/jupyter_server_terminals.json
%files -n python3-jupyter-server-terminals
%doc README.md
%license LICENSE
%{python3_sitelib}/jupyter_server_terminals
%{python3_sitelib}/jupyter_server_terminals*.dist-info/
%config(noreplace) %{_sysconfdir}/jupyter/jupyter_server_config.d/jupyter_server_terminals.json
%files help
%{_docdir}/*
%changelog
* Wed Nov 1 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.4.4-1
- Init package