From 40bd2cec9f6fb7ed0fab2e3f84d6ecab1b3a23f33035e95f64c47ab56046e585 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 19 Feb 2019 05:56:36 +0000 Subject: [PATCH] Accepting request 677234 from home:jayvdb:moban - Activate test suite - Add minimum build dependency to match runtime dependency OBS-URL: https://build.opensuse.org/request/show/677234 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=63 --- python-Jinja2.changes | 6 ++++++ python-Jinja2.spec | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-Jinja2.changes b/python-Jinja2.changes index 77d8a8a..3bcdc70 100644 --- a/python-Jinja2.changes +++ b/python-Jinja2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 19 03:45:55 UTC 2019 - John Vandenberg + +- Activate test suite +- Add minimum build dependency to match runtime dependency + ------------------------------------------------------------------- Mon Dec 10 12:43:01 UTC 2018 - Tomáš Chvátal diff --git a/python-Jinja2.spec b/python-Jinja2.spec index 4151fe8..4ad893c 100644 --- a/python-Jinja2.spec +++ b/python-Jinja2.spec @@ -1,7 +1,7 @@ # # spec file for package python-Jinja2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,8 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: http://jinja.pocoo.org/ Source: https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz -BuildRequires: %{python_module MarkupSafe} +BuildRequires: %{python_module MarkupSafe >= 0.23} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -93,6 +94,9 @@ install -Dm644 ext/jinja.el %{buildroot}%{_datadir}/emacs/site-lisp/jinja.el # I %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif +%check +%python_exec -m pytest + %files %{python_files} %license LICENSE %doc AUTHORS README.rst CHANGES.rst artwork examples