14
0
forked from pool/python-pyee

- Clean up SPEC

- Add missing BuildRequires

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyee?expand=0&rev=5
This commit is contained in:
2018-07-19 15:55:13 +00:00
committed by Git OBS Bridge
parent 18d9cafcf7
commit 222ce982af
2 changed files with 15 additions and 9 deletions

View File

@@ -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 Sun Mar 4 20:12:00 UTC 2018 - alarrosa@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyee # 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 # 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
@@ -13,6 +13,7 @@
# 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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -20,18 +21,21 @@
Name: python-pyee Name: python-pyee
Version: 5.0.0 Version: 5.0.0
Release: 0 Release: 0
License: MIT
Summary: A port of node.js's EventEmitter to python Summary: A port of node.js's EventEmitter to python
Url: https://github.com/jfhbrook/pyee License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/jfhbrook/pyee
Source: https://files.pythonhosted.org/packages/source/p/pyee/pyee-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pyee/pyee-%{version}.tar.gz
Source99: https://raw.githubusercontent.com/jfhbrook/pyee/master/LICENSE Source99: https://raw.githubusercontent.com/jfhbrook/pyee/master/LICENSE
# PATCH-FIX-UPSTREAM fix-build-requirements.patch # PATCH-FIX-UPSTREAM fix-build-requirements.patch
Patch0: fix-build-requirements.patch Patch0: fix-build-requirements.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module hamcrest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module vcversioner} BuildRequires: %{python_module vcversioner}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements # SECTION test requirements
%if %{with test} %if %{with test}
BuildRequires: %{python_module Twisted} BuildRequires: %{python_module Twisted}
@@ -40,9 +44,6 @@ BuildRequires: %{python_module pytest-runner}
BuildRequires: python3-pytest-asyncio BuildRequires: python3-pytest-asyncio
%endif %endif
# /SECTION # /SECTION
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -61,7 +62,7 @@ cp %{SOURCE99} .
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test} && %{suse_version} >= 1500 %if %{with test} && 0%{?suse_version} >= 1500
%check %check
# Only run tests for python3 # Only run tests for python3
%{python_expand # %{python_expand #
@@ -72,7 +73,6 @@ fi
%endif %endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-)
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/*