From cd61fcd572812bc66fd1274fd5c1edcbc850b72a107a0842ba7a2049c5e641f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 24 Jan 2019 08:20:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachey?expand=0&rev=2 --- python-cachey.spec | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/python-cachey.spec b/python-cachey.spec index efe0724..eb0d045 100644 --- a/python-cachey.spec +++ b/python-cachey.spec @@ -1,7 +1,7 @@ # # spec file for package python-cachey # -# 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 # remain the property of their copyright owners, unless otherwise agreed @@ -12,34 +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-%{**}} -%bcond_without test Name: python-cachey Version: 0.1.1 Release: 0 Summary: Caching mindful of computation/storage costs License: BSD-3-Clause Group: Development/Languages/Python -Url: http://github.com/mrocklin/cachey/ +URL: http://github.com/mrocklin/cachey/ Source: https://files.pythonhosted.org/packages/source/c/cachey/cachey-%{version}.tar.gz # PATCH-FIX-UPSTREAM fix_cache_clear.patch - fix unit test error Patch0: fix_cache_clear.patch BuildRequires: %{python_module HeapDict} -BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module pytest} -%endif Requires: python-HeapDict -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -69,16 +63,12 @@ roughly linear amplification of repeated results. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} -} -%endif +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE.txt README.md +%license LICENSE.txt +%doc README.md %{python_sitelib}/* %changelog