From 5bd7aed0ace399062ae60f249af4594edc8617f3 Mon Sep 17 00:00:00 2001 From: iztokf Date: Apr 09 2022 20:30:36 +0000 Subject: Added conditional for tests --- diff --git a/python-tcxparser.spec b/python-tcxparser.spec index af37d47..a18bf01 100644 --- a/python-tcxparser.spec +++ b/python-tcxparser.spec @@ -11,7 +11,7 @@ attributes of sport activity.} Name: python-%{pretty_name} Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Tcxparser is a minimal parser for Garmin TCX file format License: BSD @@ -33,7 +33,6 @@ Summary: %{summary} %prep %autosetup -n %{pypi_name}-%{version} -rm -rf %{pypi_name}.egg-info %generate_buildrequires %pyproject_buildrequires -r @@ -47,13 +46,18 @@ rm -rf %{pypi_name}.egg-info %pyproject_save_files %{pretty_name} %check +%if %{with tests} %{python3} setup.py test +%endif %files -n python3-%{pretty_name} -f %{pyproject_files} %license LICENSE %doc README.rst AUTHORS.rst CHANGES.rst %changelog +* Sat Apr 9 2022 Iztok Fister Jr. - 2.2.0-2 +- Added conditional for tests + * Sun Jan 23 2022 Iztok Fister Jr. - 2.2.0-1 - New version of software - 2.2.0