Blame SPECS/python-sphinxcontrib-serializinghtml.spec

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