Blame SPECS/python-sphinxcontrib-htmlhelp.spec

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