diff --git a/python-sphinxcontrib-applehelp.spec b/python-sphinxcontrib-applehelp.spec index 4d61cf7d3a4b7c8ff06bfff29ac449ae4f7967d3..151fabe6ff16e74e539c6f28495d7e26c7c54894 100644 --- a/python-sphinxcontrib-applehelp.spec +++ b/python-sphinxcontrib-applehelp.spec @@ -4,11 +4,11 @@ Summary: Sphinx extension for Apple help books Name: python-%{pypi_name} -Version: 1.0.2 -Release: 6%{?dist} +Version: 1.0.6 +Release: 1%{?dist} License: BSD URL: http://sphinx-doc.org/ -Source0: %{pypi_source} +Source0: https://github.com/sphinx-doc/sphinxcontrib-applehelp/archive/refs/tags/%{version}.tar.gz BuildRequires: gettext python%{python3_pkgversion}-devel python%{python3_pkgversion}-sphinx BuildRequires: python%{python3_pkgversion}-setuptools python%{python3_pkgversion}-pytest @@ -28,14 +28,18 @@ sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books. %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 -%py3_build + +%pyproject_wheel %install -%py3_install +%pyproject_install pushd %{buildroot}%{python3_sitelib} for lang in `find sphinxcontrib/applehelp/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`; @@ -56,13 +60,16 @@ popd %endif %files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.applehelp.lang + %license LICENSE %doc README.rst %{python3_sitelib}/sphinxcontrib/ -%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}-*.pth -%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/sphinxcontrib_applehelp*.dist-info %changelog +* Thu Sep 21 2023 Shuo Wang - 1.0.6-1 +- update to 1.0.6 + * Tue Sep 19 2023 OpenCloudOS Release Engineering - 1.0.2-6 - Rebuilt for python 3.11 diff --git a/sources b/sources index ef20fc5383ea0e6c14daeea06b1c516fc62f0c6e..8466bc5c02d861e156798aa5a97a8fb874ed07d7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sphinxcontrib-applehelp-1.0.2.tar.gz) = 1325ac83ff15dd28d6f2791caf64e6c08d1dd2f0946dc8891f5c4d8fd062a1e8650c9c39a7459195ef41f3b425f5b8d6c5e277ea85621a36dd870ca5162508da +SHA512 (1.0.6.tar.gz) = 0f4d6129ad2133138d6c7d63de6fa2bbfd1622b2d8c23ef265d4e572a65c4d5ea93b832644980cbeab447ecfc3725c5d3b282208408bd2faefcdecec765f39ce