Blame SPECS/python-psutil.spec

dd1daa
%{?scl:%scl_package python-%{srcname}}
dd1daa
%{!?scl:%global pkg_name %{name}}
dd1daa
dd1daa
%global python3_pkgversion %{nil}
dd1daa
dd1daa
%global srcname psutil
dd1daa
%global sum A process and system utilities module for Python
dd1daa
dd1daa
# Filter Python modules from Provides
dd1daa
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
dd1daa
dd1daa
# Possibility to disable tests
dd1daa
%bcond_with tests
dd1daa
dd1daa
Name:           %{?scl_prefix}python-%{srcname}
dd1daa
Version:        5.6.4
92a90b
Release:        5%{?dist}
dd1daa
Summary:        %{sum}
dd1daa
dd1daa
License:        BSD
dd1daa
URL:            https://github.com/giampaolo/psutil
dd1daa
Source0:        https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
dd1daa
92a90b
# Fix CVE-2019-18874
92a90b
# Resolved upstream: https://github.com/giampaolo/psutil/commit/7d512c8e4442a896d56505be3e78f1156f443465
92a90b
# and https://github.com/giampaolo/psutil/commit/3a9bccfd2c6d2e6538298cd3892058b1204056e0
92a90b
Patch0:         CVE-2019-18874.patch
92a90b
dd1daa
%{?scl:Requires: %{scl}-runtime}
dd1daa
%{?scl:BuildRequires: %{scl}-runtime}
dd1daa
BuildRequires:  gcc
dd1daa
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-devel
dd1daa
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-rpm-macros
dd1daa
# Test dependencies
dd1daa
%if %{with tests}
dd1daa
BuildRequires:  procps-ng
dd1daa
BuildRequires:  %{?scl_prefix}python%{python3_pkgversion}-mock
dd1daa
%endif
dd1daa
dd1daa
%description
dd1daa
psutil is a module providing an interface for retrieving information on all
dd1daa
running processes and system utilization (CPU, memory, disks, network, users) in
dd1daa
a portable way by using Python, implementing many functionalities offered by
dd1daa
command line tools such as: ps, top, df, kill, free, lsof, free, netstat,
dd1daa
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
dd1daa
dd1daa
%prep
dd1daa
%{?scl:scl enable %{scl} - << \EOF}
dd1daa
set -ex
92a90b
%autosetup -p1 -n %{srcname}-release-%{version}
dd1daa
dd1daa
# Remove shebangs
dd1daa
find psutil -name \*.py | while read file; do
dd1daa
  sed -i.orig -e '1{/^#!/d}' $file && \
dd1daa
  touch -r $file.orig $file && \
dd1daa
  rm $file.orig
