From 98114c7b022030ab4e8988604a7bc76aba5605b7 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Fri, 11 Aug 2023 14:20:00 -0400 Subject: [PATCH] update to 1.0.6, use modern macros --- .gitignore | 1 + python-sphinxcontrib-applehelp.spec | 21 ++++++++++++--------- sources | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 4f120e2..b5421e2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /sphinxcontrib-applehelp-*.tar.gz +/sphinxcontrib_applehelp-1.0.6.tar.gz diff --git a/python-sphinxcontrib-applehelp.spec b/python-sphinxcontrib-applehelp.spec index 74ca450..3e2f09f 100644 --- a/python-sphinxcontrib-applehelp.spec +++ b/python-sphinxcontrib-applehelp.spec @@ -4,8 +4,8 @@ %bcond_without check Name: python-%{pypi_name} -Version: 1.0.2 -Release: 15%{?dist} +Version: 1.0.6 +Release: 1%{?dist} Summary: Sphinx extension for Apple help books License: BSD-2-Clause URL: http://sphinx-doc.org/ @@ -14,13 +14,15 @@ BuildArch: noarch BuildRequires: gettext BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools %if %{with check} BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-sphinx >= 1:2 %endif +%generate_buildrequires +%pyproject_buildrequires + %description sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books. @@ -42,11 +44,11 @@ find -name '*.mo' -delete for po in $(find -name '*.po'); do msgfmt --output-file=${po%.po}.mo ${po} done -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install # Move language files to /usr/share pushd %{buildroot}%{python3_sitelib} @@ -60,7 +62,6 @@ rm -rf sphinxcontrib/applehelp/locales ln -s %{_datadir}/locale sphinxcontrib/applehelp/locales popd - %find_lang sphinxcontrib.applehelp @@ -74,11 +75,13 @@ popd %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 +* Fri Aug 11 2023 Tom Callaway - 1.0.6-1 +- update to 1.0.6 +- use modern macros + * Wed Aug 09 2023 Karolina Surma - 1.0.2-15 - Declare the license as an SPDX expression diff --git a/sources b/sources index ef20fc5..44acb33 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sphinxcontrib-applehelp-1.0.2.tar.gz) = 1325ac83ff15dd28d6f2791caf64e6c08d1dd2f0946dc8891f5c4d8fd062a1e8650c9c39a7459195ef41f3b425f5b8d6c5e277ea85621a36dd870ca5162508da +SHA512 (sphinxcontrib-applehelp-1.0.6.tar.gz) = bd1aef67e94a92eb77ee18488dcb39e310b5d2e847be41595bd0da6208be208a040f001acfaad51c383c774b9fb702dbc9c9d4d8e73d4f58432817734598a0f6