- Sort out with spec-cleaner

- Remove bcond_with test conditional

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygaljs?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal 2019-03-26 09:29:11 +00:00 committed by Git OBS Bridge
parent 1087659d27
commit 41f46030d5
2 changed files with 16 additions and 16 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 26 09:28:56 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Sort out with spec-cleaner
- Remove bcond_with test conditional
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 19 00:32:18 UTC 2017 - toddrme2178@gmail.com Thu Oct 19 00:32:18 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pygaljs # spec file for package python-pygaljs
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,28 +12,25 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pygaljs Name: python-pygaljs
Version: 1.0.1 Version: 1.0.1
Release: 0 Release: 0
License: LGPL-3.0
Summary: Python package providing assets pygaljs Summary: Python package providing assets pygaljs
Url: https://github.com/ionelmc/python-pygaljs License: LGPL-3.0-only
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/ionelmc/python-pygaljs
Source: https://files.pythonhosted.org/packages/source/p/pygaljs/pygaljs-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pygaljs/pygaljs-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
%if %{with test} BuildRequires: python-rpm-macros
BuildRequires: %{python_module pytest}
%endif
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@ -49,15 +46,12 @@ Python package providing assets from https://github.com/Kozea/pygal.js
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
%python_expand py.test-%{$python_bin_suffix} %pytest
%endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE
%doc CHANGELOG.rst LICENSE README.rst %doc CHANGELOG.rst README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog