python-setproctitle/python-setproctitle.spec

100 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

2020-12-30 17:35:36 +08:00
%global _empty_manifest_terminate_build 0
2021-08-09 14:35:52 +08:00
Name: python-setproctitle
2024-03-18 14:32:23 +08:00
Version: 1.3.3
Release: 1
2021-08-09 14:35:52 +08:00
Summary: A Python module to customize the process title
License: BSD-3-Clause
2021-08-09 14:35:52 +08:00
URL: https://github.com/dvarrazzo/py-setproctitle
2024-03-18 14:32:23 +08:00
Source0: https://files.pythonhosted.org/packages/ff/e1/b16b16a1aa12174349d15b73fd4b87e641a8ae3fb1163e80938dbbf6ae98/setproctitle-1.3.3.tar.gz
2020-12-30 17:35:36 +08:00
%description
2021-08-09 14:35:52 +08:00
A Python module to customize the process title
2020-12-30 17:35:36 +08:00
%package -n python3-setproctitle
2021-08-09 14:35:52 +08:00
Summary: A Python module to customize the process title
2024-03-18 14:32:23 +08:00
Provides: python-setproctitle = %{version}-%{release}
2021-08-09 14:35:52 +08:00
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-cffi
BuildRequires: gcc procps
2021-08-09 14:35:52 +08:00
# Tests running requires
BuildRequires: python3-pytest
Requires: python3-pytest
2020-12-30 17:35:36 +08:00
%description -n python3-setproctitle
2021-08-09 14:35:52 +08:00
A Python module to customize the process title
2020-12-30 17:35:36 +08:00
%package help
2021-08-09 14:35:52 +08:00
Summary: A Python module to customize the process title
Provides: python3-setproctitle-doc
2020-12-30 17:35:36 +08:00
%description help
2021-08-09 14:35:52 +08:00
A Python module to customize the process title
2020-12-30 17:35:36 +08:00
%prep
2021-08-09 14:35:52 +08:00
%autosetup -n setproctitle-%{version}
2020-12-30 17:35:36 +08:00
%build
%py3_build
%install
%py3_install
2021-08-09 14:35:52 +08:00
2020-12-30 17:35:36 +08:00
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
2021-08-09 14:35:52 +08:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-30 17:35:36 +08:00
fi
if [ -d usr/lib64 ]; then
2021-08-09 14:35:52 +08:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-30 17:35:36 +08:00
fi
if [ -d usr/bin ]; then
2021-08-09 14:35:52 +08:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-30 17:35:36 +08:00
fi
if [ -d usr/sbin ]; then
2021-08-09 14:35:52 +08:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-30 17:35:36 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2021-08-09 14:35:52 +08:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2020-12-30 17:35:36 +08:00
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2021-08-09 14:35:52 +08:00
%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
2021-08-09 14:35:52 +08:00
%{__python3} -m pytest
2020-12-30 17:35:36 +08:00
%files -n python3-setproctitle -f filelist.lst
%dir %{python3_sitearch}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2024-03-18 14:32:23 +08:00
* 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
2021-08-09 14:35:52 +08:00
* Mon Aug 09 2021 OpenStack_SIG <openstack@openeuler.org> - 1.2.2-1
- Upgrade version to 1.2.2
2021-08-04 21:19:57 +08:00
* Wed Aug 04 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.2.1-2
- DESC: delete BuildRequires gdb
2020-12-30 17:35:36 +08:00
* Wed Jan 06 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated