Blame python-sphinxcontrib-serializinghtml.spec

4ad6794
%global pypi_name sphinxcontrib-serializinghtml
4ad6794
4ad6794
# when bootstrapping sphinx, we cannot run tests yet
8d2c76f
%bcond_without check
4ad6794
4ad6794
Name:           python-%{pypi_name}
da7a5b4
Version:        1.1.5
c54fcbe
Release:        2%{?dist}
4ad6794
Summary:        Sphinx extension for serialized HTML
4ad6794
License:        BSD
4ad6794
URL:            http://sphinx-doc.org/
4ad6794
Source0:        %{pypi_source}
4ad6794
BuildArch:      noarch
4ad6794
4ad6794
BuildRequires:  gettext
4bfaef7
BuildRequires:  python%{python3_pkgversion}-devel
4bfaef7
BuildRequires:  python%{python3_pkgversion}-setuptools
4ad6794
4ad6794
%if %{with check}
4bfaef7
BuildRequires:  python%{python3_pkgversion}-pytest
4bfaef7
BuildRequires:  python%{python3_pkgversion}-sphinx >= 1:2
4ad6794
%endif
4ad6794
4ad6794
%description
4ad6794
sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized"
4ad6794
HTML files (json and pickle).
4ad6794
4ad6794
4bfaef7
%package -n     python%{python3_pkgversion}-%{pypi_name}
4ad6794
Summary:        %{summary}
4bfaef7
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
4ad6794
4bfaef7
%description -n python%{python3_pkgversion}-%{pypi_name}
4ad6794
sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized"
4ad6794
HTML files (json and pickle).
4ad6794
4ad6794
4ad6794
%prep
4ad6794
%autosetup -n %{pypi_name}-%{version}
4ad6794
find -name '*.mo' -delete
4ad6794
4ad6794
4ad6794
%build
4ad6794
for po in $(find -name '*.po'); do
4ad6794
  msgfmt --output-file=${po%.po}.mo ${po}
4ad6794
done
4ad6794
%py3_build
4ad6794
4ad6794
4ad6794
%install
4ad6794
%py3_install
4ad6794
4ad6794
# Move language files to /usr/share
4ad6794
pushd %{buildroot}%{python3_sitelib}
4ad6794
for lang in `find sphinxcontrib/serializinghtml/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
4ad6794
do
4ad6794
  test $lang == __pycache__ && continue
4ad6794
  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
4ad6794
  mv sphinxcontrib/serializinghtml/locales/$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
4ad6794
done
4ad6794
rm -rf sphinxcontrib/serializinghtml/locales
4ad6794
ln -s %{_datadir}/locale sphinxcontrib/serializinghtml/locales
4ad6794
popd
4ad6794
4ad6794
4ad6794
%find_lang sphinxcontrib.serializinghtml
4ad6794
4ad6794
4ad6794
%if %{with check}
4ad6794
%check
19f4396
%pytest
4ad6794
%endif
4ad6794
4ad6794
4bfaef7
%files -n python%{python3_pkgversion}-%{pypi_name} -f sphinxcontrib.serializinghtml.lang
4ad6794
%license LICENSE
4ad6794
%doc README.rst
4ad6794
%{python3_sitelib}/sphinxcontrib/
4ad6794
%{python3_sitelib}/sphinxcontrib_serializinghtml-%{version}-py%{python3_version}-*.pth
4ad6794
%{python3_sitelib}/sphinxcontrib_serializinghtml-%{version}-py%{python3_version}.egg-info/
4ad6794
4ad6794
4ad6794
%changelog
c54fcbe
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
c54fcbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c54fcbe
da7a5b4
* Fri Jun 11 2021 Karolina Surma <ksurma@redhat.com> - 1.1.5-1
da7a5b4
- Update to 1.1.5
da7a5b4
Resolves: rhbz#1963359
da7a5b4
ab475f5
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.1.4-5
ab475f5
- Rebuilt for Python 3.10
ab475f5
40b6797
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.1.4-4
40b6797
- Bootstrap for Python 3.10
40b6797
d84af23
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-3
d84af23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d84af23
a4752a4
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-2
a4752a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a4752a4
19f4396
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.1.4-1
19f4396
- Update to 1.1.4 (#1808637)
19f4396
ca120bc
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-8
ca120bc
- Rebuilt for Python 3.9
ca120bc
1a86df5
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-7
1a86df5
- Bootstrap for Python 3.9
1a86df5
4a6fee1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-6
4a6fee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4a6fee1
f7db941
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-5
f7db941
- Rebuilt for Python 3.8.0rc1 (#1748018)
f7db941
f7eff0d
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-4
f7eff0d
- Rebuilt for Python 3.8
f7eff0d
4387afb
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-3
4387afb
- Bootstrap for Python 3.8
4387afb
4ce3d4b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
4ce3d4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4ce3d4b
7380727
* Mon May 20 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.3-1
7380727
- Update to 1.1.3 (#1697444)
7380727
4ad6794
* Mon Mar 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-1
514fbb8
- Initial package.