]> git.pld-linux.org Git - packages/python-psutil.git/commitdiff
- Initial version 0.4.1.
authorMateusz Korniak <matkor@pld-linux.org>
Thu, 19 Apr 2012 08:52:29 +0000 (08:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-psutil.spec -> 1.1

python-psutil.spec [new file with mode: 0644]

diff --git a/python-psutil.spec b/python-psutil.spec
new file mode 100644 (file)
index 0000000..7a5c9ce
--- /dev/null
@@ -0,0 +1,74 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        module  psutil
+Summary:       A cross-platform process and system utilities module for Python
+Summary(pl.UTF-8):     Wieloplatformowe narzędzia do procesów i systemu dla Pythona
+Name:          python-%{module}
+Version:       0.4.1
+Release:       0.1
+License:       BSD
+Group:         Development/Languages/Python
+Source0:       http://psutil.googlecode.com/files/%{module}-%{version}.tar.gz
+# Source0-md5: 9dbefbc6c71f5e50a17a70b18c1150b0
+URL:           http://code.google.com/p/psutil/
+BuildRequires: python-devel
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python-modules
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Module providing an interface for retrieving information on all
+running processes and system utilization (CPU, disk, memory, network)
+in a portable way by using Python, implementing many functionalities
+offered by command line tools.
+
+%description -l pl.UTF-8
+Moduł dostarczający interfejs do informacji o działających procesach
+oraz zużyciu systemu (procesor, dyski, pamięć, sieć) w przenośny
+sposób używjąc Pythona. Implementuje wiele funkcjonalności oferowanych
+przez narzędzia linii komend.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+
+%build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS README
+
+%{py_sitedir}/%{module}
+%attr(755,root,root) %{py_sitedir}/_psutil_linux.so
+%attr(755,root,root) %{py_sitedir}/_psutil_posix.so
+
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/%{module}-*.egg-info
+%endif
+%{_examplesdir}/%{name}-%{version}
This page took 0.09227 seconds and 4 git commands to generate.