commit python-psutil for openSUSE:Factory
Hello community, here is the log from the commit of package python-psutil for openSUSE:Factory checked in at 2017-07-30 11:21:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-psutil (Old) and /work/SRC/openSUSE:Factory/.python-psutil.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-psutil" Sun Jul 30 11:21:42 2017 rev:35 rq:510263 version:5.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-psutil/python-psutil.changes 2017-05-20 10:09:55.947511650 +0200 +++ /work/SRC/openSUSE:Factory/.python-psutil.new/python-psutil.changes 2017-07-30 11:21:45.888933601 +0200 @@ -1,0 +2,5 @@ +Tue Jul 11 14:24:34 UTC 2017 - toddrme2178@gmail.com + +- Fix various rpmlint warnings and errors + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-psutil.spec ++++++ --- /var/tmp/diff_new_pack.SDF5PQ/_old 2017-07-30 11:21:47.604691696 +0200 +++ /var/tmp/diff_new_pack.SDF5PQ/_new 2017-07-30 11:21:47.608691132 +0200 @@ -16,6 +16,8 @@ # +%bcond_with test + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-psutil Version: 5.2.2 @@ -27,6 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/p/psutil/psutil-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: net-tools Requires: procps @@ -47,14 +50,30 @@ %install %python_install -# not working due to lack of root priveleges -# %check -# make test -# make memtest +%{python_expand mkdir -p %{buildroot}%{_docdir}/%{$python_prefix}-psutil +cp -r scripts %{buildroot}%{_docdir}/%{$python_prefix}-psutil/ +find %{buildroot}%{_docdir}/%{$python_prefix}-psutil/scripts/ -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python|#!%__$python|" {} \; +find %{buildroot}%{$python_sitearch}/psutil/tests/ -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python|#!%__$python|" {} \; +chmod a+x %{buildroot}%{$python_sitearch}/psutil/tests/*.py +chmod a-x %{buildroot}%{$python_sitearch}/psutil/tests/__init__.py +$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/psutil/tests/ +$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/psutil/tests/ +%fdupes %{buildroot}%{_docdir}/%{$python_prefix}-psutil/ +%fdupes %{buildroot}%{$python_sitearch} +} + + + +%if %{with test} +%check +make test +make memtest +%endif %files %{python_files} %defattr(-,root,root,-) -%doc CREDITS scripts HISTORY.rst LICENSE README.rst +%doc CREDITS HISTORY.rst LICENSE README.rst +%{_docdir}/%{python_prefix}-psutil/scripts/ %{python_sitearch}/psutil/ %{python_sitearch}/psutil/_psutil_*.so %{python_sitearch}/psutil-%{version}-py*.egg-info
participants (1)
-
root@hilbert.suse.de