summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2013-04-08 22:46:03 +0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2013-04-08 22:46:03 +0700
commite3afcba802c162545f333c422e5c161102b14367 (patch)
tree9cd4bc51bbbd8f99ad3bb725bd76ce7b4486daab
parent4051cbbb831eb1f0354f6bdd3aa64c1398d48700 (diff)
downloadspecs-e3afcba802c162545f333c422e5c161102b14367.tar.gz
specs-e3afcba802c162545f333c422e5c161102b14367.tar.xz
specs-e3afcba802c162545f333c422e5c161102b14367.zip
psutil: incorporate review feedbacks
-rw-r--r--admin/python26-psutil.spec17
1 files changed, 15 insertions, 2 deletions
diff --git a/admin/python26-psutil.spec b/admin/python26-psutil.spec
index e7456ac..6098192 100644
--- a/admin/python26-psutil.spec
+++ b/admin/python26-psutil.spec
@@ -1,5 +1,9 @@
%{!?python_sitearch: %global python_sitearch %(%{__python}26 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")}
+# fix byte-compilation to not use default python
+# http://fedoraproject.org/wiki/Python26#Byte_compiling
+%global __os_install_post %__multiple_python_os_install_post
+
%global short_name psutil
# Filter Python modules from Provides
@@ -10,7 +14,7 @@
Name: python26-psutil
Version: 0.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A process and system utilities module for Python
Group: Development/Languages
@@ -46,6 +50,7 @@ CFLAGS=$RPM_OPT_FLAGS %{__python}26 setup.py build
%install
+rm -rf $RPM_BUILD_ROOT
%{__python}26 setup.py install \
--skip-build \
--root $RPM_BUILD_ROOT
@@ -53,7 +58,11 @@ CFLAGS=$RPM_OPT_FLAGS %{__python}26 setup.py build
# Fix permissions
chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/*.so
-
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
%files
%doc CREDITS HISTORY LICENSE README
%{python_sitearch}/%{short_name}/
@@ -62,5 +71,9 @@ chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/*.so
%changelog
+* Mon Apr 8 2013 Michel Salim <salimma@fedoraproject.org> - 0.6.1-2
+- Byte-compile with the correct Python version
+- Clean up buildroot
+
* Tue Mar 19 2013 Michel Salim <salimma@fedoraproject.org> - 0.6.1-1
- Initial package, based on python-psutil-0.6.1-1