File project.diff of Package python-numpy

--- python-numpy-doc.spec	(revision 1)
+++ python-numpy-doc.spec	(working copy)
@@ -1,7 +1,7 @@
 #
 # spec file for package python-numpy-doc
 #
-# Copyright (c) 2017 SUSE LINUX 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
@@ -36,20 +36,20 @@
 BuildRequires:  python3-numpy-devel = %{version}
 BuildRequires:  python3-numpydoc
 BuildRequires:  python3-setuptools
+BuildRequires:  unzip
 BuildRequires:  zip
-BuildRequires:  unzip
 %if 0%{?suse_version}
 BuildRequires:  fdupes
 %endif
 Provides:       python2-numpy-doc = %{version}
+Provides:       python2-numpy-doc-html = %{version}
+Provides:       python2-numpy-doc-pdf = %{version}
 Provides:       python3-numpy-doc = %{version}
-Provides:       python2-numpy-doc-html = %{version}
 Provides:       python3-numpy-doc-html = %{version}
-Provides:       python2-numpy-doc-pdf = %{version}
 Provides:       python3-numpy-doc-pdf = %{version}
 Obsoletes:      python2-numpy-doc-html < %{version}
+Obsoletes:      python2-numpy-doc-pdf < %{version}
 Obsoletes:      python3-numpy-doc-html < %{version}
-Obsoletes:      python2-numpy-doc-pdf < %{version}
 Obsoletes:      python3-numpy-doc-pdf < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
@@ -77,13 +77,11 @@
 # drop build date from doc to fix build-compare
 sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" doc/source/conf.py
 
-
 %build
 # make the documentation
 pushd doc
 make html PYVER=%{py3_ver}
 popd
-
 
 %install
 # install the documentation
@@ -93,7 +91,6 @@
 %fdupes %{buildroot}%{_docdir}/python-numpy/html/
 %endif
 
-
 %files
 %defattr(-,root,root)
 %{_docdir}/python-numpy/
--- python-numpy.changes	(revision 1)
+++ python-numpy.changes	(working copy)
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Wed Feb 28 13:01:22 UTC 2018 - aplanas@suse.com
+
+- Drop some Python3 bits for CentOS
+
 -------------------------------------------------------------------
 Wed Jul  5 14:24:59 UTC 2017 - schwab@suse.de
 
Index: python-numpy.spec
===================================================================
--- python-numpy.spec	(revision 1)
+++ python-numpy.spec	(working copy)
@@ -1,7 +1,7 @@
 #
 # spec file for package python-numpy
 #
-# Copyright (c) 2017 SUSE LINUX 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
@@ -38,7 +38,6 @@
 %endif
 %endif
 
-
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-numpy
 Version:        1.12.1
@@ -63,12 +62,12 @@
 %else
 BuildRequires:  gcc-gfortran
 %endif
-BuildRequires:  lapack-devel
-BuildRequires:  unzip
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  lapack-devel
+BuildRequires:  python-rpm-macros
+BuildRequires:  unzip
 %if %{with openblas}
 BuildRequires:  openblas-devel
 %endif
@@ -117,25 +116,21 @@
 # Fix non-executable scripts
 sed -i "1d" numpy/{compat/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/setup,matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py
 
-
 %build
 export CFLAGS="%{optflags} -fno-strict-aliasing"
 %python_build
 
-
 %install
-%python_exec setup.py install --prefix=%{_prefix} --root=%{buildroot}
-%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite
 %if 0%{?suse_version}
 %fdupes %{buildroot}%{prefix}
 %endif
 
-
 %files %{python_files}
 %defattr(-,root,root)
 %doc *.txt
-%python2_only %{_bindir}/f2py2
-%python3_only %{_bindir}/f2py3
+%{_bindir}/f2py
 %{python_sitearch}/numpy/
 %{python_sitearch}/numpy-%{version}-py*.egg-info
 %exclude %{python_sitearch}/numpy/*/*/*.c
@@ -143,7 +138,6 @@
 %exclude %{python_sitearch}/numpy/*/*/*.h
 %exclude %{python_sitearch}/numpy/*/*/*/*.h
 %exclude %{python_sitearch}/numpy/core/lib/libnpymath.a
-
 
 %files %{python_files devel}
 %defattr(-,root,root)

openSUSE Build Service is sponsored by