forked from pool/python-setproctitle
- Enable tests and add skip-failing-tests.patch to skip failing tests
(gh#dvarrazzo/py-setproctitle#60) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setproctitle?expand=0&rev=32
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-setproctitle
|
||||
#
|
||||
# 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,7 +12,7 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
@@ -23,13 +23,14 @@ Release: 0
|
||||
Summary: Python module to allow customization of the process title
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://pypi.python.org/pypi/setproctitle/
|
||||
URL: http://pypi.python.org/pypi/setproctitle/
|
||||
Source: https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch: skip-failing-tests.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
|
||||
BuildRequires: python3-tools
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -40,6 +41,7 @@ the OpenSSH Server for example.
|
||||
|
||||
%prep
|
||||
%setup -q -n setproctitle-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -48,8 +50,12 @@ export CFLAGS="%{optflags}"
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
make PYTHON=$python check
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc COPYRIGHT HISTORY.rst README.rst
|
||||
%{python_sitearch}/*
|
||||
|
||||
|
Reference in New Issue
Block a user