From 222ce982afad1c04dec716ce836a441a34670a26f17f9f80fd43507666328c28 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 19 Jul 2018 15:55:13 +0000 Subject: [PATCH] - Clean up SPEC - Add missing BuildRequires OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=5 --- python-pyee.changes | 6 ++++++ python-pyee.spec | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/python-pyee.changes b/python-pyee.changes index 9de9509..875f705 100644 --- a/python-pyee.changes +++ b/python-pyee.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 19 15:54:33 UTC 2018 - mcepl@suse.com + +- Clean up SPEC +- Add missing BuildRequires + ------------------------------------------------------------------- Sun Mar 4 20:12:00 UTC 2018 - alarrosa@suse.com diff --git a/python-pyee.spec b/python-pyee.spec index 747102e..c75c230 100644 --- a/python-pyee.spec +++ b/python-pyee.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyee # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,18 +21,21 @@ Name: python-pyee Version: 5.0.0 Release: 0 -License: MIT Summary: A port of node.js's EventEmitter to python -Url: https://github.com/jfhbrook/pyee +License: MIT Group: Development/Languages/Python +URL: https://github.com/jfhbrook/pyee Source: https://files.pythonhosted.org/packages/source/p/pyee/pyee-%{version}.tar.gz Source99: https://raw.githubusercontent.com/jfhbrook/pyee/master/LICENSE # PATCH-FIX-UPSTREAM fix-build-requirements.patch Patch0: fix-build-requirements.patch -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} +BuildRequires: %{python_module hamcrest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module vcversioner} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch # SECTION test requirements %if %{with test} BuildRequires: %{python_module Twisted} @@ -40,9 +44,6 @@ BuildRequires: %{python_module pytest-runner} BuildRequires: python3-pytest-asyncio %endif # /SECTION -BuildRequires: fdupes -BuildArch: noarch - %python_subpackages %description @@ -61,7 +62,7 @@ cp %{SOURCE99} . %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} && %{suse_version} >= 1500 +%if %{with test} && 0%{?suse_version} >= 1500 %check # Only run tests for python3 %{python_expand # @@ -72,7 +73,6 @@ fi %endif %files %{python_files} -%defattr(-,root,root,-) %doc README.rst %license LICENSE %{python_sitelib}/*