!6 fix the package provider name

From: @luolu12 
Reviewed-by: @desert-sailor 
Signed-off-by: @desert-sailor
This commit is contained in:
openeuler-ci-bot 2023-08-25 02:45:46 +00:00 committed by Gitee
commit d7b350fe4e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,11 +1,11 @@
%global pypi_name hatch-jupyter-builder %global pypi_name hatch-jupyter-builder
%global source_name hatch_jupyter_builder %global source_name hatch_jupyter_builder
%global pypi_version 0.8.3
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: %{pypi_version} Version: 0.8.3
Release: 1 Release: 2
Summary: This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages. Summary: This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages.
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/jupyterlab/hatch-jupyter-builder URL: https://github.com/jupyterlab/hatch-jupyter-builder
@ -21,21 +21,21 @@ BuildRequires: python3-hatchling
%description %description
This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages. This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages.
%package -n python3-%{source_name} %package -n python3-%{pypi_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{source_name}} %{?python_provide:%python_provide python3-%{source_name}}
%package help %package help
Summary: Fix common misspellings in text files. Summary: Fix common misspellings in text files.
Provides: python3-%{source_name}-doc Provides: python3-%{pypi_name}-doc
%description help %description help
This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages. This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages.
%description -n python3-%{source_name} %description -n python3-%{pypi_name}
This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages. This provides a build hook plugin for Hatch that adds a build step for use with Jupyter packages.
%prep %prep
%autosetup -n %{source_name}-%{pypi_version} %autosetup -n %{source_name}-%{version}
%build %build
%pyproject_build %pyproject_build
@ -55,7 +55,7 @@ fi
popd popd
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
%files -n python3-%{source_name} %files -n python3-%{pypi_name}
%license LICENSE.txt %license LICENSE.txt
%doc README.md %doc README.md
%{python3_sitelib}/hatch_jupyter_builder* %{python3_sitelib}/hatch_jupyter_builder*
@ -66,5 +66,8 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Fri Aug 25 2023 luolu12 <luluoc@isoftstone.com> - 0.8.3-2
- Fix the provider name.
* Thu Aug 17 2023 luolu12 <luluoc@isoftstone.com> - 0.8.3-1 * Thu Aug 17 2023 luolu12 <luluoc@isoftstone.com> - 0.8.3-1
- Initial package. - Initial package.