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