Declare i18n extra to map the upstream package structure

Stop requiring the explicit runtime dependencies when building with
Python 3. They're read from metadata.
This commit is contained in:
Karolina Surma 2021-11-10 09:38:20 +01:00
parent f7a716750b
commit 6f194bb41b

View File

@ -2,7 +2,7 @@
Name: python-jinja2 Name: python-jinja2
Version: 3.0.1 Version: 3.0.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: General purpose template engine Summary: General purpose template engine
License: BSD License: BSD
URL: https://palletsprojects.com/p/jinja/ URL: https://palletsprojects.com/p/jinja/
@ -91,10 +91,6 @@ BuildRequires: python3-Pallets-Sphinx-Themes
BuildRequires: python3-sphinxcontrib-log-cabinet BuildRequires: python3-sphinxcontrib-log-cabinet
BuildRequires: python3-sphinx-issues BuildRequires: python3-sphinx-issues
%endif %endif
Requires: python3-babel >= 0.8
Requires: python3-markupsafe >= 0.23
Requires: python3-setuptools
%{?python_provide:%python_provide python3-jinja2}
%description -n python3-jinja2 %description -n python3-jinja2
Jinja2 is a template engine written in pure Python. It provides a Jinja2 is a template engine written in pure Python. It provides a
@ -106,6 +102,8 @@ as Smarty or Django, you should feel right at home with Jinja2. It's
both designer and developer friendly by sticking to Python's both designer and developer friendly by sticking to Python's
principles and adding functionality useful for templating principles and adding functionality useful for templating
environments. environments.
%{?python_extras_subpkg:%python_extras_subpkg -n python3-jinja2 -i%{python3_sitelib}/Jinja2-*.egg-info i18n}
%endif # with python3 %endif # with python3
@ -184,6 +182,10 @@ PYTHONPATH=$(pwd)/src %{__python3} -m pytest tests
%changelog %changelog
* Wed Nov 10 2021 Karolina Surma <ksurma@redhat.com> - 3.0.1-3
- Don't explicitly declare runtime dependencies when building for Python 3
- Declare jinja2+i18n extra to map the upstream package structure
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2 * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild