Update package to version 2.0.5

This commit is contained in:
jxy_git 2024-03-21 16:27:47 +08:00
parent 46658fbd4a
commit 73adaae9e7
3 changed files with 9 additions and 12 deletions

View File

@ -3,12 +3,12 @@
%bcond_without check %bcond_without check
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 2.0.1 Version: 2.0.5
Release: 1 Release: 1
Summary: Sphinx extension for HTML help files Summary: Sphinx extension for HTML help files
License: BSD-2-Clause License: BSD-2-Clause
URL: http://sphinx-doc.org/ URL: http://sphinx-doc.org/
Source0: https://files.pythonhosted.org/packages/b3/47/64cff68ea3aa450c373301e5bebfbb9fce0a3e70aca245fcadd4af06cd75/sphinxcontrib-htmlhelp-2.0.1.tar.gz Source0: https://files.pythonhosted.org/packages/8a/03/2f9d699fbfdf03ecb3b6d0e2a268a8998d009f2a9f699c2dcc936899257d/sphinxcontrib_htmlhelp-2.0.5.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: gettext BuildRequires: gettext
@ -16,6 +16,7 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-wheel BuildRequires: python3-wheel
BuildRequires: python3-flit-core
%if %{with check} %if %{with check}
BuildRequires: python3-pytest BuildRequires: python3-pytest
@ -26,7 +27,6 @@ BuildRequires: python3-html5lib
%description %description
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files. sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
%package -n python3-%{pypi_name} %package -n python3-%{pypi_name}
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}} %{?python_provide:%python_provide python3-%{pypi_name}}
@ -34,21 +34,18 @@ Summary: %{summary}
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name}
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files. sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n sphinxcontrib_htmlhelp-%{version}
find -name '*.mo' -delete find -name '*.mo' -delete
%build %build
for po in $(find -name '*.po'); do for po in $(find -name '*.po'); do
msgfmt --output-file=${po%.po}.mo ${po} msgfmt --output-file=${po%.po}.mo ${po}
done done
%pyproject_build %pyproject_build
%install %install
%pyproject_install sphinxcontrib-htmlhelp==%{version} %pyproject_install
# Move language files to /usr/share # Move language files to /usr/share
pushd %{buildroot}%{python3_sitelib} pushd %{buildroot}%{python3_sitelib}
@ -62,23 +59,23 @@ rm -rf sphinxcontrib/htmlhelp/locales
ln -s %{_datadir}/locale sphinxcontrib/htmlhelp/locales ln -s %{_datadir}/locale sphinxcontrib/htmlhelp/locales
popd popd
%find_lang sphinxcontrib.htmlhelp %find_lang sphinxcontrib.htmlhelp
%if %{with check} %if %{with check}
%check %check
%{__python3} tests/conftest.py %{__python3} tests/conftest.py
%endif %endif
%files -n python3-%{pypi_name} -f sphinxcontrib.htmlhelp.lang %files -n python3-%{pypi_name} -f sphinxcontrib.htmlhelp.lang
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python3_sitelib}/* %{python3_sitelib}/*
%changelog %changelog
* Thu Mar 21 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 2.0.5-1
- Update package to version 2.0.5
- Allow external roles to reference object types
* Thu May 04 2023 wulei <wu_lei@hoperun.com> - 2.0.1-1 * Thu May 04 2023 wulei <wu_lei@hoperun.com> - 2.0.1-1
- Update to 2.0.1 - Update to 2.0.1

Binary file not shown.

Binary file not shown.