|
|
d7cddd |
%global pypi_name sphinxcontrib-applehelp
|
|
|
d7cddd |
|
|
|
d7cddd |
# when bootstrapping sphinx, we cannot run tests yet
|
|
|
d7cddd |
%bcond_without check
|
|
|
d7cddd |
|
|
|
d7cddd |
Name: python-%{pypi_name}
|
|
|
d7cddd |
Version: 1.0.2
|
|
|
d7cddd |
Release: 5%{?dist}
|
|
|
d7cddd |
Summary: Sphinx extension for Apple help books
|
|
|
d7cddd |
License: BSD
|
|
|
d7cddd |
URL: http://sphinx-doc.org/
|
|
|
d7cddd |
Source0: %{pypi_source}
|
|
|
d7cddd |
BuildArch: noarch
|
|
|
d7cddd |
|
|
|
d7cddd |
BuildRequires: gettext
|
|
|
d7cddd |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
d7cddd |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
d7cddd |
|
|
|
d7cddd |
%if %{with check}
|
|
|
d7cddd |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
d7cddd |
BuildRequires: python%{python3_pkgversion}-sphinx >= 1:2
|
|
|
d7cddd |
%endif
|
|
|
d7cddd |
|
|
|
d7cddd |
%description
|
|
|
d7cddd |
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%package -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
d7cddd |
Summary: %{summary}
|
|
|
d7cddd |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
|
|
d7cddd |
|
|
|
d7cddd |
%description -n python%{python3_pkgversion}-%{pypi_name}
|
|
|
d7cddd |
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%prep
|
|
|
d7cddd |
%autosetup -n %{pypi_name}-%{version}
|
|
|
d7cddd |
find -name '*.mo' -delete
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%build
|
|
|
d7cddd |
for po in $(find -name '*.po'); do
|
|
|
d7cddd |
msgfmt --output-file=${po%.po}.mo ${po}
|
|
|
d7cddd |
done
|
|
|
d7cddd |
%py3_build
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%install
|
|
|
d7cddd |
%py3_install
|
|
|
d7cddd |
|
|
|
d7cddd |
# Move language files to /usr/share
|
|
|
d7cddd |
pushd %{buildroot}%{python3_sitelib}
|
|
|
d7cddd |
for lang in `find sphinxcontrib/applehelp/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
|
|
|
d7cddd |
do
|
|
|
d7cddd |
test $lang == __pycache__ && continue
|
|
|
d7cddd |
install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
|
|
|
d7cddd |
mv sphinxcontrib/applehelp/locales/$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
|
|
|
d7cddd |
done
|
|
|
d7cddd |
rm -rf sphinxcontrib/applehelp/locales
|
|
|
d7cddd |
ln -s %{_datadir}/locale sphinxcontrib/applehelp/locales
|
|
|
d7cddd |
popd
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%find_lang sphinxcontrib.applehelp
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%if %{with check}
|
|
|
d7cddd |
%check
|
|
|
d7cddd |
%pytest
|
|
|
d7cddd |
%endif
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.applehelp.lang
|
|
|
d7cddd |
%license LICENSE
|
|
|
d7cddd |
%doc README.rst
|
|
|
d7cddd |
%{python3_sitelib}/sphinxcontrib/
|
|
|
d7cddd |
%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}-*.pth
|
|
|
d7cddd |
%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}.egg-info/
|
|
|
d7cddd |
|
|
|
d7cddd |
|
|
|
d7cddd |
%changelog
|
|
|
d7cddd |
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-5
|
|
|
d7cddd |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
d7cddd |
Related: rhbz#1991688
|
|
|
d7cddd |
|
|
|
d7cddd |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-4
|
|
|
d7cddd |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
d7cddd |
|
|
|
d7cddd |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
|
|
|
d7cddd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
d7cddd |
|
|
|
d7cddd |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
|
|
|
d7cddd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
d7cddd |
|
|
|
d7cddd |
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.0.2-1
|
|
|
d7cddd |
- Update to 1.0.2 (#1808632)
|
|
|
d7cddd |
|
|
|
d7cddd |
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-8
|
|
|
d7cddd |
- Rebuilt for Python 3.9
|
|
|
d7cddd |
|
|
|
d7cddd |
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-7
|
|
|
d7cddd |
- Bootstrap for Python 3.9
|
|
|
d7cddd |
|
|
|
d7cddd |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
|
|
|
d7cddd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
d7cddd |
|
|
|
d7cddd |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-5
|
|
|
d7cddd |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
d7cddd |
|
|
|
d7cddd |
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-4
|
|
|
d7cddd |
- Rebuilt for Python 3.8
|
|
|
d7cddd |
|
|
|
d7cddd |
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-3
|
|
|
d7cddd |
- Bootstrap for Python 3.8
|
|
|
d7cddd |
|
|
|
d7cddd |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
|
d7cddd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
d7cddd |
|
|
|
d7cddd |
* Fri Mar 01 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-1
|
|
|
d7cddd |
- Initial package
|