8db3f6c
%global pypi_name sphinx-intl
8db3f6c
%global srcname sphinx_intl
8db3f6c
%global cmdname sphinx-intl
8db3f6c
%global project_owner sphinx-doc
8db3f6c
%global github_name sphinx-intl
8db3f6c
%global desc sphinx-intl is a utility tool that provides several features that make it easy \
8db3f6c
to translate and to apply translation to Sphinx generated document. Optional: \
8db3f6c
support the Transifex service for translation with Sphinx (not packaged yet).
8db3f6c
8db3f6c
8db3f6c
Name:           python-%{pypi_name}
cd66c8b
Version:        2.0.1
010ae82
Release:        3%{?dist}
8db3f6c
Summary:        Sphinx utility that make it easy to translate and to apply translation
8db3f6c
8db3f6c
License:        BSD
8db3f6c
URL:            https://pypi.python.org/pypi/%{pypi_name}
a4e22a7
Source0:        https://github.com/%{project_owner}/%{github_name}/archive/%{version}/%{github_name}-%{version}.tar.gz
825e664
8db3f6c
BuildArch:      noarch
8db3f6c
8db3f6c
%description
8db3f6c
%desc
8db3f6c
8db3f6c
8db3f6c
%package -n     python%{python3_pkgversion}-%{pypi_name}
8db3f6c
Summary:        %{summary}
8db3f6c
BuildArch:      noarch
8db3f6c
BuildRequires:  python%{python3_pkgversion}-devel
8db3f6c
BuildRequires:  python%{python3_pkgversion}-setuptools
8db3f6c
BuildRequires:  python%{python3_pkgversion}-pytest
8db3f6c
BuildRequires:  python%{python3_pkgversion}-six
8db3f6c
BuildRequires:  python%{python3_pkgversion}-click
8db3f6c
BuildRequires:  python%{python3_pkgversion}-babel
8db3f6c
BuildRequires:  python%{python3_pkgversion}-sphinx
682266f
BuildRequires:  python%{python3_pkgversion}-mock
8db3f6c
Requires:       python%{python3_pkgversion}-setuptools
8db3f6c
Requires:       python%{python3_pkgversion}-six
8db3f6c
Requires:       python%{python3_pkgversion}-click
8db3f6c
Requires:       python%{python3_pkgversion}-babel
8db3f6c
Requires:       python%{python3_pkgversion}-sphinx
f6ab037
Conflicts:      python2-%{pypi_name} < 0.9.11-6
8db3f6c
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
8db3f6c
8db3f6c
%description -n python%{python3_pkgversion}-%{pypi_name}
8db3f6c
%desc
8db3f6c
8db3f6c
8db3f6c
%prep
825e664
%autosetup -n %{pypi_name}-%{version} -p1
8db3f6c
# Correct line encoding in README.rst
8db3f6c
sed -i 's/\r$//' README.rst
8db3f6c
8db3f6c
8db3f6c
%build
8db3f6c
%py3_build
8db3f6c
8db3f6c
8db3f6c
%install
8db3f6c
%py3_install
8db3f6c
pushd %{buildroot}%{_bindir}
8db3f6c
mv %{cmdname} %{cmdname}-%{python3_version}
8db3f6c
ln -s %{cmdname}-%{python3_version} %{cmdname}-3
f6ab037
ln -s %{cmdname}-3 %{cmdname}
8db3f6c
popd
8db3f6c
8db3f6c
8db3f6c
%check
8db3f6c
# Transifex is not packaged. Remove tests that depens on it.
8db3f6c
rm tests/test_*transifex*.py
8db3f6c
PYTHONPATH="$(pwd)" py.test-%{python3_version} -v .
8db3f6c
8db3f6c
8db3f6c
8db3f6c
%files -n python%{python3_pkgversion}-%{pypi_name}
8db3f6c
%license LICENSE
8db3f6c
%doc README.rst
8db3f6c
%{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/
8db3f6c
%{python3_sitelib}/%{srcname}/
8db3f6c
%{_bindir}/%{cmdname}-3*
f6ab037
%{_bindir}/%{cmdname}
8db3f6c
8db3f6c
8db3f6c
%changelog
010ae82
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
010ae82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
010ae82
393cfd5
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
393cfd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
393cfd5
cd66c8b
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 2.0.1-1
cd66c8b
- Update to 2.0.1
cd66c8b
5d3071b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-6
5d3071b
- Rebuilt for Python 3.9
5d3071b
f32a933
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
f32a933
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f32a933
3a4a765
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-4
3a4a765
- Rebuilt for Python 3.8.0rc1 (#1748018)
3a4a765
a3c74af
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-3
a3c74af
- Rebuilt for Python 3.8
a3c74af
991577a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
991577a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
991577a
a4e22a7
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 2.0.0-1
a4e22a7
- Update to 2.0.0
a4e22a7
f6ab037
* Wed Mar 06 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.11-6
f6ab037
- Subpackage python2-sphinx-intl has been removed
f6ab037
  See https://fedoraproject.org/wiki/Changes/Sphinx2
f6ab037
71565f1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-5
71565f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
71565f1
f92c5b8
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.11-4
f92c5b8
- Drop explicit locale setting
f92c5b8
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
f92c5b8
2cdf501
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-3
2cdf501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2cdf501
49f1edb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.11-2
49f1edb
- Rebuilt for Python 3.7
49f1edb
6b3a013
* Mon Feb 19 2018 Julien Enselme <jujens@jujens.eu> - 0.9.11-1
6b3a013
- Update to 0.9.11
6b3a013
6e7e31b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.10-3.git20cd0d2
6e7e31b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6e7e31b
af2295b
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.10-2.git20cd0d2
af2295b
- Update Python 2 dependency declarations to new packaging standards
af2295b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
af2295b
0a11cbb
* Thu Sep 14 2017 Julien Enselme <jujens@jujens.eu> - 0.9.10-1.git20cd0d2
0a11cbb
- Update to 0.9.10
0a11cbb
7400523
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9-6.gitbf6edc2
7400523
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7400523
83758d2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9-5.gitbf6edc2
83758d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
83758d2
871e872
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.9-4.gitbf6edc2
871e872
- Rebuild for Python 3.6
871e872
8db3f6c
* Sun Oct 09 2016 Julien Enselme <jujens@jujens.eu> - 0.9.9-3.gitbf6edc2
8db3f6c
- Remove duplicated pattern in %%files
8db3f6c
8db3f6c
* Wed Oct 05 2016 Julien Enselme <jujens@jujens.eu> - 0.9.9-2.gitbf6edc2
8db3f6c
- Add LC_ALL for tests to pass in build env
8db3f6c
8db3f6c
* Wed Sep 14 2016 Julien Enselme <jujens@jujens.eu> - 0.9.9-1.gitbf6edc2
8db3f6c
- Initial packaging