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:
@@ -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
|
||||
|
||||
|
@@ -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}/*
|
||||
|
Reference in New Issue
Block a user