Blame SPECS/python-sphinxcontrib-qthelp.spec

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