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