View | Details | Raw Unified | Return to bug 29763
Collapse All | Expand All

(-)a/python-module-psutil.spec (+46 lines)
Lines 1-4 Link Here
1
%define oname psutil
1
%define oname psutil
2
%def_with python3
2
3
3
Name: python-module-%oname
4
Name: python-module-%oname
4
Version: 0.7.1
5
Version: 0.7.1
Lines 16-26 Source: %oname-%version.tar Link Here
16
17
17
%add_python_req_skip _psutil_bsd _psutil_mswindows _psutil_osx pywintypes win32com
18
%add_python_req_skip _psutil_bsd _psutil_mswindows _psutil_osx pywintypes win32com
18
19
20
%if_with python3
21
%add_python3_req_skip _psutil_bsd _psutil_mswindows _psutil_osx pywintypes win32com
22
%endif
23
19
# Automatically added by buildreq on Wed Sep 08 2010
24
# Automatically added by buildreq on Wed Sep 08 2010
20
BuildRequires: python-devel
25
BuildRequires: python-devel
21
26
22
BuildPreReq: rpm-build-python
27
BuildPreReq: rpm-build-python
23
28
29
%if_with python3
30
BuildRequires(pre): rpm-build-python3
31
BuildRequires: python3-devel
32
%endif
24
33
25
%setup_python_module %oname
34
%setup_python_module %oname
26
35
Lines 30-43 processes and system utilization (CPU, memory) in a portable way by using Link Here
30
Python, implementing many functionalities offered by tools like ps, top and
39
Python, implementing many functionalities offered by tools like ps, top and
31
Windows task manager.
40
Windows task manager.
32
41
42
%if_with python3
43
%package -n    python3-module-%oname
44
Summary:       A process utilities module for Python 3
45
Group:         Development/Python3
46
47
%description -n    python3-module-%oname
48
psutil is a module providing an interface for retrieving information on running
49
processes and system utilization (CPU, memory) in a portable way by using
50
Python, implementing many functionalities offered by tools like ps, top and
51
Windows task manager.
52
This is a Python3 module.
53
%endif
54
55
33
%prep
56
%prep
34
%setup -n %oname-%version
57
%setup -n %oname-%version
58
sed -i '1d' psutil/*.py
59
%if_with python3
60
rm -rf ../python3
61
cp -a . ../python3
62
%endif
35
63
36
%build
64
%build
37
%python_build
65
%python_build
66
%if_with python3
67
pushd ../python3
68
%python3_build
69
popd
70
%endif
38
71
39
%install
72
%install
40
%python_install
73
%python_install
74
%if_with python3
75
pushd ../python3
76
%python3_install
77
popd
78
%endif
41
79
42
%files
80
%files
43
%doc README LICENSE
81
%doc README LICENSE
Lines 45-50 Windows task manager. Link Here
45
%python_sitelibdir/_*.so
83
%python_sitelibdir/_*.so
46
%python_sitelibdir/*.egg-info
84
%python_sitelibdir/*.egg-info
47
85
86
%if_with python3
87
%files -n python3-module-%oname
88
%doc README LICENSE
89
%python3_sitelibdir/%oname/
90
%python3_sitelibdir/_*.so
91
%python3_sitelibdir/*.egg-info
92
%endif
93
48
%changelog
94
%changelog
49
* Sun Aug 04 2013 Vitaly Lipatov <lav@altlinux.ru> 0.7.1-alt1
95
* Sun Aug 04 2013 Vitaly Lipatov <lav@altlinux.ru> 0.7.1-alt1
50
- new version 0.7.1 (with rpmrb script)
96
- new version 0.7.1 (with rpmrb script)

Return to bug 29763