Update to 3.2.1
- Update to latest Python guidelines (https://fedorahosted.org/fpc/ticket/281)
This commit is contained in:
parent
e49f6f60f7
commit
f3be17d1e0
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ psutil-0.1.3.tar.gz
|
|||||||
/psutil-2.1.3.tar.gz
|
/psutil-2.1.3.tar.gz
|
||||||
/psutil-2.2.0.tar.gz
|
/psutil-2.2.0.tar.gz
|
||||||
/psutil-3.1.1.tar.gz
|
/psutil-3.1.1.tar.gz
|
||||||
|
/psutil-3.2.1.tar.gz
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
%global with_python3 1
|
%global srcname psutil
|
||||||
%global short_name psutil
|
%global sum A process and system utilities module for Python
|
||||||
|
|
||||||
# Filter Python modules from Provides
|
# Filter Python modules from Provides
|
||||||
%{?filter_setup:
|
%{?filter_setup:
|
||||||
@ -7,25 +7,21 @@
|
|||||||
%filter_setup
|
%filter_setup
|
||||||
}
|
}
|
||||||
|
|
||||||
Name: python-psutil
|
Name: python-%{srcname}
|
||||||
Version: 3.1.1
|
Version: 3.2.1
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A process and system utilities module for Python
|
Summary: %{sum}
|
||||||
|
|
||||||
Group: Development/Languages
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://psutil.googlecode.com/
|
URL: http://psutil.googlecode.com/
|
||||||
Source0: https://pypi.python.org/packages/source/p/%{short_name}/%{short_name}-%{version}.tar.gz
|
Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python3-devel
|
||||||
# Test dependencies
|
# Test dependencies
|
||||||
BuildRequires: procps-ng
|
BuildRequires: procps-ng
|
||||||
BuildRequires: python-mock
|
BuildRequires: python-mock
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
# Test dependencies
|
|
||||||
BuildRequires: python3-mock
|
BuildRequires: python3-mock
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
psutil is a module providing an interface for retrieving information on all
|
psutil is a module providing an interface for retrieving information on all
|
||||||
@ -35,10 +31,20 @@ command line tools such as: ps, top, df, kill, free, lsof, free, netstat,
|
|||||||
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
|
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%package -n python2-%{srcname}
|
||||||
|
Summary: %{sum}
|
||||||
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
|
|
||||||
|
%description -n python2-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.
|
||||||
|
|
||||||
%package -n python3-psutil
|
%package -n python3-psutil
|
||||||
Summary: A process and system utilities module for Python 3
|
Summary: %{sum}
|
||||||
Group: Development/Languages
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
|
||||||
%description -n python3-psutil
|
%description -n python3-psutil
|
||||||
psutil is a module providing an interface for retrieving information on all
|
psutil is a module providing an interface for retrieving information on all
|
||||||
@ -46,11 +52,10 @@ running processes and system utilization (CPU, memory, disks, network, users) in
|
|||||||
a portable way by using Python 3, implementing many functionalities offered by
|
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,
|
command line tools such as: ps, top, df, kill, free, lsof, free, netstat,
|
||||||
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
|
ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, pmap.
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{short_name}-%{version}
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
|
||||||
# Remove shebangs
|
# Remove shebangs
|
||||||
for file in psutil/*.py; do
|
for file in psutil/*.py; do
|
||||||
@ -59,66 +64,44 @@ for file in psutil/*.py; do
|
|||||||
rm $file.orig
|
rm $file.orig
|
||||||
done
|
done
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
rm -rf %{py3dir}
|
|
||||||
cp -a . %{py3dir}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS=$RPM_OPT_FLAGS %{__python} setup.py build
|
%py2_build
|
||||||
|
%py3_build
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
CFLAGS=$RPM_OPT_FLAGS %{__python3} setup.py build
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__python} setup.py install \
|
%py2_install
|
||||||
--skip-build \
|
%py3_install
|
||||||
--root $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{__python3} setup.py install \
|
|
||||||
--skip-build \
|
|
||||||
--root $RPM_BUILD_ROOT
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# the main test target causes failures, investigating
|
# the main test target causes failures, investigating
|
||||||
make test-memleaks
|
make test-memleaks PYTHON=%{__python2}
|
||||||
|
make test-memleaks PYTHON=%{__python3}
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{py3dir}
|
|
||||||
make test-memleaks
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files -n python2-%{srcname}
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CREDITS HISTORY.rst README.rst TODO
|
%doc CREDITS HISTORY.rst README.rst TODO
|
||||||
%{python_sitearch}/%{short_name}/
|
%{python2_sitearch}/%{srcname}/
|
||||||
%{python_sitearch}/*.egg-info
|
%{python2_sitearch}/*.egg-info
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%files -n python3-%{srcname}
|
||||||
%files -n python3-psutil
|
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CREDITS HISTORY.rst README.rst TODO
|
%doc CREDITS HISTORY.rst README.rst TODO
|
||||||
%{python3_sitearch}/%{short_name}/
|
%{python3_sitearch}/%{srcname}/
|
||||||
%{python3_sitearch}/*.egg-info
|
%{python3_sitearch}/*.egg-info
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 4 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.2.1-1
|
||||||
|
- Update to 3.2.1
|
||||||
|
- Update to latest Python guidelines (https://fedorahosted.org/fpc/ticket/281)
|
||||||
|
|
||||||
* Wed Jul 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.1.1-2
|
* Wed Jul 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.1.1-2
|
||||||
- Restore *.so files
|
- Restore *.so files
|
||||||
- Enable tests
|
- Enable tests
|
||||||
|
Loading…
Reference in New Issue
Block a user