Blame SPECS/python-linux-procfs.spec

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
92c0da
Version: 0.4.11
ad0fc8
Release: 4%{?dist}
ba8558
License: GPLv2
ba8558
Summary: Linux /proc abstraction classes
ba8558
Group: System Environment/Libraries
c682bc
ad0fc8
URL: https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git
ad0fc8
# If upstream does not provide tarballs, to generate
ad0fc8
# git clone git://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git
ad0fc8
# cd python-linux-procfs
ad0fc8
# git archive --format=tar --prefix=python-linux-procfs-%%{version}/ v%%{version} | bzip2 -c > python-linux-procfs-%%{version}.tar.bz2
ad0fc8
Source: https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/snapshot/%{name}-%{version}.tar.bz2
92c0da
92c0da
# PATCHES
92c0da
Patch1: pflags_Use_argparse_to_create_help_option.patch
92c0da
Patch2: pflags_ignore_non-existent_pids.patch
c682bc
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
92c0da
* Tue Dec 04 2018 John Kacur <jkacur@redhat.com> - 0.4.11-4
92c0da
- Need to apply the patch in prep
92c0da
Resolves: rhbz#1654311
92c0da
92c0da
* Mon Dec 03 2018 John Kacur <jkacur@redhat.com> - 0.4.11-3
92c0da
- Ignore non-existent pids
92c0da
Resolves: rhbz#1654311
92c0da
92c0da
* Mon Dec 03 2018 John Kacur <jkacur@redhat.com> - 0.4.11-2
92c0da
- Use argparse to create a help option
92c0da
Resolves: rhbz#1654700
92c0da
92c0da
* Fri Nov 30 2018 John Kacur <jkacur@redhat.com> - 0.4.11-1
92c0da
- Upgrade to upstream v0.4-11
92c0da
Resolves: rhbz#1654726
92c0da
ad0fc8
* Thu May 31 2018 John Kacur <jkacur@redhat.com> - 0.4.9-4
ad0fc8
- Fix upstream URL reference and source
ad0fc8
Resolves: rhbz#1583961
ad0fc8
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