2017-11-21 14:18:14 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_python3 1
|
|
|
|
%else
|
|
|
|
%global without_python3 1
|
|
|
|
%endif
|
2013-06-12 12:24:14 +00:00
|
|
|
|
2009-02-18 21:28:40 +00:00
|
|
|
Name: python-linux-procfs
|
2017-11-21 14:18:14 +00:00
|
|
|
Version: 0.5.1
|
2018-06-19 09:07:50 +00:00
|
|
|
Release: 5%{?dist}
|
2009-02-18 21:28:40 +00:00
|
|
|
License: GPLv2
|
|
|
|
Summary: Linux /proc abstraction classes
|
|
|
|
Group: System Environment/Libraries
|
2017-11-21 14:18:14 +00:00
|
|
|
Source: https://cdn.kernel.org/pub/software/libs/python/%{name}/%{name}-%{version}.tar.xz
|
2014-10-10 13:17:23 +00:00
|
|
|
URL: https://rt.wiki.kernel.org/index.php/Tuna
|
2009-02-18 21:28:40 +00:00
|
|
|
BuildArch: noarch
|
2017-11-21 14:18:14 +00:00
|
|
|
BuildRequires: python2-devel
|
2018-01-25 22:27:50 +00:00
|
|
|
BuildRequires: python2-setuptools
|
2017-11-21 14:18:14 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
%endif
|
2009-02-18 21:28:40 +00:00
|
|
|
|
2017-08-19 13:41:24 +00:00
|
|
|
%global _description\
|
2009-02-18 21:28:40 +00:00
|
|
|
Abstractions to extract information from the Linux kernel /proc files.
|
|
|
|
|
2017-08-19 13:41:24 +00:00
|
|
|
%description %_description
|
|
|
|
|
|
|
|
%package -n python2-linux-procfs
|
|
|
|
Summary: %summary
|
|
|
|
%{?python_provide:%python_provide python2-linux-procfs}
|
|
|
|
|
2018-01-25 22:27:50 +00:00
|
|
|
Requires: python2-six
|
2017-11-21 14:18:14 +00:00
|
|
|
|
2017-08-19 13:41:24 +00:00
|
|
|
%description -n python2-linux-procfs %_description
|
|
|
|
|
2017-11-21 14:18:14 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-linux-procfs
|
|
|
|
Summary: %summary
|
|
|
|
%{?python_provide:%python_provide python3-linux-procfs}
|
|
|
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
|
|
|
%description -n python3-linux-procfs %_description
|
|
|
|
%endif
|
|
|
|
|
2009-02-18 21:28:40 +00:00
|
|
|
%prep
|
2017-11-21 14:18:14 +00:00
|
|
|
%autosetup -p1
|
2009-02-18 21:28:40 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-21 14:18:14 +00:00
|
|
|
%py2_build
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%py3_build
|
|
|
|
%endif
|
2009-02-18 21:28:40 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2017-11-21 14:18:14 +00:00
|
|
|
%py2_install
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%py3_install
|
|
|
|
%endif
|
2009-02-18 21:28:40 +00:00
|
|
|
|
2017-08-19 13:41:24 +00:00
|
|
|
%files -n python2-linux-procfs
|
2009-02-18 21:28:40 +00:00
|
|
|
%defattr(0755,root,root,0755)
|
2017-11-21 14:18:14 +00:00
|
|
|
%{python2_sitelib}/procfs/
|
|
|
|
%if 0%{?without_python3}
|
|
|
|
%{_bindir}/pflags
|
|
|
|
%endif
|
2009-02-18 21:28:40 +00:00
|
|
|
%defattr(0644,root,root,0755)
|
2017-11-21 14:18:14 +00:00
|
|
|
%{python2_sitelib}/python_linux_procfs*.egg-info
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-linux-procfs
|
|
|
|
%defattr(0755,root,root,0755)
|
|
|
|
%{_bindir}/pflags
|
|
|
|
%{python3_sitelib}/procfs/
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{python3_sitelib}/python_linux_procfs*.egg-info
|
|
|
|
%license COPYING
|
2009-02-18 21:28:40 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2018-06-19 09:07:50 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.1-5
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-09 08:44:30 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-25 22:27:50 +00:00
|
|
|
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.1-3
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2017-11-21 14:18:14 +00:00
|
|
|
* Tue Nov 21 2017 Jiri Kastner <jkastner@redhat.com> - 0.5.1-2
|
|
|
|
- missing defattr for _bindir
|
|
|
|
|
|
|
|
* Tue Nov 21 2017 Jiri Kastner <jkastner@redhat.com> - 0.5.1-1
|
|
|
|
- missed snippet in specfile for python2 only
|
|
|
|
- added scripts to setup.py, pflags renamed and added to setup.py
|
|
|
|
|
|
|
|
* Mon Nov 20 2017 Jiri Kastner <jkastner@redhat.com> - 0.5-1
|
|
|
|
- update to 0.5
|
|
|
|
|
2017-08-19 13:41:24 +00:00
|
|
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.4.10-4
|
|
|
|
- Python 2 binary package renamed to python2-linux-procfs
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-07-27 10:49:00 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 09:29:57 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-22 22:34:37 +00:00
|
|
|
* Thu Dec 22 2016 Jiri Kastner <jkastner@redhat.com> - 0.4.10-1
|
|
|
|
- update to latest release
|
|
|
|
|
2016-07-19 10:20:41 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-7
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 20:04:51 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 19:49:45 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-10-10 13:17:23 +00:00
|
|
|
* Fri Oct 10 2014 Jiri Kastner <jkastner@redhat.com> - 0.4.6-4
|
|
|
|
- fix source and url
|
|
|
|
|
2014-06-07 21:12:58 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 08:15:57 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2014-10-10 13:17:23 +00:00
|
|
|
* Fri Jun 14 2013 Jiri Kastner <jkastner@redhat.com> - 0.4.6-1
|
2013-06-14 15:23:09 +00:00
|
|
|
- updated to 0.4.6
|
|
|
|
|
2013-06-12 12:24:14 +00:00
|
|
|
* Thu Jun 6 2013 Jiri Kastner <jkastner@redhat.com> - 0.4.5-1
|
|
|
|
- Added support for parsing cgroups as a per thread attribute
|
|
|
|
|
2013-02-14 19:46:43 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 06:57:29 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 01:51:04 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-09 04:55:11 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-22 04:37:02 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2009-07-26 20:34:32 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 22:07:03 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2014-10-10 13:17:23 +00:00
|
|
|
* Tue Feb 10 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4.4-1
|
2009-02-18 21:28:40 +00:00
|
|
|
- Even more fixes due to the fedora review process
|
|
|
|
|
|
|
|
* Mon Feb 9 2009 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4.3-1
|
|
|
|
- Fixups due to the fedora review process
|
|
|
|
|
|
|
|
* Tue Aug 12 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4.2-1
|
|
|
|
- interrupts: Add find_by_user_regex
|
|
|
|
- process: Always set the "cmdline" array, even if empty
|
|
|
|
- pidstats: Remove dead processes in find_by_name()
|
|
|
|
- pidstats: Add process class to catch dict references for late parsing
|
|
|
|
- pidstats: Move the /proc/PID/{stat,status} parsing to classes
|
|
|
|
- pidstats: Introduce process_flags method
|
|
|
|
|
|
|
|
* Tue Aug 12 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.4-1
|
|
|
|
- Per process flags needed by tuna
|
|
|
|
|
|
|
|
* Fri Jun 13 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-1
|
|
|
|
- Support CPU hotplug
|
|
|
|
|
|
|
|
* Mon Feb 25 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
|
|
|
|
- package created
|