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}
8df76bf
Version:        2.1.0
a7bd1f2
Release:        5%{?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
8df76bf
PYTHONPATH="$(pwd)" pytest-%{python3_version} -v tests
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
a7bd1f2
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
a7bd1f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
a7bd1f2
d557930
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
d557930
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
d557930
87d1c2a
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
87d1c2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
87d1c2a
fb80535
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 2.1.0-2
fb80535
- Rebuilt for Python 3.12
fb80535
8df76bf
* Tue Feb 07 2023 Julien Enselme <jujens@jujens.eu> - 2.1.0-1
8df76bf
- Update to 2.1.0
8df76bf
9df7a72
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
9df7a72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
9df7a72
b574c16
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8
b574c16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
b574c16
4255761
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.1-7
4255761
- Rebuilt for Python 3.11
4255761
35b91c9
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
35b91c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
35b91c9
cecfa7a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
cecfa7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
cecfa7a
30a48f7
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.1-4
30a48f7
- Rebuilt for Python 3.10
30a48f7
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