public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Alexandre Salim <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/glances] epel10: On el5, build against python26 stack
Date: Sun, 30 Aug 2026 14:22:48 GMT [thread overview]
Message-ID: <178809976827.1.437398210088676785.rpms-glances-e5e4fa31ae18@fedoraproject.org> (raw)
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
reply other threads:[~2026-08-30 14:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178809976827.1.437398210088676785.rpms-glances-e5e4fa31ae18@fedoraproject.org \
--to=salimma@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox