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