python-psutil/python3-psutil.spec
Todd R 48ff616088 Accepting request 132969 from devel:languages:python
Restore BuildRequires: python3  This package depends on hash algorithms that are only available if python3 is installed, python3-devel will not pull them in.  Building will fail if  BuildRequires: python3 is removed.

OBS-URL: https://build.opensuse.org/request/show/132969
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-psutil?expand=0&rev=6
2012-09-06 12:58:57 +00:00

65 lines
2.2 KiB
RPMSpec

#
# 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
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