2011-07-20 20:33:49 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Jinja2
|
|
|
|
#
|
2021-02-09 16:02:01 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-07-20 20:33:49 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-07-21 11:18:40 +00:00
|
|
|
|
2018-12-04 13:35:16 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-20 20:33:49 +00:00
|
|
|
#
|
|
|
|
|
2011-07-21 11:18:40 +00:00
|
|
|
|
2020-02-21 18:56:40 +00:00
|
|
|
%ifarch %{ix86} armv7l
|
|
|
|
%bcond_with test
|
2020-04-08 12:00:35 +00:00
|
|
|
%else
|
|
|
|
%bcond_without test
|
2020-02-21 18:56:40 +00:00
|
|
|
%endif
|
2021-07-09 14:13:55 +00:00
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
2021-06-14 18:34:39 +00:00
|
|
|
%define skip_python2 1
|
2011-07-20 20:33:49 +00:00
|
|
|
Name: python-Jinja2
|
2021-05-31 22:48:15 +00:00
|
|
|
Version: 3.0.1
|
2011-09-22 09:14:51 +00:00
|
|
|
Release: 0
|
2019-04-15 09:38:14 +00:00
|
|
|
Summary: A template engine written in pure Python
|
2011-09-22 09:14:51 +00:00
|
|
|
License: BSD-3-Clause
|
2021-06-21 08:06:28 +00:00
|
|
|
URL: https://jinja.palletsprojects.com
|
2017-03-21 16:07:46 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
|
2019-02-19 05:56:36 +00:00
|
|
|
BuildRequires: %{python_module MarkupSafe >= 0.23}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-05 05:32:48 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-10-07 13:42:06 +00:00
|
|
|
BuildRequires: dos2unix
|
2012-02-23 13:44:43 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-05 05:32:48 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 17:15:42 +00:00
|
|
|
Requires: python-Babel >= 0.8
|
|
|
|
Requires: python-MarkupSafe >= 0.23
|
2020-04-10 10:39:49 +00:00
|
|
|
# Do not declare buildarch as the tests are arch specific
|
|
|
|
#BuildArch: noarch
|
2021-07-09 14:13:55 +00:00
|
|
|
Provides: python-jinja2 = %{version}-%{release}
|
|
|
|
Obsoletes: python-jinja2 < %{version}-%{release}
|
2017-04-05 05:32:48 +00:00
|
|
|
%python_subpackages
|
2011-07-20 20:33:49 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Jinja2 is a template engine written in pure Python. It provides a Django
|
|
|
|
inspired non-XML syntax but supports inline expressions and an optional
|
2019-10-07 13:42:06 +00:00
|
|
|
sandboxed environment.
|
2011-07-20 20:33:49 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Jinja2-%{version}
|
2019-10-07 13:42:06 +00:00
|
|
|
dos2unix LICENSE.rst # Fix wrong EOL encoding
|
2011-07-20 20:33:49 +00:00
|
|
|
|
|
|
|
%build
|
2017-04-05 05:32:48 +00:00
|
|
|
%python_build
|
2011-07-20 20:33:49 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-05 05:32:48 +00:00
|
|
|
%python_install
|
2018-12-10 12:43:13 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-07-20 20:33:49 +00:00
|
|
|
|
2019-02-19 05:56:36 +00:00
|
|
|
%check
|
2020-04-08 12:02:08 +00:00
|
|
|
%if %{with test}
|
2019-04-13 09:56:36 +00:00
|
|
|
%pytest
|
2020-02-21 18:56:40 +00:00
|
|
|
%endif
|
2019-02-19 05:56:36 +00:00
|
|
|
|
2017-04-05 05:32:48 +00:00
|
|
|
%files %{python_files}
|
2019-10-07 13:42:06 +00:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc README.rst CHANGES.rst artwork examples
|
2014-05-09 08:03:23 +00:00
|
|
|
%{python_sitelib}/jinja2
|
2015-07-22 14:50:36 +00:00
|
|
|
%{python_sitelib}/Jinja2-%{version}-py%{python_version}.egg-info
|
2011-07-20 20:33:49 +00:00
|
|
|
|
|
|
|
%changelog
|