dd1daa
done
dd1daa
dd1daa
%{?scl:EOF}
dd1daa
dd1daa
dd1daa
%build
dd1daa
%{?scl:scl enable %{scl} - << \EOF}
dd1daa
set -ex
dd1daa
%py3_build
dd1daa
dd1daa
%{?scl:EOF}
dd1daa
dd1daa
dd1daa
%install
dd1daa
%{?scl:scl enable %{scl} - << \EOF}
dd1daa
set -ex
dd1daa
%py3_install
dd1daa
dd1daa
%{?scl:EOF}
dd1daa
dd1daa
dd1daa
%if %{with tests}
dd1daa
%check
dd1daa
%{?scl:scl enable %{scl} - << \EOF}
dd1daa
set -ex
dd1daa
make test-memleaks PYTHON=%{__python3}
dd1daa
dd1daa
%{?scl:EOF}
dd1daa
%endif
dd1daa
dd1daa
%files
dd1daa
%license LICENSE
dd1daa
%doc CREDITS HISTORY.rst README.rst
dd1daa
%{python3_sitearch}/%{srcname}/
dd1daa
%{python3_sitearch}/*.egg-info
dd1daa
dd1daa
dd1daa
%changelog
92a90b
* Tue Oct 13 2020 Charalampos Stratakis <cstratak@redhat.com> - 5.6.4-5
92a90b
- Security fix for CVE-2019-18874
92a90b
Resolves: rhbz#1887535
92a90b
dd1daa
* Tue Feb 04 2020 Lumír Balhar <lbalhar@redhat.com> - 5.6.4-4
dd1daa
- Import from the python38 module and modified for rh-python38 RHSCL
dd1daa
Resolves: rhbz#1671025
dd1daa
dd1daa
* Thu Dec 12 2019 Tomas Orsava <torsava@redhat.com> - 5.6.4-3
dd1daa
- Exclude unsupported i686 arch
dd1daa
dd1daa
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 5.6.4-2
dd1daa
- Adjusted for Python 3.8 module in RHEL 8
dd1daa
dd1daa
* Wed Nov 06 2019 Lumír Balhar <lbalhar@redhat.com> - 5.6.4-1
dd1daa
- New upstream release 5.6.4
dd1daa
- bcond for Python 2 subpackage and tests
dd1daa
- Enabled tests
dd1daa
dd1daa
* Sun Oct 06 2019 Kevin Fenzi <kevin@scrye.com> - 5.6.3-5
dd1daa
- Add python2-setuptools to BuildRequires to fix egg info. Fixes bug #1750362
dd1daa
dd1daa
* Tue Sep 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.6.3-4
dd1daa
- Reduce unused build dependencies
dd1daa
dd1daa
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 5.6.3-3
dd1daa
- Rebuilt for Python 3.8
dd1daa
dd1daa
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.3-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dd1daa
dd1daa
* Sun Jun 30 2019 Kevin Fenzi <kevin@scrye.com> - 5.6.3-1
dd1daa
- Update to 5.6.3 Fixes bug #1567102
dd1daa
dd1daa
* Thu Feb 28 2019 Yatin Karel <ykarel@redhat.com> - 5.5.1-1
dd1daa
- Update to 5.5.1 (Resolves #1567102)
dd1daa
dd1daa
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-7
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
dd1daa
dd1daa
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-6
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dd1daa
dd1daa
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 5.4.3-5
dd1daa
- Rebuilt for Python 3.7
dd1daa
dd1daa
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-4
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dd1daa
dd1daa
* Mon Jan 29 2018 Iryna Shcherbina <ishcherb@redhat.com> - 5.4.3-3
dd1daa
- Update Python 2 dependency declarations to new packaging standards
dd1daa
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
dd1daa
dd1daa
* Mon Jan 22 2018 Gwyn Ciesla <limburgher@gmail.com> - 5.4.3-2
dd1daa
- Disable tests entirely.
dd1daa
dd1daa
* Mon Jan 22 2018 Gwyn Ciesla <limburgher@gmail.com> - 5.4.3-1
dd1daa
- 5.4.3
dd1daa
dd1daa
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-3
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dd1daa
dd1daa
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.2-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
dd1daa
dd1daa
* Sun Apr 23 2017 Kevin Fenzi <kevin@scrye.com> - 5.2.2-1
dd1daa
- Update to 5.2.2. Fixes bug #1441010
dd1daa
dd1daa
* Sat Mar 25 2017 Kevin Fenzi <kevin@scrye.com> - 5.2.1-1
dd1daa
- Update to 5.2.1. Fixes bug #1418489
dd1daa
dd1daa
* Sat Feb 25 2017 Kevin Fenzi <kevin@scrye.com> - 5.1.3-1
dd1daa
- Update to 5.1.3. Fixes bug #1418489
dd1daa
dd1daa
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dd1daa
dd1daa
* Mon Jan 02 2017 Kevin Fenzi <kevin@scrye.com> - 5.0.1-1
dd1daa
- Update to 5.0.1. Fixes bug #1389579
dd1daa
- Disable failing test while upstream looks at it. 
dd1daa
dd1daa
* Wed Nov 09 2016 Kevin Fenzi <kevin@scrye.com> - 5.0.0-1
dd1daa
- Update to 5.0.0. Fixes bug #1389579
dd1daa
dd1daa
* Tue Oct 25 2016 Kevin Fenzi <kevin@scrye.com> - 4.4.0-1
dd1daa
- Update to 4.4.0. Fixes bug #1387942
dd1daa
dd1daa
* Sat Sep 03 2016 Kevin Fenzi <kevin@scrye.com> - 4.3.1-1
dd1daa
- Update to 4.3.1. Fixes bug #1372500
dd1daa
dd1daa
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.0-2
dd1daa
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
dd1daa
dd1daa
* Tue Jun 21 2016 Orion Poplawski <orion@cora.nwra.com> - 4.3.0-1
dd1daa
- Update to 4.3.0
dd1daa
dd1daa
* Mon May 16 2016 Orion Poplawski <orion@cora.nwra.com> - 3.2.1-6
dd1daa
- Use modern provides filter
dd1daa
- Update URL
dd1daa
- Use %%python3_pkgversion for EPEL7 compat
dd1daa
dd1daa
* Fri Mar 11 2016 Than Ngo <than@redhat.com> - 3.2.1-5
dd1daa
- fix endian issue on s390x/ppc64
dd1daa
dd1daa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
dd1daa
dd1daa
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-3
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
dd1daa
dd1daa
* Fri Sep  4 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.2.1-2
dd1daa
- Add Obsoletes for old package
dd1daa
dd1daa
* Fri Sep  4 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.2.1-1
dd1daa
- Update to 3.2.1
dd1daa
- Update to latest Python guidelines (https://fedorahosted.org/fpc/ticket/281)
dd1daa
dd1daa
* Wed Jul 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.1.1-2
dd1daa
- Restore *.so files
dd1daa
- Enable tests
dd1daa
dd1daa
* Tue Jul 21 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.1.1-1
dd1daa
- Update to 3.1.1
dd1daa
dd1daa
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dd1daa
dd1daa
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 2.2.0-1
dd1daa
- new version
dd1daa
dd1daa
* Wed Dec  3 2014 Michel Alexandre Salim <salimma@fedoraproject.org> - 2.1.3-1
dd1daa
- Update to 2.1.3
dd1daa
dd1daa
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
dd1daa
dd1daa
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 1.2.1-4
dd1daa
- fix license handling
dd1daa
dd1daa
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
dd1daa
dd1daa
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.2.1-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
dd1daa
dd1daa
* Mon Jan 06 2014 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.2.1-1
dd1daa
- Update to 1.2.1
dd1daa
dd1daa
* Fri Aug 16 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.0.1-1
dd1daa
- Update to 1.0.1
dd1daa
dd1daa
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
dd1daa
dd1daa
* Sun May 12 2013 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.7.1-1
dd1daa
- Update to 0.7.1
dd1daa
dd1daa
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dd1daa
dd1daa
* Sun Aug 19 2012 Mohamed El Morabity <melmorabity@fedorapeople.org> - 0.6.1-1
dd1daa
- Update to 0.6.1
dd1daa
dd1daa
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.5.1-3
dd1daa
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
dd1daa
dd1daa
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dd1daa
dd1daa
* Sun Jul 01 2012 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.5.1-1
dd1daa
- Update to 0.5.1
dd1daa
dd1daa
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dd1daa
dd1daa
* Fri Dec 16 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.4.1-1
dd1daa
- Update to 0.4.1
dd1daa
dd1daa
* Sun Nov 20 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.4.0-1
dd1daa
- Update to 0.4.0
dd1daa
dd1daa
* Mon Jul 18 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.3.0-1
dd1daa
- Update to 0.3.0
dd1daa
dd1daa
* Wed Mar 23 2011 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.2.1-1
dd1daa
- Update to 0.2.1
dd1daa
- Spec cleanup
dd1daa
dd1daa
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dd1daa
dd1daa
* Mon Nov 22 2010 Mohamed El Morabity <melmorabity@fedoraproject.org> - 0.2.0-1
dd1daa
- Update to 0.2.0
dd1daa
dd1daa
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.3-5
dd1daa
- rebuild with python3.2
dd1daa
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
dd1daa
dd1daa
* Fri Jul 30 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1.3-4
dd1daa
- bump, because previous build nvr already existed in F-14
dd1daa
dd1daa
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.1.3-3
dd1daa
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
dd1daa
dd1daa
* Tue Apr 13 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 0.1.3-2
dd1daa
- Add missing popd in %%build
dd1daa
dd1daa
* Sat Mar 27 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 0.1.3-1
dd1daa
- Update to 0.1.3
dd1daa
- Remove useless call to 2to3 and corresponding BuildRequires
dd1daa
  python2-tools (this version supports Python 3)
dd1daa
dd1daa
* Sat Feb 20 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 0.1.2-4
dd1daa
- Change python-utils BuildRequires for python2-utils
dd1daa
dd1daa
* Sat Feb 20 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 0.1.2-3
dd1daa
- Add python3 subpackage
dd1daa
dd1daa
* Thu Jan 14 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 0.1.2-2
dd1daa
- Drop no-shebang patch for a sed command
dd1daa
- Drop test suite from %%doc tag
dd1daa
dd1daa
* Fri Jan  8 2010 ELMORABITY Mohamed <melmorabity@fedoraproject.org> 0.1.2-1
dd1daa
- Initial RPM release