2011-03-31 09:45:57 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-setproctitle
|
|
|
|
#
|
2023-11-27 16:15:14 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
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
|
|
|
|
2023-11-27 16:15:14 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2010-06-23 14:54:21 +00:00
|
|
|
Name: python-setproctitle
|
2023-11-27 16:15:14 +00:00
|
|
|
Version: 1.3.3
|
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
|
2019-09-16 07:32:59 +00:00
|
|
|
URL: https://github.com/dvarrazzo/py-setproctitle/
|
2017-07-07 13:03:31 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
|
2022-09-16 18:23:28 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module devel >= 3.7}
|
2020-08-16 07:56:18 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-07-07 13:03:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-09-16 07:32:59 +00:00
|
|
|
BuildRequires: procps
|
2017-07-07 13:03:31 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%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}
|
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
|
2020-12-04 10:52:51 +00:00
|
|
|
%pytest_arch
|
2019-03-03 22:11:50 +00:00
|
|
|
|
2017-07-07 13:03:31 +00:00
|
|
|
%files %{python_files}
|
2019-09-16 07:32:59 +00:00
|
|
|
%doc HISTORY.rst README.rst
|
|
|
|
%license COPYRIGHT
|
2022-09-16 18:23:28 +00:00
|
|
|
%{python_sitearch}/setproctitle
|
2020-12-04 10:52:51 +00:00
|
|
|
%{python_sitearch}/setproctitle-%{version}*-info
|
2010-06-23 14:54:21 +00:00
|
|
|
|
|
|
|
%changelog
|