Restore *.so files

- Enable tests
This commit is contained in:
Michel Alexandre Salim 2015-07-22 20:40:33 +07:00
parent 309b4ec271
commit e49f6f60f7

View File

@ -9,7 +9,7 @@
Name: python-psutil Name: python-psutil
Version: 3.1.1 Version: 3.1.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: A process and system utilities module for Python Summary: A process and system utilities module for Python
Group: Development/Languages Group: Development/Languages
@ -18,8 +18,13 @@ 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/%{short_name}/%{short_name}-%{version}.tar.gz
BuildRequires: python2-devel BuildRequires: python2-devel
# Test dependencies
BuildRequires: procps-ng
BuildRequires: python-mock
%if 0%{?with_python3} %if 0%{?with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
# Test dependencies
BuildRequires: python3-mock
%endif %endif
%description %description
@ -84,13 +89,22 @@ popd
%endif %endif
%check
# the main test target causes failures, investigating
make test-memleaks
%if 0%{?with_python3}
pushd %{py3dir}
make test-memleaks
popd
%endif
%files %files
%{!?_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}/ %{python_sitearch}/%{short_name}/
%exclude %{python_sitearch}/%{short_name}/*.so
%attr(0755,-,-) %{python_sitearch}/%{short_name}/*.so
%{python_sitearch}/*.egg-info %{python_sitearch}/*.egg-info
@ -100,13 +114,15 @@ popd
%license LICENSE %license LICENSE
%doc CREDITS HISTORY.rst README.rst TODO %doc CREDITS HISTORY.rst README.rst TODO
%{python3_sitearch}/%{short_name}/ %{python3_sitearch}/%{short_name}/
%exclude %{python3_sitearch}/%{short_name}/*.so
%attr(0755,-,-) %{python3_sitearch}/%{short_name}/*.so
%{python3_sitearch}/*.egg-info %{python3_sitearch}/*.egg-info
%endif %endif
%changelog %changelog
* Wed Jul 22 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.1.1-2
- Restore *.so files
- Enable tests
* Tue Jul 21 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.1.1-1 * Tue Jul 21 2015 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.1.1-1
- Update to 3.1.1 - Update to 3.1.1