13 Star 0 Fork 2

ocs-upgrade/python-sphinxcontrib-htmlhelp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-sphinxcontrib-htmlhelp.spec 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-09-23 06:11 . Upgrade to version 2.1.0
%bcond_with python_bootstrap
%global pypi_name sphinxcontrib-htmlhelp
Summary: Sphinx extension for HTML help files
Name: python-%{pypi_name}
Version: 2.1.0
Release: 1%{?dist}
License: BSD
URL: http://sphinx-doc.org/
Source0: https://github.com/sphinx-doc/%{pypi_name}/archive/refs/tags/%{version}.tar.gz
BuildRequires: gettext python%{python3_pkgversion}-devel python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-pytest python%{python3_pkgversion}-sphinx
BuildRequires: python%{python3_pkgversion}-html5lib
BuildArch: noarch
%description
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: Sphinx extension for HTML help files
%description -n python%{python3_pkgversion}-%{pypi_name}
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.
%prep
%autosetup -n %{pypi_name}-%{version}
find -name '*.mo' -delete
%generate_buildrequires
%pyproject_buildrequires
%build
for po in $(find -name '*.po'); do
msgfmt --output-file=${po%.po}.mo ${po}
done
%pyproject_wheel
%install
%pyproject_install
pushd %{buildroot}%{python3_sitelib}
for lang in `find sphinxcontrib/htmlhelp/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
test $lang == __pycache__ && continue
install -D sphinxcontrib/htmlhelp/locales/$lang/LC_MESSAGES/*.mo -t %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done
rm -rf sphinxcontrib/htmlhelp/locales
ln -s %{_datadir}/locale sphinxcontrib/htmlhelp/locales
popd
%find_lang sphinxcontrib.htmlhelp
%check
# just close test when bootstrap build
%if %{without python_bootstrap}
%{__python3} -m pytest
%endif
%files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.htmlhelp.lang
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_htmlhelp*.dist-info
%changelog
* Mon Sep 23 2024 Upgrade Robot <upbot@opencloudos.tech> - 2.1.0-1
- Upgrade to version 2.1.0
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.3-2
- Rebuilt for loongarch release
* Fri Sep 22 2023 Shuo Wang <abushwang@tencent.com> - 2.0.3-1
- update to 2.0.3
* Tue Sep 19 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.0-6
- Rebuilt for python 3.11
* Tue Sep 12 2023 Shuo Wang <abushwang@tencent.com> - 2.0.0-5
- add python_bootstrap for python update
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.0-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.0-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 2.0.0-2
- Rebuilt for OpenCloudOS Stream 23
* Mon Feb 13 2023 Shuo Wang <abushwang@tencent.com> - 2.0.0-1
- initial build
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-upgrade/python-sphinxcontrib-htmlhelp.git
git@gitee.com:ocs-upgrade/python-sphinxcontrib-htmlhelp.git
ocs-upgrade
python-sphinxcontrib-htmlhelp
python-sphinxcontrib-htmlhelp
master

搜索帮助