2012-05-25 08:56:56 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-10-08 11:27:07 +02:00
|
|
|
|
2012-05-25 08:56:56 +02:00
|
|
|
Name: python3-psutil
|
2013-05-28 09:23:35 +02:00
|
|
|
Version: 0.7.1
|
2012-05-25 08:56:56 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A process utilities module for Python
|
2012-10-08 11:27:07 +02:00
|
|
|
License: BSD-3-Clause
|
2012-05-25 08:56:56 +02:00
|
|
|
Group: Development/Languages/Python
|
2012-10-08 11:27:07 +02:00
|
|
|
Url: http://code.google.com/p/psutil/
|
2012-05-25 08:56:56 +02:00
|
|
|
Source: psutil-%{version}.tar.gz
|
2012-09-06 14:58:57 +02:00
|
|
|
BuildRequires: python3
|
2012-05-25 08:56:56 +02:00
|
|
|
BuildRequires: python3-2to3
|
2012-09-07 10:12:50 +02:00
|
|
|
BuildRequires: python3-devel
|
2012-05-25 08:56:56 +02:00
|
|
|
BuildRequires: python3-distribute
|
2012-10-08 11:27:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-05-25 08:56:56 +02:00
|
|
|
Requires: python(abi) = %{py3_ver}
|
|
|
|
|
|
|
|
%description
|
|
|
|
A graphical interface that lets you easily analyze and introspect unaltered running Python processes.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n psutil-%{version}
|
2012-10-08 11:27:07 +02:00
|
|
|
# Remove shebangs
|
|
|
|
sed -i "1d" psutil/{__init__.py,_compat.py,_psbsd.py,_pslinux.py,_psmswindows.py,_psosx.py,_psposix.py,error.py}
|
2012-05-25 08:56:56 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
python3 setup.py test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-10-08 11:27:07 +02:00
|
|
|
%doc CREDITS examples HISTORY LICENSE README
|
2012-05-25 08:56:56 +02:00
|
|
|
%{python3_sitearch}/psutil/
|
|
|
|
%{python3_sitearch}/_psutil_*.so
|
|
|
|
%{python3_sitearch}/psutil-%{version}-py%{py3_ver}.egg-info
|
|
|
|
|
|
|
|
%changelog
|