parent
1a96b4ae2f
commit
c1994df3a0
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ scipy-0.7.2.tar.gz
|
|||||||
/scipy-0.19.0.tar.xz
|
/scipy-0.19.0.tar.xz
|
||||||
/scipy-0.19.1.tar.xz
|
/scipy-0.19.1.tar.xz
|
||||||
/scipy-1.0.0.tar.xz
|
/scipy-1.0.0.tar.xz
|
||||||
|
/scipy-1.1.0.tar.gz
|
||||||
|
79
scipy.spec
79
scipy.spec
@ -1,18 +1,13 @@
|
|||||||
%global with_python3 1
|
# without means enabled
|
||||||
%global with_doc 1
|
%bcond_without doc
|
||||||
%{?filter_setup:
|
|
||||||
%filter_provides_in %{python2_sitearch}.*\.so$
|
|
||||||
%filter_provides_in %{python3_sitearch}.*\.so$
|
|
||||||
%filter_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
# Set to pre-release version suffix if building pre-release, else %%{nil}
|
# Set to pre-release version suffix if building pre-release, else %%{nil}
|
||||||
%global rcver %{nil}
|
%global rcver %{nil}
|
||||||
|
|
||||||
Summary: Scientific Tools for Python
|
Summary: Scientific Tools for Python
|
||||||
Name: scipy
|
Name: scipy
|
||||||
Version: 1.0.0
|
Version: 1.1.0
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
# BSD -- whole package except:
|
# BSD -- whole package except:
|
||||||
@ -20,9 +15,9 @@ Group: Development/Libraries
|
|||||||
# Public Domain -- scipy/odr/__odrpack.c
|
# Public Domain -- scipy/odr/__odrpack.c
|
||||||
License: BSD and Boost and Public Domain
|
License: BSD and Boost and Public Domain
|
||||||
Url: http://www.scipy.org/scipylib/index.html
|
Url: http://www.scipy.org/scipylib/index.html
|
||||||
Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.xz
|
Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: numpy, python2-devel,f2py
|
BuildRequires: python2-numpy, python2-devel,python2-numpy-f2py
|
||||||
BuildRequires: python2-pytest
|
BuildRequires: python2-pytest
|
||||||
BuildRequires: python2-pytest-xdist
|
BuildRequires: python2-pytest-xdist
|
||||||
BuildRequires: python2-pytest-timeout
|
BuildRequires: python2-pytest-timeout
|
||||||
@ -35,23 +30,20 @@ BuildRequires: atlas-devel
|
|||||||
BuildRequires: gcc-gfortran, swig, gcc-c++
|
BuildRequires: gcc-gfortran, swig, gcc-c++
|
||||||
BuildRequires: qhull-devel
|
BuildRequires: qhull-devel
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
BuildRequires: python3-numpy, python3-devel, python3-numpy-f2py
|
||||||
BuildRequires: python3-numpy, python3-devel, python3-f2py
|
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-pytest-xdist
|
BuildRequires: python3-pytest-xdist
|
||||||
BuildRequires: python3-pytest-timeout
|
BuildRequires: python3-pytest-timeout
|
||||||
%endif
|
|
||||||
%if 0%{?with_doc}
|
%if %{with doc}
|
||||||
BuildRequires: python2-sphinx
|
BuildRequires: python2-sphinx
|
||||||
BuildRequires: python2-matplotlib
|
BuildRequires: python2-matplotlib
|
||||||
BuildRequires: python2-numpydoc
|
BuildRequires: python2-numpydoc
|
||||||
%if 0%{?with_python3}
|
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
BuildRequires: python3-matplotlib
|
BuildRequires: python3-matplotlib
|
||||||
BuildRequires: python3-numpydoc
|
BuildRequires: python3-numpydoc
|
||||||
%endif # with_python3
|
%endif # with doc
|
||||||
%endif # with_doc
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Scipy is open-source software for mathematics, science, and
|
Scipy is open-source software for mathematics, science, and
|
||||||
@ -84,23 +76,20 @@ quick to install, and are free of charge. NumPy and SciPy are easy to
|
|||||||
use, but powerful enough to be depended upon by some of the world's
|
use, but powerful enough to be depended upon by some of the world's
|
||||||
leading scientists and engineers.
|
leading scientists and engineers.
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
%if %{with doc}
|
||||||
%package -n python2-scipy-doc
|
%package -n python2-scipy-doc
|
||||||
Summary: Scientific Tools for Python - documentation
|
Summary: Scientific Tools for Python - documentation
|
||||||
Requires: python2-scipy = %{version}-%{release}
|
Requires: python2-scipy = %{version}-%{release}
|
||||||
%description -n python2-scipy-doc
|
%description -n python2-scipy-doc
|
||||||
HTML documentation for Scipy
|
HTML documentation for Scipy
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-scipy-doc
|
%package -n python3-scipy-doc
|
||||||
Summary: Scientific Tools for Python - documentation
|
Summary: Scientific Tools for Python - documentation
|
||||||
Requires: python3-scipy = %{version}-%{release}
|
Requires: python3-scipy = %{version}-%{release}
|
||||||
%description -n python3-scipy-doc
|
%description -n python3-scipy-doc
|
||||||
HTML documentation for Scipy
|
HTML documentation for Scipy
|
||||||
%endif # with_python3
|
%endif # with doc
|
||||||
%endif # with_doc
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-scipy
|
%package -n python3-scipy
|
||||||
Summary: Scientific Tools for Python
|
Summary: Scientific Tools for Python
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -118,7 +107,6 @@ quick to install, and are free of charge. NumPy and SciPy are easy to
|
|||||||
use, but powerful enough to be depended upon by some of the world's
|
use, but powerful enough to be depended upon by some of the world's
|
||||||
leading scientists and engineers.
|
leading scientists and engineers.
|
||||||
|
|
||||||
%endif # with _python3
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}%{?rcver}
|
%setup -q -n %{name}-%{version}%{?rcver}
|
||||||
@ -141,9 +129,15 @@ openblas_libs = openblasp
|
|||||||
%endif
|
%endif
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# sphinx_build somehow randomly decides which docs to build here
|
||||||
|
# there is: doc/source/conf.py - scipy docs - we want that one
|
||||||
|
# doc/sphinxext/doc/conf.py - bundled numpydoc documentation
|
||||||
|
# doc/scipy-sphinx-theme/conf.py - testing documentation for the theme
|
||||||
|
rm doc/sphinxext -r # contains only bundled numpydoc
|
||||||
|
rm doc/scipy-sphinx-theme/conf.py
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?with_python3}
|
|
||||||
env CFLAGS="$RPM_OPT_FLAGS -lm" \
|
env CFLAGS="$RPM_OPT_FLAGS -lm" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
%ifarch %{openblas_arches}
|
%ifarch %{openblas_arches}
|
||||||
@ -154,14 +148,13 @@ env CFLAGS="$RPM_OPT_FLAGS -lm" \
|
|||||||
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
||||||
%__python3 setup.py config_fc \
|
%__python3 setup.py config_fc \
|
||||||
--fcompiler=gnu95 --noarch \
|
--fcompiler=gnu95 --noarch \
|
||||||
%if 0%{?with_doc}
|
%if %{with doc}
|
||||||
build_sphinx
|
build_sphinx
|
||||||
rm -r build/sphinx/html/.buildinfo
|
rm -r build/sphinx/html/.buildinfo
|
||||||
mv build/sphinx build/sphinx-%{python3_version}
|
mv build/sphinx build/sphinx-%{python3_version}
|
||||||
%else
|
%else
|
||||||
build
|
build
|
||||||
%endif # with_doc
|
%endif # with doc
|
||||||
%endif # with _python3
|
|
||||||
|
|
||||||
env CFLAGS="$RPM_OPT_FLAGS" \
|
env CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
@ -173,18 +166,16 @@ env CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
||||||
%__python2 setup.py config_fc \
|
%__python2 setup.py config_fc \
|
||||||
--fcompiler=gnu95 --noarch \
|
--fcompiler=gnu95 --noarch \
|
||||||
%if 0%{?with_doc}
|
%if %{with doc}
|
||||||
build_sphinx
|
build_sphinx
|
||||||
rm -r build/sphinx/html/.buildinfo
|
rm -r build/sphinx/html/.buildinfo
|
||||||
mv build/sphinx build/sphinx-%{python2_version}
|
mv build/sphinx build/sphinx-%{python2_version}
|
||||||
%else
|
%else
|
||||||
build
|
build
|
||||||
%endif # with_doc
|
%endif # with doc
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# first install python3 so the binaries are overwritten by the python2 ones
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
env CFLAGS="$RPM_OPT_FLAGS -lm" \
|
env CFLAGS="$RPM_OPT_FLAGS -lm" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
%ifarch %{openblas_arches}
|
%ifarch %{openblas_arches}
|
||||||
@ -193,8 +184,7 @@ env CFLAGS="$RPM_OPT_FLAGS -lm" \
|
|||||||
ATLAS=%{_libdir}/atlas \
|
ATLAS=%{_libdir}/atlas \
|
||||||
%endif
|
%endif
|
||||||
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
||||||
%__python3 setup.py install --root=$RPM_BUILD_ROOT
|
%__python3 setup.py install --root=%{buildroot}
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
env CFLAGS="$RPM_OPT_FLAGS" \
|
env CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
@ -204,7 +194,7 @@ env CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
ATLAS=%{_libdir}/atlas \
|
ATLAS=%{_libdir}/atlas \
|
||||||
%endif
|
%endif
|
||||||
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
|
||||||
%__python2 setup.py install --root=$RPM_BUILD_ROOT
|
%__python2 setup.py install --root=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -213,11 +203,9 @@ env CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
# is ignored anyway so by disabling the test for s390x we are not doing
|
# is ignored anyway so by disabling the test for s390x we are not doing
|
||||||
# anything more dangerous.
|
# anything more dangerous.
|
||||||
%ifnarch s390x
|
%ifnarch s390x
|
||||||
%if 0%{?with_python3}
|
|
||||||
pushd %{buildroot}/%{python3_sitearch}
|
pushd %{buildroot}/%{python3_sitearch}
|
||||||
py.test-%{python3_version} --timeout=300 -k "not test_denormals" scipy || :
|
py.test-%{python3_version} --timeout=300 -k "not test_denormals" scipy || :
|
||||||
popd
|
popd
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
pushd %{buildroot}/%{python2_sitearch}
|
pushd %{buildroot}/%{python2_sitearch}
|
||||||
py.test-%{python2_version} --timeout=300 -k "not test_denormals" scipy || :
|
py.test-%{python2_version} --timeout=300 -k "not test_denormals" scipy || :
|
||||||
@ -227,29 +215,30 @@ popd
|
|||||||
|
|
||||||
%files -n python2-scipy
|
%files -n python2-scipy
|
||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
%{python2_sitearch}/scipy
|
%{python2_sitearch}/scipy/
|
||||||
%{python2_sitearch}/*.egg-info
|
%{python2_sitearch}/*.egg-info
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
%if %{with doc}
|
||||||
%files -n python2-scipy-doc
|
%files -n python2-scipy-doc
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc build/sphinx-%{python2_version}/html
|
%doc build/sphinx-%{python2_version}/html
|
||||||
%endif # with_doc
|
%endif # with doc
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%files -n python3-scipy
|
%files -n python3-scipy
|
||||||
%doc LICENSE.txt
|
%doc LICENSE.txt
|
||||||
%{python3_sitearch}/scipy
|
%{python3_sitearch}/scipy/
|
||||||
%{python3_sitearch}/*.egg-info
|
%{python3_sitearch}/*.egg-info
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
%if %{with doc}
|
||||||
%files -n python3-scipy-doc
|
%files -n python3-scipy-doc
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc build/sphinx-%{python3_version}/html
|
%doc build/sphinx-%{python3_version}/html
|
||||||
%endif # with_doc
|
%endif # with doc
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 22 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-1
|
||||||
|
- Update to 1.1.0 (#1560265, #1594355)
|
||||||
|
|
||||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-8
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-8
|
||||||
- Rebuilt for Python 3.7
|
- Rebuilt for Python 3.7
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (scipy-1.0.0.tar.xz) = 541bf377fd67ac15dec55ecd6435a2c0e3043bbdc4fdce05e584db123f113141c8713a07a5895597cb3c3449af493453391ffb1ab9251f054646b4133f651633
|
SHA512 (scipy-1.1.0.tar.gz) = 72fe32c6c009613cb78202598e5db14f8e630b3218839cfe18d43d40550d94cc5aa100c6f5d41f40e86ae148e9b6a13431bb91b0f9be44b0569ccd7b725fe973
|
||||||
|
Loading…
Reference in New Issue
Block a user