From 8e665931f8dae888caa6b80c43def904c8518b36d916ad72267ecd6b4ddfca15 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 25 May 2012 06:56:56 +0000 Subject: [PATCH] Accepting request 122219 from home:HighwayStar:branches:devel:languages:python python3 package added, minor spec improvement OBS-URL: https://build.opensuse.org/request/show/122219 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=4 --- python-psutil.changes | 6 ++++ python-psutil.spec | 5 +++- python3-psutil.changes | 5 ++++ python3-psutil.spec | 63 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 python3-psutil.changes create mode 100644 python3-psutil.spec diff --git a/python-psutil.changes b/python-psutil.changes index b2df7b9..e689d0f 100644 --- a/python-psutil.changes +++ b/python-psutil.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 25 04:29:28 UTC 2012 - highwaystar.ru@gmail.com + +- python3 package added +- minor spec improvement + ------------------------------------------------------------------- Tue Apr 24 07:44:19 UTC 2012 - saschpe@suse.de diff --git a/python-psutil.spec b/python-psutil.spec index 9ff8f86..a04876f 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -49,6 +49,9 @@ python setup.py test %files %defattr(-,root,root,-) %doc CREDITS examples docs HISTORY LICENSE README -%{python_sitearch}/* +%{python_sitearch}/psutil/ +%{python_sitearch}/_psutil_*.so +%{python_sitearch}/psutil-%{version}-py%{py_ver}.egg-info + %changelog diff --git a/python3-psutil.changes b/python3-psutil.changes new file mode 100644 index 0000000..d12bfb9 --- /dev/null +++ b/python3-psutil.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri May 25 04:31:23 UTC 2012 - highwaystar.ru@gmail.com + +- python3 package added + diff --git a/python3-psutil.spec b/python3-psutil.spec new file mode 100644 index 0000000..11da842 --- /dev/null +++ b/python3-psutil.spec @@ -0,0 +1,63 @@ +# +# spec file for package python3-psutil +# +# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/ +# + +Name: python3-psutil +Version: 0.4.1 +Release: 0 +License: BSD-3-Clause +Summary: A process utilities module for Python +Url: http://code.google.com/p/psutil/ +Group: Development/Languages/Python +Source: psutil-%{version}.tar.gz +BuildRequires: python3-devel +BuildRequires: python3-2to3 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3-distribute + +%if 0%{?suse_version} <= 1140 +%{!?python3_sitearch: %global python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%{!?py3_ver: %global py3_ver %(python3 -c "import sys; version=str(sys.version_info[0]) + '.' + str(sys.version_info[1]); print(version)")} +%endif +Requires: python(abi) = %{py3_ver} +%if 0%{?suse_version} && 0%{?suse_version} > 1140 +BuildRequires: python3-base +%endif + +%description +A graphical interface that lets you easily analyze and introspect unaltered running Python processes. + +%prep +%setup -q -n psutil-%{version} +chmod -x docs/class_diagram.png # Fix executable permissions + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%check +python3 setup.py test + +%files +%defattr(-,root,root,-) +%doc CREDITS examples docs HISTORY LICENSE README +%{python3_sitearch}/psutil/ +%{python3_sitearch}/_psutil_*.so +%{python3_sitearch}/psutil-%{version}-py%{py3_ver}.egg-info + +%changelog