diff --git a/python-htmlmin.changes b/python-htmlmin.changes index c8bf1c0..af84072 100644 --- a/python-htmlmin.changes +++ b/python-htmlmin.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 5 10:48:53 UTC 2019 - pgajdos@suse.com + +- turn the testsuite on + ------------------------------------------------------------------- Tue Aug 21 16:06:29 UTC 2018 - alarrosa@suse.com diff --git a/python-htmlmin.spec b/python-htmlmin.spec index 929dfbc..91ac223 100644 --- a/python-htmlmin.spec +++ b/python-htmlmin.spec @@ -1,7 +1,7 @@ # # spec file for package python-htmlmin # -# 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 @@ -12,21 +12,28 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-htmlmin Version: 0.1.12 Release: 0 -License: BSD-3-Clause Summary: An HTML Minifier -Url: https://htmlmin.readthedocs.io/en/latest/ +License: BSD-3-Clause Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/h/htmlmin/htmlmin-%{version}.tar.gz -BuildRequires: python-rpm-macros +Url: https://htmlmin.readthedocs.io/en/latest/ +Source0: https://files.pythonhosted.org/packages/source/h/htmlmin/htmlmin-%{version}.tar.gz +# https://github.com/mankyd/htmlmin/issues/51 +Source1: tests.tar.bz2 BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-setuptools +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION BuildArch: noarch %python_subpackages @@ -35,7 +42,7 @@ BuildArch: noarch A configurable HTML Minifier with safety features. %prep -%setup -q -n htmlmin-%{version} +%setup -q -n htmlmin-%{version} -a1 # command.py is installed without exec permissions (and they're actually not needed) so # we remove the shebang sed -ie "s,#!/usr/bin/env python,##!/usr/bin/python3," htmlmin/command.py @@ -47,6 +54,9 @@ sed -ie "s,#!/usr/bin/env python,##!/usr/bin/python3," htmlmin/command.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.rst %license LICENSE diff --git a/tests.tar.bz2 b/tests.tar.bz2 new file mode 100644 index 0000000..29cf0c9 --- /dev/null +++ b/tests.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0e49e6414779fac44ac985e926b5c4177f46f68ec963a70475e3ab884fb011c +size 83857