14
0
Files
python-setproctitle/python-setproctitle.spec
Tomáš Chvátal fed55ff656 Accepting request 731074 from home:jayvdb:py3only
- Replace PyPI URL with GitHub URL
- Drop errant skip-failing-tests.patch caused by missing
  test dependency procps
- Add use-pkg-config.patch to build using pkg-config instead of
  python-config, as the latter is not shipped in python3-devel
- Add LANG in %check to fix openSUSE/SLE 15
- Use %license

OBS-URL: https://build.opensuse.org/request/show/731074
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setproctitle?expand=0&rev=35
2019-09-16 07:32:59 +00:00

66 lines
2.1 KiB
RPMSpec

#
# spec file for package python-setproctitle
#
# 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
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-setproctitle
Version: 1.1.10
Release: 0
Summary: Python module to allow customization of the process title
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/dvarrazzo/py-setproctitle/
Source: https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
Patch0: use-pkg-config.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: procps
BuildRequires: python-rpm-macros
BuildRequires: python3-tools
%python_subpackages
%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
%setup -q -n setproctitle-%{version}
%autopatch -p1
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%check
export LANG=en_US.UTF-8
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
make PYTHON=$python check
}
%files %{python_files}
%doc HISTORY.rst README.rst
%license COPYRIGHT
%{python_sitearch}/*
%changelog