Compare commits

...

10 Commits

Author SHA1 Message Date
Kevin Fenzi 0e93168108 Update to 5.6.7. Fixes CVE-2019-18874 2020-02-16 15:58:32 -08:00
Kevin Fenzi 7a3ec69971 Clean up spec and source/upstream. 2019-05-04 10:31:06 -07:00
Troy Dawson 3aa51948d2 Revert extra release bumps 2019-03-07 19:32:16 -08:00
Troy Dawson 05aa4b88eb Rebuilt to change main python from 3.4 to 3.6 2019-03-07 19:17:24 -08:00
Orion Poplawski 8b8a502860 Build for python36 2018-11-12 20:26:09 -07:00
Björn Esser f9d4da0a36
Use proper Python3 macros 2017-11-16 21:17:55 +01:00
Björn Esser e8e8c768e0 Build a package for Python34 2017-08-31 10:10:44 +02:00
Ralph Bean 3ce0b03b77 2.2.1 2015-12-09 11:06:52 -05:00
Matthias Runge a38c1ffabb update to 1.2.1 2015-03-11 20:34:28 +01:00
Matthias Runge 7e1476423b don't build py3 module on epel7 2014-02-18 19:28:38 +01:00
3 changed files with 104 additions and 70 deletions

2
.gitignore vendored
View File

@ -6,3 +6,5 @@ psutil-0.1.3.tar.gz
/psutil-0.4.1.tar.gz
/psutil-0.5.1.tar.gz
/psutil-0.6.1.tar.gz
/psutil-1.2.1.tar.gz
/psutil-2.2.1.tar.gz

View File

