%{?scl:%scl_package scipy} %{!?scl:%global pkg_name %{name}} Summary: Scipy: Scientific Tools for Python Name: %{?scl_prefix}scipy Version: 0.19.1 Release: 2%{?dist} Group: Development/Libraries # BSD -- whole package except: # Boost -- scipy/special/cephes/scipy_iv.c # Public Domain -- scipy/odr/__odrpack.c License: BSD and Boost and Public Domain URL: https://www.scipy.org/ Source0: https://github.com/scipy/scipy/releases/download/v%{version}/scipy-%{version}.tar.xz BuildRequires: %{?scl_prefix}numpy, %{?scl_prefix}python-devel BuildRequires: %{?scl_prefix}f2py BuildRequires: fftw-devel, blas-devel, lapack-devel BuildRequires: suitesparse-devel BuildRequires: atlas-devel BuildRequires: chrpath BuildRequires: gcc-gfortran, swig Requires: %{?scl_prefix}numpy Requires: %{?scl_prefix}python Requires: %{?scl_prefix}f2py %description Scipy is open-source software for mathematics, science, and engineering. The core library is NumPy which provides convenient and fast N-dimensional array manipulation. The SciPy library is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines such as routines for numerical integration and optimization. Together, they run on all popular operating systems, are 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 leading scientists and engineers. %prep %setup -n %{pkg_name}-%{version} -q cat > site.cfg << EOF [amd] library_dirs = %{?scl:%_root_libdir}%{?!scl:%_libdir} include_dirs = %{?scl:%_root_includedir}%{?!scl:%_includedir}/suitesparse amd_libs = amd [umfpack] library_dirs = %{?scl:%_root_libdir}%{?!scl:%_libdir} include_dirs = %{?scl:%_root_includedir}%{?!scl:%_includedir}/suitesparse umfpack_libs = umfpack EOF %build %{?scl:scl enable %{scl} - << \EOF} env CFLAGS="%{optflags}" \ ATLAS=%{?scl:%_root_libdir}%{?!scl:%_libdir}/atlas \ FFTW=%{?scl:%_root_libdir}%{?!scl:%_libdir} \ BLAS=%{?scl:%_root_libdir}%{?!scl:%_libdir} \ LAPACK=%{?scl:%_root_libdir}%{?!scl:%_libdir} \ %{__python3} setup.py config_fc --fcompiler=gnu95 --noarch build %{?scl:EOF} %install %{?scl:scl enable %{scl} - << \EOF} env CFLAGS="%{optflags}" \ ATLAS=%{?scl:%_root_libdir}%{?!scl:%_libdir}/atlas \ FFTW=%{?scl:%_root_libdir}%{?!scl:%_libdir} \ BLAS=%{?scl:%_root_libdir}%{?!scl:%_libdir} \ LAPACK=%{?scl:%_root_libdir}%{?!scl:%_libdir} \ %{__python3} setup.py install --root %{buildroot} %{?scl:EOF} pushd %{buildroot}%{python3_sitearch}/%{pkg_name} &> /dev/null # resolves rhbz#1289566 sed -i -e 's"^#!/usr/bin/python"#!%{?_scl_root}/usr/bin/python"' special/generate_ufuncs.py popd &> /dev/null # remove RPATHs and RUNPATHs from shared libraries find %{buildroot} -name '*.so' -exec chrpath --delete {} + %check mkdir test cd test %{?scl:scl enable %{scl} - << \EOF} PYTHONPATH="%{buildroot}%{python3_sitearch}" %{__python3} -c "import scipy; scipy.test('full', verbose=3)" %{?scl:EOF} %files %doc LICENSE.txt %{python3_sitearch}/scipy %{python3_sitearch}/*.egg-info %changelog * Tue Aug 15 2017 Nikola Forró - 0.19.1-2 - Remove RPATHs and RUNPATHs from shared libraries, rhbz#1475722 * Tue Jun 27 2017 Nikola Forró - 0.19.1-1 - Update to 0.19.1, rhbz#1465476 * Tue Jun 27 2017 Nikola Forró - 0.19.0-2 - Do not use python-six from RHSCL, rhbz#1465545 * Tue Jun 20 2017 Charalampos Stratakis - 0.19.0-1 - Update to 0.19.0 for rh-python36 * Tue Feb 16 2016 Nikola Forró - 0.17.0-2 - Update shebang to point to interpreter in collection, rhbz#1289566 * Tue Feb 16 2016 Nikola Forró - 0.17.0-1 - Update to 0.17.0 * Wed Jan 28 2015 jchaloup - 0.13.3-1 - Update to 0.13.3 * Mon Nov 18 2013 Tomas Tomecek - 0.12.1-2 - RHSCL-1.1 build * Wed Oct 16 2013 Tomas Tomecek - 0.12.1-1 - Update to 0.12.1 - fixes CVE-2013-4251 (rhbz#997579) - change working directory to build directory when building ext (rhbz#916695) - use SHA-256 instead of md5 -- FIPS mode (rhbz#877920) - unbundle python-six (bug rhbz#1019642) * Thu Oct 03 2013 Tomas Tomecek - 0.12.0-6 - rebuilt due to a bug in gcc causing segfault on s390x (rhbz#1012870 rhbz#1012286) * Wed Sep 25 2013 Tomas Tomecek - 0.12.0-5 - rebuilt with atlas 3.10 (rhbz#1009070) * Tue Jul 23 2013 Tomas Tomecek - 0.12.0-4 - Add patch to use build_dir argument in build_extension - Fix rpmlint warnings - License Updated - Don't build with python3 * Wed May 15 2013 Orion Poplawski - 0.12.0-3 - Remove old ufsparse references, use suitesparse - Spec cleanup * Mon Apr 15 2013 Orion Poplawski - 0.12.0-2 - Add patch to fix segfaul in test of sgeqrf * Wed Apr 10 2013 Orion Poplawski - 0.12.0-1 - Update to 0.12.0 final - No longer remove weave from python3 build * Sat Feb 16 2013 Orion Poplawski - 0.12.0-0.1.b1 - Update to 0.12.0b1 - Drop upstreamed linalg patch * Wed Feb 13 2013 Orion Poplawski - 0.11.0-4 - Add patch from upstream to fix python3.3 issues in linalg routines * Tue Feb 12 2013 Orion Poplawski - 0.11.0-3 - Disable python3 tests for now * Mon Oct 8 2012 Orion Poplawski - 0.11.0-2 - Add requires python3-numpy, python3-f2py for python3-scipy (bug 863755) * Sun Sep 30 2012 Orion Poplawski - 0.11.0-1 - Update to 0.11.0 final * Thu Aug 23 2012 Orion Poplawski - 0.11.0-0.1.rc2 - Update to 0.11.0rc2 * Mon Aug 6 2012 Orion Poplawski - 0.10.1-4 - Rebuild for python 3.3 * Fri Aug 3 2012 David Malcolm - 0.10.1-3 - remove rhel logic from with_python3 conditional * Sat Jul 21 2012 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Mar 16 2012 Orion Poplawski - 0.10.1-1 - Update to 0.10.1 * Sat Jan 14 2012 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Nov 14 2011 Orion Poplawski - 0.10.0-1 - Update to 0.10.0 * Sat Sep 3 2011 Thomas Spura - 0.9.0-2 - little cosmetic changes - filter provides in python_sitearch * Fri Sep 02 2011 Andrew McNabb - add python3 subpackage * Fri Apr 1 2011 Orion Poplawski - 0.9.0-1 - Update to 0.9.0 - Drop all stsci sources and patches, dropped from upstream - Drop gcc and py27 patches fixed upstream - Add %%check section to run tests * Wed Feb 09 2011 Fedora Release Engineering - 0.7.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jul 31 2010 Toshio Kuratomi - 0.7.2-3 - Fix scipy build on python-2.7 * Thu Jul 22 2010 David Malcolm - 0.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Jul 1 2010 Jef Spaleta - 0.7.2-1 - New upstream release * Sun Apr 11 2010 Jef Spaleta - 0.7.1-3 - Bump for rebuild against numpy 1.3 * Thu Apr 1 2010 Jef Spaleta - 0.7.1-2 - Bump for rebuild against numpy 1.4.0 * Thu Dec 10 2009 Jon Ciesla - 0.7.1-1 - Update to 0.7.1. * Sun Jul 26 2009 Fedora Release Engineering - 0.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Jun 14 2009 Jef Spaleta - 0.7.0-4 - Fix for gcc34 weave blitz bug #505379 * Tue Apr 7 2009 Jef Spaleta - 0.7.0-3 - Add f2py requires to prepared for numpy packaging split * Sun Mar 1 2009 Jef Spaleta - 0.7.0-2 - Patch for stsci image function syntax fix. * Thu Feb 26 2009 Jef Spaleta - 0.7.0-1 - Update to final 0.7 release * Wed Feb 25 2009 Fedora Release Engineering - 0.7.0-0.3.b1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Dec 15 2008 Deji Akingunola - 0.7.0-0.2.b1 - Rebuild for atlas-3.8.2 * Mon Dec 01 2008 Jef Spaleta - 0.7.0-0.1.b1 - Update to latest beta which lists python 2.6 support * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.6.0-8 - Rebuild for Python 2.6 * Fri Oct 03 2008 Jef Spaleta - 0.6.0-7 - fix the stsci fix * Thu Oct 02 2008 Jef Spaleta - 0.6.0-6 - include missing setup files for stsci module * Tue Feb 19 2008 Fedora Release Engineering - 0.6.0-5 - Autorebuild for GCC 4.3 * Fri Jan 04 2008 Jef Spaleta - 0.6.0-4 - fix for egg-info file creation * Wed Oct 03 2007 Jef Spaleta - 0.6.0-3 - include_dirs changes for ufsparse change in development * Tue Oct 02 2007 Jef Spaleta - 0.6.0-2 - Fix licensing to match Fedora packaging guidance - Remove unnecessary library deps * Tue Sep 25 2007 Jarrod Millman - 0.6.0-1 - update to new upstream source - update Summary, License, Url, and description - added extra dependencies - remove symlink since Lib has been renamed scipy * Tue Aug 21 2007 Jef Spaleta - 0.5.2.1-1 - Update to new upstream source * Tue Aug 21 2007 Jef Spaleta - 0.5.2-3 - fix licensing tag and bump for buildid rebuild * Wed Apr 18 2007 Jef Spaleta - 0.5.2-2.2 - go back to using gfortran now that numpy is patched * Sat Apr 14 2007 Jef Spaleta - 0.5.2-2.1 - minor correction for f77 usage * Sat Apr 14 2007 Jef Spaleta - 0.5.2-2 - revert to f77 due to issue with numpy in development * Sat Apr 14 2007 Jef Spaleta - 0.5.2-1.1 - remove arch specific optimizations * Wed Feb 21 2007 Jef Spaleta - 0.5.2-1 - Update for new upstream release * Mon Dec 11 2006 Jef Spaleta - 0.5.1-5 - Bump for rebuild against python 2.5 in devel tree * Sun Dec 3 2006 Jef Spaleta - 0.5.1-4 - Minor adjustments to specfile for packaging guidelines. - Changed buildrequires fftw version 3 from fftw2 * Sat Dec 2 2006 Jef Spaleta - 0.5.1-2 - Updated spec for FE Packaging Guidelines and for upstream version 0.5.1 * Mon May 8 2006 Neal Becker - 0.4.8-4 - Add BuildRequires gcc-c++ - Add python-devel - Add libstdc++ * Mon May 8 2006 Neal Becker - 0.4.8-3 - Add BuildRequires gcc-gfortran * Sun May 7 2006 Neal Becker - 0.4.8-3 - Add BuildRequires numpy * Wed May 3 2006 Neal Becker - 0.4.8-2 - Fix BuildRoot - Add BuildRequires, Requires - Test remove d1mach patch - Fix defattr - Add changelog - Removed Prefix, Vendor - Fix Source0