Compare commits
10 Commits
694ea515f9
...
8fcd924a2b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fcd924a2b | ||
|
|
195130b168 | ||
|
|
a67a005b0c | ||
|
|
7a1dcc4c3d | ||
|
|
c833e3a06f | ||
|
|
ec9f427de8 | ||
|
|
288a90142e | ||
|
|
d5c20332ef | ||
|
|
c759edfb11 | ||
|
|
e0ecc9f776 |
@ -1,64 +1,48 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-setproctitle
|
Name: python-setproctitle
|
||||||
Version: 1.2.1
|
Version: 1.3.3
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A Python module to customize the process title
|
Summary: A Python module to customize the process title
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/dvarrazzo/py-setproctitle
|
URL: https://github.com/dvarrazzo/py-setproctitle
|
||||||
Source0: https://files.pythonhosted.org/packages/a7/e1/e76b903af017cc4a99f823b5e4235c1136dcca6902e6b7ee4d545958ba8c/setproctitle-1.2.1.tar.gz
|
Source0: https://files.pythonhosted.org/packages/ff/e1/b16b16a1aa12174349d15b73fd4b87e641a8ae3fb1163e80938dbbf6ae98/setproctitle-1.3.3.tar.gz
|
||||||
|
|
||||||
Requires: python3-pytest
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The setproctitle module allows a process to change its title (as displayed
|
A Python module to customize the process title
|
||||||
by system tools such as ps and top).
|
|
||||||
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.
|
|
||||||
The procedure is hardly portable across different systems. PostgreSQL provides
|
|
||||||
a good multi-platform implementation: this module is a Python wrapper
|
|
||||||
around PostgreSQL code.
|
|
||||||
|
|
||||||
%package -n python3-setproctitle
|
%package -n python3-setproctitle
|
||||||
Summary: A Python module to customize the process title
|
Summary: A Python module to customize the process title
|
||||||
Provides: python-setproctitle
|
Provides: python-setproctitle = %{version}-%{release}
|
||||||
|
# Base build requires
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: python3-wheel
|
||||||
BuildRequires: python3-cffi
|
BuildRequires: python3-cffi
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc procps
|
||||||
BuildRequires: gdb
|
# Tests running requires
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
Requires: python3-pytest
|
||||||
|
|
||||||
%description -n python3-setproctitle
|
%description -n python3-setproctitle
|
||||||
The setproctitle module allows a process to change its title (as displayed
|
A Python module to customize the process title
|
||||||
by system tools such as ps and top).
|
|
||||||
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.
|
|
||||||
The procedure is hardly portable across different systems. PostgreSQL provides
|
|
||||||
a good multi-platform implementation: this module is a Python wrapper
|
|
||||||
around PostgreSQL code.
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Development documents and examples for setproctitle
|
Summary: A Python module to customize the process title
|
||||||
Provides: python3-setproctitle-doc
|
Provides: python3-setproctitle-doc
|
||||||
%description help
|
%description help
|
||||||
The setproctitle module allows a process to change its title (as displayed
|
A Python module to customize the process title
|
||||||
by system tools such as ps and top).
|
|
||||||
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.
|
|
||||||
The procedure is hardly portable across different systems. PostgreSQL provides
|
|
||||||
a good multi-platform implementation: this module is a Python wrapper
|
|
||||||
around PostgreSQL code.
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n setproctitle-1.2.1
|
%autosetup -n setproctitle-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
@ -85,6 +69,10 @@ popd
|
|||||||
mv %{buildroot}/filelist.lst .
|
mv %{buildroot}/filelist.lst .
|
||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
|
%check
|
||||||
|
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
||||||
|
%{__python3} -m pytest
|
||||||
|
|
||||||
%files -n python3-setproctitle -f filelist.lst
|
%files -n python3-setproctitle -f filelist.lst
|
||||||
%dir %{python3_sitearch}/*
|
%dir %{python3_sitearch}/*
|
||||||
|
|
||||||
@ -92,5 +80,20 @@ mv %{buildroot}/doclist.lst .
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 18 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 1.3.3-1
|
||||||
|
- Update package to version 1.3.3
|
||||||
|
|
||||||
|
* Fri Apr 28 2023 xu_ping <707078654@qq.com> - 1.3.2-1
|
||||||
|
- Upgrade package to 1.3.2 version.
|
||||||
|
|
||||||
|
* Fri May 13 2022 caodongxia <caodongxia@h-partners.com> - 1.2.2-2
|
||||||
|
- Add buildrequire procps to fix compile failure
|
||||||
|
|
||||||
|
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 1.2.2-1
|
||||||
|
- Upgrade version to 1.2.2
|
||||||
|
|
||||||
|
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.2.1-2
|
||||||
|
- DESC: delete BuildRequires gdb
|
||||||
|
|
||||||
* Wed Jan 06 2021 Python_Bot <Python_Bot@openeuler.org>
|
* Wed Jan 06 2021 Python_Bot <Python_Bot@openeuler.org>
|
||||||
- Package Spec generated
|
- Package Spec generated
|
||||||
|
|||||||
Binary file not shown.
BIN
setproctitle-1.3.3.tar.gz
Normal file
BIN
setproctitle-1.3.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user