@ -1,51 +1,64 @@
%global with_python3 1
%global short_name psutil
%global srcname psutil
# Filter Python modules from Provides
%{?filter_setup:
%filter_provides_in %{python_sitearch}/.*\.so$
%filter_setup
}
%global _desc \
psutil is a module providing an interface for retrieving information on all \
running processes and system utilization (CPU, memory, disks, network, users) in \
a portable way by using Python, implementing many functionalities offered by \
command line tools such as: ps, top, df, kill, free, lsof, free, netstat, \
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
%global _sum A process and system utilities module for Python
Name: python-psutil
Version: 0.6.1
Release: 2%{?dist}
Summary: A process and system utilities module for Python
Version: 5.6.7
Release: 1%{?dist}
Summary: %{_sum}
Group: Development/Languages
License: BSD
URL: http://psutil.googlecode.com/
Source0: http://psutil.googlecode.com/files/%{short_name}-%{version}.tar.gz
URL: https://github.com/giampaolo/psutil
Source0: https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
BuildRequires: python2-devel
%if 0%{?with_python3}
BuildRequires: python3-devel
%endif
BuildRequires: python%{python3_pkgversion}-devel
%description
psutil is a module providing an interface for retrieving information on all
running processes and system utilization (CPU, memory, disks, network, users) in
a portable way by using Python, implementing many functionalities offered by
command line tools such as: ps, top, df, kill, free, lsof, free, netstat,
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
%{_desc}
%if 0%{?with_python3}
%package -n python3-psutil
Summary: A process and system utilities module for Python 3
%package -n python2-psutil
Summary: %{_sum}
Group: Development/Languages
%{?python_provide:%python_provide python2-psutil}
%description -n python3-psutil
psutil is a module providing an interface for retrieving information on all
running processes and system utilization (CPU, memory, disks, network, users) in
a portable way by using Python 3, implementing many functionalities offered by
command line tools such as: ps, top, df, kill, free, lsof, free, netstat,
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
%description -n python2-psutil
%{_desc}
%package -n python%{python3_pkgversion}-psutil
Summary: %{_sum}
Group: Development/Languages
%{?python_provide:%python_provide python%{python3_pkgversion}-psutil}
%description -n python%{python3_pkgversion}-psutil
%{_desc}
%if 0%{?python3_other_pkgversion}
%package -n python%{python3_other_pkgversion}-psutil
Summary: %{_sum}
Group: Development/Languages
%{?python_provide:%python_provide python%{python3_other_pkgversion}-psutil}
BuildRequires: python%{python3_other_pkgversion}-devel
%description -n python%{python3_other_pkgversion}-psutil
%{_desc}
%endif
%prep
%setup -q -n %{short_name}-%{version}
%autosetup -p1 -n %{srcname}-release-%{version}
# Remove shebangs
for file in psutil/*.py; do
@ -54,59 +67,78 @@ for file in psutil/*.py; do
rm $file.orig
done
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%build
CFLAGS=$RPM_OPT_FLAGS %{__python} setup.py build
%if 0%{?with_python3}
pushd %{py3dir}
CFLAGS=$RPM_OPT_FLAGS %{__python3} setup.py build
popd
%py2_build
%py3_build
%if 0%{?python3_other_pkgversion}
%py3_other_build
%endif
%install
%{__python} setup.py install \
--skip-build \
--root $RPM_BUILD_ROOT
# Fix permissions
chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/*.so
%if 0%{?with_python3}
pushd %{py3dir}
%{__python3} setup.py install \
--skip-build \
--root $RPM_BUILD_ROOT
popd
# Fix permissions
chmod 0755 $RPM_BUILD_ROOT%{python3_sitearch}/*.so
%py2_install
%py3_install
%if 0%{?python3_other_pkgversion}
%py3_other_install
%endif
%files
%doc CREDITS HISTORY LICENSE README
%{python_sitearch}/%{short_name}/
%{python_sitearch}/*.egg-info
%{python_sitearch}/*.so
%files -n python2-psutil
%license LICENSE
%doc CREDITS HISTORY.rst README.rst
%{python2_sitearch}/%{srcname}/
%{python2_sitearch}/*.egg-info
%{python2_sitearch}/%{srcname}/*.so
%if 0%{?with_python3}
%files -n python3-psutil
%doc CREDITS HISTORY LICENSE README
%{python3_sitearch}/%{short_name}/
%files -n python%{python3_pkgversion}-psutil
%license LICENSE
%doc CREDITS HISTORY.rst README.rst
%{python3_sitearch}/%{srcname}/
%{python3_sitearch}/*.egg-info
%{python3_sitearch}/*.so
%{python3_sitearch}/%{srcname}/*.so
%if 0%{?python3_other_pkgversion}
%files -n python%{python3_other_pkgversion}-psutil
%license LICENSE
%doc CREDITS HISTORY.rst README.rst
%{python3_other_sitearch}/%{srcname}/
%{python3_other_sitearch}/*.egg-info
%{python3_other_sitearch}/%{srcname}/*.so
%endif
%changelog
* Sun Feb 16 2020 Kevin Fenzi <kevin@scrye.com> - 5.6.7-1
- Update to 5.6.7. Fixes CVE-2019-18874
* Sat May 04 2019 Kevin Fenzi <kevin@scrye.com> - 2.2.1-6
- Clean up spec and source/upstream.
* Fri Mar 08 2019 Troy Dawson <tdawson@redhat.com> - 2.2.1-5
- Rebuilt to change main python from 3.4 to 3.6
* Mon Nov 12 2018 Orion Poplawski <orion@nwra.com> - 2.2.1-4
- Build for python36
* Thu Nov 16 2017 Björn Esser <besser82@fedoraproject.org> - 2.2.1-3
- Use proper Python3 macros
* Thu Aug 31 2017 Björn Esser <besser82@fedoraproject.org> - 2.2.1-2
- Build a package for Python34
* Wed Dec 09 2015 Ralph Bean <rbean@redhat.com> - 2.2.1-1
- Update to 2.2.1 for https://bugzilla.redhat.com/1288221
- Update names of %%doc files.
* Wed Mar 11 2015 Alan Pevec <apevec@redhat.com> - 1.2.1-1
- Update to 1.2.1
* Tue Feb 18 2014 Matthias Runge <mrunge@redhat.com> - 0.6.1-3
- epel doesn't have python3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

View File

@ -1 +1 @@
3cfcbfb8525f6e4c70110e44a85e907e psutil-0.6.1.tar.gz
SHA512 (psutil-5.6.7.tar.gz) = 2d359e681310208c09ae8270aa4545478101ef4201e3a2613e92432ed29a15b70a4f96423a2bbb75e87540af4c538b9c6abe3713f5c84fe208d86382c350c60e