|
|
ba8558 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
ba8558 |
%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
|
|
ba8558 |
|
|
|
ba8558 |
Name: python-linux-procfs
|
|
|
4cad9c |
Version: 0.4.9
|
|
|
c682bc |
Release: 3%{?dist}
|
|
|
ba8558 |
License: GPLv2
|
|
|
ba8558 |
Summary: Linux /proc abstraction classes
|
|
|
ba8558 |
Group: System Environment/Libraries
|
|
|
ba8558 |
Source: http://userweb.kernel.org/~acme/python-linux-procfs/%{name}-%{version}.tar.bz2
|
|
|
c682bc |
|
|
|
4cad9c |
Patch1: pidstats-fix-documentation-indentation.patch
|
|
|
4cad9c |
Patch2: fix-parse_affinity-for-CPU-numbers-greater-than-31.patch
|
|
|
c682bc |
|
|
|
ba8558 |
URL: http://userweb.kernel.org/~acme/python-linux-procfs
|
|
|
ba8558 |
BuildArch: noarch
|
|
|
ba8558 |
BuildRequires: python-devel
|
|
|
ba8558 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
ba8558 |
|
|
|
ba8558 |
%description
|
|
|
ba8558 |
Abstractions to extract information from the Linux kernel /proc files.
|
|
|
ba8558 |
|
|
|
ba8558 |
%prep
|
|
|
ba8558 |
%setup -q
|
|
|
c682bc |
%patch1 -p1
|
|
|
c682bc |
%patch2 -p1
|
|
|
ba8558 |
|
|
|
ba8558 |
%build
|
|
|
ba8558 |
%{__python} setup.py build
|
|
|
ba8558 |
|
|
|
ba8558 |
%install
|
|
|
ba8558 |
rm -rf %{buildroot}
|
|
|
ba8558 |
%{__python} setup.py install --skip-build --root %{buildroot}
|
|
|
c682bc |
mkdir -p %{buildroot}%{_bindir}
|
|
|
c682bc |
cp pflags-cmd.py %{buildroot}%{_bindir}/pflags
|
|
|
ba8558 |
|
|
|
ba8558 |
%clean
|
|
|
ba8558 |
rm -rf %{buildroot}
|
|
|
ba8558 |
|
|
|
ba8558 |
%files
|
|
|
ba8558 |
%defattr(0755,root,root,0755)
|
|
|
c682bc |
%{_bindir}/pflags
|
|
|
ba8558 |
%{python_sitelib}/procfs/
|
|
|
ba8558 |
%defattr(0644,root,root,0755)
|
|
|
ba8558 |
%if "%{python_ver}" >= "2.5"
|
|
|
ba8558 |
%{python_sitelib}/*.egg-info
|
|
|
ba8558 |
%endif
|
|
|
ba8558 |
%doc COPYING
|
|
|
ba8558 |
|
|
|
ba8558 |
%changelog
|
|
|
4cad9c |
* Wed Aug 24 2016 John Kacur <jkacur@redhat.com> - 0.4.9-3
|
|
|
4cad9c |
- fix parse_affinity for CPU numbers greater than 31
|
|
|
4cad9c |
Resolves: rhbz#1365902
|
|
|
4cad9c |
|
|
|
4cad9c |
* Tue Jul 05 2016 John Kacur <jkacur@redhat.com> - 0.4.9-2
|
|
|
4cad9c |
- Rebuild for rhel-7.3
|
|
|
4cad9c |
Resolves: rhbz#1245677
|
|
|
4cad9c |
|
|
|
4cad9c |
* Fri Nov 20 2015 John Kacur <jkacur@redhat.com> - 0.4.9-1
|
|
|
4cad9c |
- update to v0.4.9
|
|
|
4cad9c |
- Add pidstats-fix-documentation-indentation.patch
|
|
|
4cad9c |
Resolves: rhbz#1235826
|
|
|
4cad9c |
|
|
|
c682bc |
* Thu Jun 25 2015 John Kacur <jkacur@redhat.com> - 0.4.6-3
|
|
|
c682bc |
- procfs-Add-a-__contains__-method-to-dict-classes.patch
|
|
|
c682bc |
- pidstat-Add-PF_NO_SETAFFINITY-const.patch
|
|
|
c682bc |
- interrupts-Do-not-refrain-from-parsing-the-irq-affin.patch
|
|
|
c682bc |
- pidstat-Fix-process_flags-method.patch
|
|
|
c682bc |
- pidstat-Add-missing-PF_-flags.patch
|
|
|
c682bc |
- pflags-Add-command-line-utility-to-print-processor-f.patch
|
|
|
c682bc |
- pidstat-Support-COMM-names-with-spaces.patch
|
|
|
c682bc |
Resolves: rhbz#1232394
|
|
|
c682bc |
|
|
|
c447e1 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.4.6-2
|
|
|
c447e1 |
- Mass rebuild 2013-12-27
|
|
|
c447e1 |
|
|
|
c682bc |
* Fri Jun 14 2013 Jiri Kastner <jkastner@redhat.com> - 0.4.6-1
|
|
|
ba8558 |
- updated to 0.4.6
|
|
|
ba8558 |
|
|
|
ba8558 |
* Thu Jun 6 2013 Jiri Kastner <jkastner@redhat.com> - 0.4.5-1
|
|
|
ba8558 |
- Added support for parsing cgroups as a per thread attribute
|
|
|
ba8558 |
|
|
|
ba8558 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-8
|
|
|
ba8558 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
ba8558 |
|
|
|
ba8558 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-7
|
|
|
ba8558 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
ba8558 |
|
|
|
ba8558 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-6
|
|
|
ba8558 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
ba8558 |
|
|
|
ba8558 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-5
|
|
|
ba8558 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
ba8558 |
|
|
|
ba8558 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.4-4
|
|
|
ba8558 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
ba8558 |
|
|
|
ba8558 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-3
|
|
|
ba8558 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
ba8558 |
|
|
|
ba8558 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
|
|
|
ba8558 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
ba8558 |
|
|
|
c682bc |
* Tue Feb 10 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4.4-1
|
|
|
ba8558 |
- Even more fixes due to the fedora review process
|
|
|
ba8558 |
|
|
|
ba8558 |
* Mon Feb 9 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4.3-1
|
|
|
ba8558 |
- Fixups due to the fedora review process
|
|
|
ba8558 |
|
|
|
ba8558 |
* Tue Aug 12 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4.2-1
|
|
|
ba8558 |
- interrupts: Add find_by_user_regex
|
|
|
ba8558 |
- process: Always set the "cmdline" array, even if empty
|
|
|
ba8558 |
- pidstats: Remove dead processes in find_by_name()
|
|
|
ba8558 |
- pidstats: Add process class to catch dict references for late parsing
|
|
|
ba8558 |
- pidstats: Move the /proc/PID/{stat,status} parsing to classes
|
|
|
ba8558 |
- pidstats: Introduce process_flags method
|
|
|
ba8558 |
|
|
|
ba8558 |
* Tue Aug 12 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4-1
|
|
|
ba8558 |
- Per process flags needed by tuna
|
|
|
ba8558 |
|
|
|
ba8558 |
* Fri Jun 13 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-1
|
|
|
ba8558 |
- Support CPU hotplug
|
|
|
ba8558 |
|
|
|
ba8558 |
* Mon Feb 25 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
|
|
|
ba8558 |
- package created
|