2012-08-03 16:31:33 +00:00
|
|
|
%if (0%{?fedora} > 15
|
2011-09-09 07:52:10 +00:00
|
|
|
%global with_python3 1
|
|
|
|
%{?filter_setup:
|
|
|
|
%filter_provides_in %{python_sitearch}.*\.so$
|
|
|
|
%filter_provides_in %{python3_sitearch}.*\.so$
|
|
|
|
%filter_setup
|
|
|
|
}
|
|
|
|
%else
|
|
|
|
%global python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
|
|
|
|
%{?filter_setup:
|
|
|
|
%filter_provides_in %{python_sitearch}.*\.so$
|
|
|
|
%filter_setup
|
|
|
|
}
|
|
|
|
%endif
|
|
|
|
|
2007-10-03 23:20:44 +00:00
|
|
|
Summary: Scipy: Scientific Tools for Python
|
2006-12-07 00:41:53 +00:00
|
|
|
Name: scipy
|
2012-03-16 21:55:16 +00:00
|
|
|
Version: 0.10.1
|
2012-08-03 16:31:33 +00:00
|
|
|
Release: 3%{?dist}
|
2006-12-07 00:41:53 +00:00
|
|
|
|
|
|
|
Group: Development/Libraries
|
2007-08-22 06:19:04 +00:00
|
|
|
License: BSD and LGPLv2+
|
2007-10-03 23:20:44 +00:00
|
|
|
Url: http://www.scipy.org
|
2009-02-26 23:56:30 +00:00
|
|
|
Source0: http://prdownloads.sourceforge.net/scipy/%{name}-%{version}.tar.gz
|
2006-12-07 00:41:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2009-04-07 17:57:50 +00:00
|
|
|
BuildRequires: numpy, python-devel,f2py
|
2007-10-03 23:20:44 +00:00
|
|
|
BuildRequires: fftw-devel, blas-devel, lapack-devel, ufsparse-devel
|
2008-12-16 05:26:37 +00:00
|
|
|
BuildRequires: atlas-devel
|
2007-10-03 23:20:44 +00:00
|
|
|
BuildRequires: gcc-gfortran, swig
|
2009-04-07 17:57:50 +00:00
|
|
|
Requires: numpy, python,f2py
|
2006-12-07 00:41:53 +00:00
|
|
|
|
2011-09-09 07:52:10 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-numpy, python3-devel, python3-f2py
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
%endif
|
2006-12-07 00:41:53 +00:00
|
|
|
|
|
|
|
%description
|
2007-10-03 23:20:44 +00:00
|
|
|
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.
|
2006-12-07 00:41:53 +00:00
|
|
|
|
|
|
|
|
2011-09-09 07:52:10 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-scipy
|
|
|
|
Summary: Scipy: Scientific Tools for Python
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: BSD and LGPLv2+
|
|
|
|
%description -n python3-scipy
|
|
|
|
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.
|
|
|
|
|
|
|
|
%endif # with _python3
|
|
|
|
|
|
|
|
%prep
|
2011-11-14 18:22:35 +00:00
|
|
|
%setup -q
|
2007-10-03 23:20:44 +00:00
|
|
|
cat > site.cfg << EOF
|
2011-09-09 07:52:10 +00:00
|
|
|
|
2007-10-03 23:20:44 +00:00
|
|
|
[amd]
|
|
|
|
library_dirs = %{_libdir}
|
|
|
|
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
|
|
|
|
amd_libs = amd
|
|
|
|
|
|
|
|
[umfpack]
|
|
|
|
library_dirs = %{_libdir}
|
|
|
|
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
|
|
|
|
umfpack_libs = umfpack
|
|
|
|
EOF
|
2006-12-07 00:41:53 +00:00
|
|
|
|
2008-10-02 17:22:00 +00:00
|
|
|
|
2011-09-09 07:52:10 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif
|
|
|
|
|
2006-12-07 00:41:53 +00:00
|
|
|
%build
|
2011-09-09 07:52:10 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python3 setup.py config_fc --fcompiler=gnu95 --noarch build
|
|
|
|
popd
|
|
|
|
%endif # with _python3
|
|
|
|
|
2008-12-16 05:26:37 +00:00
|
|
|
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py config_fc --fcompiler=gnu95 --noarch build
|
2007-04-14 11:47:08 +00:00
|
|
|
|
2006-12-07 00:41:53 +00:00
|
|
|
|
2011-09-09 07:52:10 +00:00
|
|
|
|
2006-12-07 00:41:53 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2011-09-09 07:52:10 +00:00
|
|
|
# first install python3 so the binaries are overwritten by the python2 ones
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python3 setup.py install --root=$RPM_BUILD_ROOT
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
2008-12-16 05:26:37 +00:00
|
|
|
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py install --root=$RPM_BUILD_ROOT
|
2006-12-07 00:41:53 +00:00
|
|
|
|
|
|
|
|
2011-04-01 16:17:52 +00:00
|
|
|
%check
|
2011-09-09 07:52:10 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
mkdir test
|
|
|
|
cd test
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} python3 -c "import scipy; scipy.test('full')"
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
2011-04-01 16:17:52 +00:00
|
|
|
mkdir test
|
|
|
|
cd test
|
|
|
|
PYTHONPATH=$RPM_BUILD_ROOT%{python_sitearch} python -c "import scipy; scipy.test('full')"
|
|
|
|
|
|
|
|
|
2006-12-07 00:41:53 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
2011-09-09 07:52:10 +00:00
|
|
|
%files
|
2006-12-07 00:41:53 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%{python_sitearch}/scipy
|
2008-01-05 00:54:57 +00:00
|
|
|
%{python_sitearch}/*.egg-info
|
2006-12-07 00:41:53 +00:00
|
|
|
|
|
|
|
|
2011-09-09 07:52:10 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-scipy
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt
|
|
|
|
%{python3_sitearch}/scipy
|
|
|
|
%{python3_sitearch}/*.egg-info
|
|
|
|
%endif # with_python3
|
2006-12-07 00:41:53 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-08-03 16:31:33 +00:00
|
|
|
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 0.10.1-3
|
|
|
|
- remove rhel logic from with_python3 conditional
|
|
|
|
|
2012-07-21 19:07:48 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-16 21:55:16 +00:00
|
|
|
* Fri Mar 16 2012 Orion Poplawski <orion@cora.nwra.com> - 0.10.1-1
|
|
|
|
- Update to 0.10.1
|
|
|
|
|
2012-01-14 03:40:17 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-14 18:22:35 +00:00
|
|
|
* Mon Nov 14 2011 Orion Poplawski <orion@cora.nwra.com> - 0.10.0-1
|
|
|
|
- Update to 0.10.0
|
|
|
|
|
2011-09-09 07:52:10 +00:00
|
|
|
* Sat Sep 3 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.9.0-2
|
|
|
|
- little cosmetic changes
|
|
|
|
- filter provides in python_sitearch
|
|
|
|
|
|
|
|
* Fri Sep 02 2011 Andrew McNabb <amcnabb@mcnabbs.org>
|
|
|
|
- add python3 subpackage
|
|
|
|
|
2011-04-01 16:17:52 +00:00
|
|
|
* Fri Apr 1 2011 Orion Poplawski <orion@cora.nwra.com> - 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
|
|
|
|
|
2011-02-09 12:22:05 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-31 15:59:56 +00:00
|
|
|
* Fri Jul 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.7.2-3
|
|
|
|
- Fix scipy build on python-2.7
|
|
|
|
|
2010-07-22 06:27:16 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-07-01 21:47:19 +00:00
|
|
|
* Thu Jul 1 2010 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.2-1
|
|
|
|
- New upstream release
|
|
|
|
|
2010-04-13 04:34:23 +00:00
|
|
|
* Mon Apr 11 2010 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.1-3
|
|
|
|
- Bump for rebuild against numpy 1.3
|
|
|
|
|
|
|
|
* Thu Apr 1 2010 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.1-2
|
2010-04-01 22:56:49 +00:00
|
|
|
- Bump for rebuild against numpy 1.4.0
|
|
|
|
|
2009-12-11 16:43:13 +00:00
|
|
|
* Thu Dec 10 2009 Jon Ciesla <limb@jcomserv.net> - 0.7.1-1
|
|
|
|
- Update to 0.7.1.
|
|
|
|
|
2009-07-27 03:58:20 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-06-14 23:06:57 +00:00
|
|
|
* Sun Jun 14 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-4
|
|
|
|
- Fix for gcc34 weave blitz bug #505379
|
|
|
|
|
2009-04-07 17:57:50 +00:00
|
|
|
* Tue Apr 7 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-3
|
|
|
|
- Add f2py requires to prepared for numpy packaging split
|
|
|
|
|
2009-03-02 02:10:30 +00:00
|
|
|
* Sun Mar 1 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-2
|
|
|
|
- Patch for stsci image function syntax fix.
|
|
|
|
|
2009-02-26 23:56:30 +00:00
|
|
|
* Thu Feb 26 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-1
|
|
|
|
- Update to final 0.7 release
|
|
|
|
|
2009-02-25 23:21:24 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-0.3.b1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-16 05:26:37 +00:00
|
|
|
* Mon Dec 15 2008 Deji Akingunola <dakingun@gmail.com> - 0.7.0-0.2.b1
|
|
|
|
- Rebuild for atlas-3.8.2
|
|
|
|
|
2008-12-02 00:34:06 +00:00
|
|
|
* Mon Dec 01 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-0.1.b1
|
|
|
|
- Update to latest beta which lists python 2.6 support
|
|
|
|
|
2008-11-29 17:21:09 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.0-8
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-10-03 18:22:16 +00:00
|
|
|
* Fri Oct 03 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-7
|
|
|
|
- fix the stsci fix
|
|
|
|
|
2008-10-02 17:22:00 +00:00
|
|
|
* Thu Oct 02 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-6
|
|
|
|
- include missing setup files for stsci module
|
|
|
|
|
2008-02-19 07:28:07 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.0-5
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-05 00:54:57 +00:00
|
|
|
* Fri Jan 04 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-4
|
|
|
|
- fix for egg-info file creation
|
|
|
|
|
2007-10-03 23:20:44 +00:00
|
|
|
* Wed Oct 03 2007 Jef Spaleta <jspaleta@gmail.com> - 0.6.0-3
|
|
|
|
- include_dirs changes for ufsparse change in development
|
|
|
|
|
|
|
|
* Tue Oct 02 2007 Jef Spaleta <jspaleta@gmail.com> - 0.6.0-2
|
|
|
|
- Fix licensing to match Fedora packaging guidance
|
|
|
|
- Remove unnecessary library deps
|
|
|
|
|
|
|
|
* Tue Sep 25 2007 Jarrod Millman <millman@berkeley.edu> - 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
|
|
|
|
|
2007-08-22 07:43:30 +00:00
|
|
|
* Tue Aug 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2.1-1
|
|
|
|
- Update to new upstream source
|
|
|
|
|
2007-08-22 06:19:04 +00:00
|
|
|
* Tue Aug 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-3
|
|
|
|
- fix licensing tag and bump for buildid rebuild
|
|
|
|
|
2007-04-19 00:33:54 +00:00
|
|
|
* Wed Apr 18 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2.2
|
|
|
|
- go back to using gfortran now that numpy is patched
|
|
|
|
|
2007-04-14 18:58:42 +00:00
|
|
|
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2.1
|
|
|
|
- minor correction for f77 usage
|
|
|
|
|
2007-04-14 11:47:08 +00:00
|
|
|
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2
|
|
|
|
- revert to f77 due to issue with numpy in development
|
|
|
|
|
|
|
|
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-1.1
|
|
|
|
- remove arch specific optimizations
|
|
|
|
|
2007-02-23 05:18:15 +00:00
|
|
|
* Wed Feb 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-1
|
|
|
|
- Update for new upstream release
|
|
|
|
|
2006-12-12 05:15:37 +00:00
|
|
|
* Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-5
|
|
|
|
- Bump for rebuild against python 2.5 in devel tree
|
|
|
|
|
2006-12-07 00:41:53 +00:00
|
|
|
* Sun Dec 3 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-4
|
|
|
|
- Minor adjustments to specfile for packaging guidelines.
|
|
|
|
- Changed buildrequires fftw version 3 from fftw2
|
|
|
|
|
|
|
|
* Sat Dec 2 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-2
|
|
|
|
- Updated spec for FE Packaging Guidelines and for upstream version 0.5.1
|
|
|
|
|
|
|
|
* Mon May 8 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-4
|
|
|
|
- Add BuildRequires gcc-c++
|
|
|
|
- Add python-devel
|
|
|
|
- Add libstdc++
|
|
|
|
|
|
|
|
* Mon May 8 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-3
|
|
|
|
- Add BuildRequires gcc-gfortran
|
|
|
|
|
|
|
|
* Sun May 7 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-3
|
|
|
|
- Add BuildRequires numpy
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 3 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-2
|
|
|
|
- Fix BuildRoot
|
|
|
|
- Add BuildRequires, Requires
|
|
|
|
- Test remove d1mach patch
|
|
|
|
- Fix defattr
|
|
|
|
- Add changelog
|
|
|
|
- Removed Prefix, Vendor
|
|
|
|
- Fix Source0
|
|
|
|
|