update to 1.0.6, use modern macros

This commit is contained in:
Tom Callaway 2023-08-11 14:20:00 -04:00
parent 38fa6314ff
commit 98114c7b02
3 changed files with 14 additions and 10 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/sphinxcontrib-applehelp-*.tar.gz /sphinxcontrib-applehelp-*.tar.gz
/sphinxcontrib_applehelp-1.0.6.tar.gz

View File

@ -4,8 +4,8 @@
%bcond_without check %bcond_without check
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.0.2 Version: 1.0.6
Release: 15%{?dist} Release: 1%{?dist}
Summary: Sphinx extension for Apple help books Summary: Sphinx extension for Apple help books
License: BSD-2-Clause License: BSD-2-Clause
URL: http://sphinx-doc.org/ URL: http://sphinx-doc.org/
@ -14,13 +14,15 @@ BuildArch: noarch
BuildRequires: gettext BuildRequires: gettext
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%if %{with check} %if %{with check}
BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-sphinx >= 1:2 BuildRequires: python%{python3_pkgversion}-sphinx >= 1:2
%endif %endif
%generate_buildrequires
%pyproject_buildrequires
%description %description
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books. 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 for po in $(find -name '*.po'); do
msgfmt --output-file=${po%.po}.mo ${po} msgfmt --output-file=${po%.po}.mo ${po}
done done
%py3_build %pyproject_wheel
%install %install
%py3_install %pyproject_install
# Move language files to /usr/share # Move language files to /usr/share
pushd %{buildroot}%{python3_sitelib} pushd %{buildroot}%{python3_sitelib}
@ -60,7 +62,6 @@ rm -rf sphinxcontrib/applehelp/locales
ln -s %{_datadir}/locale sphinxcontrib/applehelp/locales ln -s %{_datadir}/locale sphinxcontrib/applehelp/locales
popd popd
%find_lang sphinxcontrib.applehelp %find_lang sphinxcontrib.applehelp
@ -74,11 +75,13 @@ popd
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python3_sitelib}/sphinxcontrib/ %{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}-*.pth %{python3_sitelib}/sphinxcontrib_applehelp*.dist-info
%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}.egg-info/
%changelog %changelog
* Fri Aug 11 2023 Tom Callaway <spot@fedoraproject.org> - 1.0.6-1
- update to 1.0.6
- use modern macros
* Wed Aug 09 2023 Karolina Surma <ksurma@redhat.com> - 1.0.2-15 * Wed Aug 09 2023 Karolina Surma <ksurma@redhat.com> - 1.0.2-15
- Declare the license as an SPDX expression - Declare the license as an SPDX expression

View File

@ -1 +1 @@
SHA512 (sphinxcontrib-applehelp-1.0.2.tar.gz) = 1325ac83ff15dd28d6f2791caf64e6c08d1dd2f0946dc8891f5c4d8fd062a1e8650c9c39a7459195ef41f3b425f5b8d6c5e277ea85621a36dd870ca5162508da SHA512 (sphinxcontrib-applehelp-1.0.6.tar.gz) = bd1aef67e94a92eb77ee18488dcb39e310b5d2e847be41595bd0da6208be208a040f001acfaad51c383c774b9fb702dbc9c9d4d8e73d4f58432817734598a0f6