ba84d61
%if 0%{?rhel} && 0%{?rhel} <= 5
ba84d61
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
ba84d61
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
ba84d61
%endif
ba84d61
Edouard 11c3cc2
Name:		glances		
3111ba1
Version:	1.5.2
71fd307
Release:	2%{?dist}
Edouard 11c3cc2
Summary:	CLI curses based monitoring tool
Edouard 11c3cc2
Edouard 11c3cc2
Group:		Applications/System		
Edouard 11c3cc2
License:	GPLv3
Edouard 11c3cc2
URL:		https://github.com/nicolargo/glances
Edouard 11c3cc2
Source0:	https://github.com/downloads/nicolargo/%{name}/%{name}-%{version}.tar.gz
71fd307
Patch0:		glances_uninitialised_y.patch
Edouard 11c3cc2
BuildArch:	noarch
Edouard 11c3cc2
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
ba84d61
%if 0%{?rhel} && 0%{?rhel} <= 5
ba84d61
BuildRequires:	python-setuptools
ba84d61
%else
43d6faa
BuildRequires:	python-setuptools-devel
ba84d61
%endif
0edf50c
Requires:	python-setuptools
ba84d61
Requires:	python-psutil >= 0.4.1
Edouard 11c3cc2
Edouard 11c3cc2
%description
Edouard 11c3cc2
Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD.
Edouard 11c3cc2
43d6faa
Glances uses the PsUtil library to get information from your system.
Edouard 11c3cc2
43d6faa
It is developed in Python.
Edouard 11c3cc2
Edouard 11c3cc2
%prep
Edouard 11c3cc2
%setup -q
71fd307
%patch0 -p1
Edouard 11c3cc2
Edouard 11c3cc2
%build
Edouard 11c3cc2
Edouard 11c3cc2
Edouard 11c3cc2
%install
0edf50c
%{__python} setup.py install --root %{buildroot}
43d6faa
%find_lang %{name}
43d6faa
Edouard 11c3cc2
Edouard 11c3cc2
%clean
Edouard 11c3cc2
rm -rf %{buildroot} 
Edouard 11c3cc2
Edouard 11c3cc2
43d6faa
%files -f %{name}.lang
Edouard 11c3cc2
%defattr(-,root,root,-)
43d6faa
%doc AUTHORS COPYING README TODO 
Edouard 11c3cc2
%{_bindir}/glances
7413283
%attr(0655,-,-) %{python_sitelib}/glances/glances.py
7413283
%attr(0655,-,-) %{python_sitelib}/glances/unitest.py
43d6faa
%{python_sitelib}/*
43d6faa
%{_datadir}/doc/glances
43d6faa
%{_datadir}/glances
706abc1
%{_datadir}/man/man1/glances.1.gz
Edouard 11c3cc2
Edouard 11c3cc2
%changelog
71fd307
* Sat Jan 12 2013 Edouard Bourguignon <madko@linuxed.net> - 1.5.2-2
71fd307
- Patch to initialize y in displayMem (bug #894347)
71fd307
3111ba1
* Sun Dec 30 2012 Edouard Bourguignon <madko@linuxed.net> - 1.5.2-1
3111ba1
- Upgrade to 1.5.2
3111ba1
a095529
* Tue Nov 13 2012 Edouard Bourguignon <madko@linuxed.net> - 1.5.1-1
a095529
- Upgrade to 1.5.1 (fix compute data on el6)
a095529
7413283
* Thu Nov  8 2012 Edouard Bourguignon <madko@linuxed.net> - 1.5-1
7413283
- Upgrade to 1.5
7413283
ba84d61
* Sat Sep  1 2012 Edouard Bourguignon <madko@linuxed.net> - 1.4.1.1-1
ba84d61
- Upgrade to 1.4.1.1
ba84d61
0edf50c
* Tue Aug 21 2012 Edouard Bourguignon <madko@linuxed.net> - 1.4-2
0edf50c
- Adding missing dependencies
0edf50c
- Removing shebang in non-executable files
0edf50c
43d6faa
* Tue Aug 21 2012 Edouard Bourguignon <madko@linuxed.net> - 1.4-1
43d6faa
- Upgrade to version 1.4
43d6faa
03aff1d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-3
03aff1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
03aff1d
fc3492c
* Mon Feb 13 2012 Edouard Bourguignon <madko@linuxed.net> - 1.3.7-2
fc3492c
- Add version for python
fc3492c
7f4a178
* Thu Feb  2 2012 Edouard Bourguignon <madko@linuxed.net> - 1.3.7-1
7f4a178
- Upgrade to version 1.3.7
7f4a178
ca10d37
* Fri Jan 20 2012 Edouard Bourguignon <madko@linuxed.net> - 1.3.6-1
ca10d37
- Upgrade to version 1.3.6 (fix crash when a network intf is removed)
ca10d37
453c939
* Tue Jan 17 2012 Edouard Bourguignon <madko@linuxed.net> - 1.3.5-1
453c939
- Upgrade to version 1.3.5
a9b42ba
bcee54a
* Fri Dec 30 2011 Edouard Bourguignon <madko@linuxed.net> - 1.3.4-1
bcee54a
- Upgrade to version 1.3.4
bcee54a
bcee54a
* Fri Dec 23 2011 Edouard Bourguignon <madko@linuxed.net> - 1.3.3-1
bcee54a
- Upgrade to version 1.3.3
bcee54a
7fed062
* Wed Dec 21 2011 Edouard Bourguignon <madko@linuxed.net> - 1.3.2-1
7fed062
- Upgrade to version 1.3.2
7fed062
6a497aa
* Sat Dec 17 2011 Edouard Bourguignon <madko@linuxed.net> - 1.3.1-1
6a497aa
- Upgrade to version 1.3.1 (fix fs display)
6a497aa
706abc1
* Wed Dec 14 2011 Edouard Bourguignon <madko@linuxed.net> - 1.3-1
706abc1
- Upgrade to version 1.3
706abc1
c44be5c
* Tue Dec 13 2011 Edouard Bourguignon <madko@linuxed.net> - 1.2-1
c44be5c
- Upgrade to version 1.2
c44be5c
Edouard 11c3cc2
* Tue Dec  6 2011 Edouard Bourguignon <madko@linuxed.net> - 1.1.3-1
Edouard 11c3cc2
- Upgrade to version 1.1.3
Edouard 11c3cc2
Edouard 11c3cc2
* Tue Dec  6 2011 Edouard Bourguignon <madko@linuxed.net> - 1.1.2-2
Edouard 11c3cc2
- Fix for review
Edouard 11c3cc2
- Remove shebang from non-executable script
Edouard 11c3cc2
- Add version for libpystatgrab
Edouard 11c3cc2
- Renamed glances.py to glances
Edouard 11c3cc2
Edouard 11c3cc2
* Mon Dec  5 2011 Edouard Bourguignon <madko@linuxed.net> - 1.1.2-1
Edouard 11c3cc2
- Upgrade to 1.1.2
Edouard 11c3cc2
Edouard 11c3cc2
* Mon Dec  5 2011 Edouard Bourguignon <madko@linuxed.net> - 1.1.1-1
Edouard 11c3cc2
- Upgrade to 1.1.1
Edouard 11c3cc2
Edouard 11c3cc2
* Mon Dec  5 2011 Edouard Bourguignon <madko@linuxed.net> - 1.0-1 
Edouard 11c3cc2
- Initial version