forked from pool/python-psutil
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
This commit is contained in:
parent
80791d32c4
commit
8e665931f8
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
5
python3-psutil.changes
Normal file
5
python3-psutil.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 25 04:31:23 UTC 2012 - highwaystar.ru@gmail.com
|
||||
|
||||
- python3 package added
|
||||
|
63
python3-psutil.spec
Normal file
63
python3-psutil.spec
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user