Hello community, here is the log from the commit of package python-weave for openSUSE:Factory checked in at 2018-06-29 22:36:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-weave (Old) and /work/SRC/openSUSE:Factory/.python-weave.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-weave" Fri Jun 29 22:36:34 2018 rev:4 rq:619737 version:0.16.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-weave/python-weave.changes 2017-05-17 10:55:27.133558960 +0200 +++ /work/SRC/openSUSE:Factory/.python-weave.new/python-weave.changes 2018-06-29 22:36:46.309982478 +0200 @@ -1,0 +2,10 @@ +Wed Jun 27 22:25:21 UTC 2018 - [email protected] + +- Clean up SPEC, make tests running (py2k only, because of upstream) + +------------------------------------------------------------------- +Thu Aug 24 13:57:16 UTC 2017 - [email protected] + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -11,0 +22 @@ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-weave.spec ++++++ --- /var/tmp/diff_new_pack.P3qT43/_old 2018-06-29 22:36:46.693982145 +0200 +++ /var/tmp/diff_new_pack.P3qT43/_new 2018-06-29 22:36:46.697982141 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-weave # -# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,37 @@ # +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +%define skip_python3 1 +%define oldpython python + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-weave Version: 0.16.0 Release: 0 Summary: Weave: a C++ compiler for Python License: BSD-3-Clause Group: Development/Libraries/Python -Url: http://www.github.com/scipy/weave -Source: https://files.pythonhosted.org/packages/source/w/weave/weave-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-numpy-devel -BuildRequires: python-scipy +URL: http://www.github.com/scipy/weave +Source0: https://files.pythonhosted.org/packages/source/w/weave/weave-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module numpy-devel} +BuildRequires: %{python_module scipy} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros +# Required for the running of the testsuite +BuildRequires: system-user-nobody Requires: python-numpy Requires: python-scipy -Provides: python-scipy-weave = %{version} -Obsoletes: python-scipy-weave < %{version} Provides: python-weave-devel = %{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%ifpython2 +Provides: %{oldpython}-scipy-weave = %{version} +Obsoletes: %{oldpython}-scipy-weave < %{version} +%endif +%python_subpackages %description Weave provides tools for including C/C++ code within Python code. Inlining @@ -48,20 +61,25 @@ %prep %setup -q -n weave-%{version} +sed -i -e '1d' weave/setup.py %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# Don't ship tests -find %{buildroot}%{python_sitelib}/weave -type d -name tests | xargs rm -rf -# Don't ship weave examples, they're marked as documentation: -find %{buildroot}%{python_sitelib}/weave -type d -name examples | xargs rm -rf - -%files -%defattr(-,root,root,-) -%doc LICENSE.txt +%python_install +%{python_expand # Don't ship tests + rm -rfv %{buildroot}%{$python_sitelib}/weave/tests + # Deduplicate files + %fdupes %{buildroot}%{$python_sitelib} +} + +%check +export PYTHONPATH=. +%python_exec -c 'import weave; weave.test(verbose=2)' + +%files %{python_files} +%license LICENSE.txt %doc doc/tutorial* %{python_sitelib}/weave-%{version}-py*.egg-info %{python_sitelib}/weave
