python-setproctitle/python-setproctitle.spec

96 lines
2.7 KiB
RPMSpec
Raw 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
Version: 1.2.2
Release: 2
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
Source0: https://files.pythonhosted.org/packages/a1/7f/a1d4f4c7b66f0fc02f35dc5c85f45a8b4e4a7988357a29e61c14e725ef86/setproctitle-1.2.2.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
Provides: python-setproctitle
# 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
BuildRequires: python3-setproctitle
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
%{__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
* 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