public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/glances] epel10: On el5, build against python26 stack
@ 2026-08-30 14:22 Michel Alexandre Salim
  0 siblings, 0 replies; only message in thread
From: Michel Alexandre Salim @ 2026-08-30 14:22 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/glances
Branch : epel10
Commit : e5e4fa31ae18bf830fef4428e08aa55f8b34e423
Author : Michel Alexandre Salim <salimma@fedoraproject.org>
Date   : 2013-03-20T13:34:03+07:00
Stats  : +14/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/glances/c/e5e4fa31ae18bf830fef4428e08aa55f8b34e423?branch=epel10

Log:
On el5, build against python26 stack

---
diff --git a/glances.spec b/glances.spec
index 42b0220..8def33a 100644
--- a/glances.spec
+++ b/glances.spec
@@ -1,11 +1,10 @@
 %if 0%{?rhel} && 0%{?rhel} <= 5
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%{!?python_sitelib: %global python_sitelib %(%{__python}26 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 %endif
 
 Name:		glances		
 Version:	1.6
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	CLI curses based monitoring tool
 
 Group:		Applications/System		
@@ -13,14 +12,16 @@ License:	GPLv3
 URL:		https://github.com/nicolargo/glances
 Source0:	https://github.com/downloads/nicolargo/%{name}/%{name}-%{version}.tar.gz
 BuildArch:	noarch
-BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 %if 0%{?rhel} && 0%{?rhel} <= 5
-BuildRequires:	python-setuptools
+BuildRequires:	python26-distribute
+Requires:	python26-distribute
+Requires:	python26-psutil >= 0.4.1
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 %else
 BuildRequires:	python-setuptools-devel
-%endif
 Requires:	python-setuptools
 Requires:	python-psutil >= 0.4.1
+%endif
 
 %description
 Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD.
@@ -36,7 +37,11 @@ It is developed in Python.
 
 
 %install
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{__python}26 setup.py install --root %{buildroot}
+%else
 %{__python} setup.py install --root %{buildroot}
+%endif
 %find_lang %{name}
 mv %{buildroot}/usr/etc/ %{buildroot}
 
@@ -58,6 +63,9 @@ rm -rf %{buildroot}
 %{_datadir}/man/man1/glances.1.gz
 
 %changelog
+* Tue Mar 19 2013 Michel Salim <salimma@fedoraproject.org> - 1.6-2
+- On el5, build against python26 stack
+
 * Sat Mar 16 2013 Edouard Bourguignon <madko@linuxed.net> - 1.6-1
 - Upgrade to 1.6
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-30 14:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-30 14:22 [rpms/glances] epel10: On el5, build against python26 stack Michel Alexandre Salim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox