Blame SPECS/python-sphinxcontrib-applehelp.spec

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