Blame SPECS/python-sphinxcontrib-devhelp.spec

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