83 lines
1.8 KiB
RPMSpec
83 lines
1.8 KiB
RPMSpec
%bcond_with tests
|
|
|
|
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name nbformat
|
|
|
|
%global common_description %{expand:
|
|
This package contains the base implementation of the Jupyter Notebook format,
|
|
and Python APIs for working with notebooks.}
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 5.9.2
|
|
Release: 1
|
|
Summary: The Jupyter Notebook format.
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/jupyter/nbformat
|
|
Source0: %{pypi_source %{pypi_name}}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-hatch-nodejs-version
|
|
BuildRequires: python3-fastjsonschema
|
|
BuildRequires: python3-jsonschema
|
|
BuildRequires: python3-jupyter-core
|
|
BuildRequires: python3-traitlets
|
|
|
|
%if %{with tests}
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-testpath
|
|
BuildRequires: python3-pre-commit
|
|
BuildRequires: python3-pep440
|
|
%endif
|
|
|
|
%description
|
|
%{common_description}
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-%{pypi_name}
|
|
%{common_description}
|
|
|
|
%package help
|
|
Summary: %{name} documentation
|
|
|
|
%description help
|
|
Documentation for %{name}
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%if %{with tests}
|
|
%check
|
|
%pytest
|
|
%endif
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%doc CHANGELOG.md README.md
|
|
%license LICENSE
|
|
%{_bindir}/jupyter-trust
|
|
%{python3_sitelib}/%{pypi_name}
|
|
%{python3_sitelib}/%{pypi_name}-*.dist-info/
|
|
|
|
%files help
|
|
%doc docs
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Fri Oct 13 2023 wen-minjuan <mjwen@isoftstone.com> - 5.9.2-1
|
|
- Upgrade version to 5.9.2-1
|
|
|
|
* Mon Jul 10 2023 Dongxing Wang <dxwangk@isoftstone.com> - 5.9.0-1
|
|
- Initial package. |