2011-03-31 09:45:57 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-setproctitle
|
|
|
|
#
|
2019-03-03 22:11:50 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-03-31 09:45:57 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-03 22:11:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-03-31 09:45:57 +00:00
|
|
|
#
|
|
|
|
|
2012-01-12 10:07:18 +00:00
|
|
|
|
2017-07-07 13:03:31 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2010-06-23 14:54:21 +00:00
|
|
|
Name: python-setproctitle
|
2017-07-07 13:03:31 +00:00
|
|
|
Version: 1.1.10
|
2012-01-11 10:07:40 +00:00
|
|
|
Release: 0
|
2010-06-23 14:54:21 +00:00
|
|
|
Summary: Python module to allow customization of the process title
|
2012-01-11 10:07:40 +00:00
|
|
|
License: BSD-3-Clause
|
2010-06-23 14:54:21 +00:00
|
|
|
Group: Development/Libraries/Python
|
2019-03-03 22:11:50 +00:00
|
|
|
URL: http://pypi.python.org/pypi/setproctitle/
|
2017-07-07 13:03:31 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
|
2019-03-03 22:11:50 +00:00
|
|
|
Patch: skip-failing-tests.patch
|
2017-07-07 13:03:31 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2019-03-03 22:11:50 +00:00
|
|
|
BuildRequires: %{python_module nose}
|
2017-07-07 13:03:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-03 22:11:50 +00:00
|
|
|
BuildRequires: python3-tools
|
2017-07-07 13:03:31 +00:00
|
|
|
%python_subpackages
|
2010-06-23 14:54:21 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Changing the title is mostly useful in multi-process systems, for example when
|
|
|
|
a master process is forked: changing the children's title allows to identify
|
|
|
|
the task each process is busy with. The technique is used by PostgreSQL and
|
|
|
|
the OpenSSH Server for example.
|
|
|
|
|
|
|
|
%prep
|
2013-01-14 10:16:12 +00:00
|
|
|
%setup -q -n setproctitle-%{version}
|
2019-03-03 22:11:50 +00:00
|
|
|
%autopatch -p1
|
2010-06-23 14:54:21 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-07 13:03:31 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2010-06-23 14:54:21 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-07 13:03:31 +00:00
|
|
|
%python_install
|
2010-06-23 14:54:21 +00:00
|
|
|
|
2019-03-03 22:11:50 +00:00
|
|
|
%check
|
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
|
|
make PYTHON=$python check
|
|
|
|
}
|
|
|
|
|
2017-07-07 13:03:31 +00:00
|
|
|
%files %{python_files}
|
2012-09-17 09:46:11 +00:00
|
|
|
%doc COPYRIGHT HISTORY.rst README.rst
|
2013-01-14 10:16:12 +00:00
|
|
|
%{python_sitearch}/*
|
2010-06-23 14:54:21 +00:00
|
|
|
|
|
|
|
%changelog
|