qulogic / rpms / scipy

Forked from rpms/scipy 4 years ago
Clone
ba422bc
%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
aad8285
Summary: Scipy: Scientific Tools for Python
ba422bc
Name: scipy
1ac1354
Version: 0.7.1
0df300c
Release: 2%{?dist}
ba422bc
ba422bc
Group: Development/Libraries
8971371
License: BSD and LGPLv2+
aad8285
Url: http://www.scipy.org
873f0a8
Source0: http://prdownloads.sourceforge.net/scipy/%{name}-%{version}.tar.gz
2a3713a
# Missing setup.py files which control the build of this module
2a3713a
# These should be removed as soon as upstream pushes a release with this fixed
2a3713a
Source1: stsci_image_setup.py
2a3713a
Source2: stsci_convolve_setup.py
7005ef5
Patch0: stsci_image_syntax.patch
0453f82
Patch1: scipy_gcc43.patch
ba422bc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ba422bc
237f302
BuildRequires: numpy, python-devel,f2py
aad8285
BuildRequires: fftw-devel, blas-devel, lapack-devel, ufsparse-devel
0c70af6
BuildRequires: atlas-devel
aad8285
BuildRequires: gcc-gfortran, swig
237f302
Requires: numpy, python,f2py
ba422bc
ba422bc
ba422bc
%description
aad8285
Scipy is open-source software for mathematics, science, and
aad8285
engineering. The core library is NumPy which provides convenient and
aad8285
fast N-dimensional array manipulation. The SciPy library is built to
aad8285
work with NumPy arrays, and provides many user-friendly and efficient
aad8285
numerical routines such as routines for numerical integration and
aad8285
optimization. Together, they run on all popular operating systems, are
aad8285
quick to install, and are free of charge. NumPy and SciPy are easy to
aad8285
use, but powerful enough to be depended upon by some of the world's
aad8285
leading scientists and engineers.
ba422bc
ba422bc
2552995
%prep 
873f0a8
%setup -q -n %{name}-%{version}
7005ef5
%patch0 -p0
939fe3d
%patch1 -p1
aad8285
cat > site.cfg << EOF
aad8285
[amd]
aad8285
library_dirs = %{_libdir}
aad8285
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
aad8285
amd_libs = amd
aad8285
aad8285
[umfpack]
aad8285
library_dirs = %{_libdir}
aad8285
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
aad8285
umfpack_libs = umfpack
aad8285
EOF
ba422bc
2a42dbb
cp %{SOURCE1} scipy/stsci/image/setup.py
2a42dbb
cp %{SOURCE2} scipy/stsci/convolve/setup.py
2a3713a
ba422bc
%build
0c70af6
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py config_fc --fcompiler=gnu95 --noarch build
2e6656e
ba422bc
ba422bc
%install
ba422bc
rm -rf $RPM_BUILD_ROOT
0c70af6
env CFLAGS="$RPM_OPT_FLAGS" ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} python setup.py install --root=$RPM_BUILD_ROOT
ba422bc
ba422bc
ba422bc
%clean
ba422bc
rm -rf $RPM_BUILD_ROOT
ba422bc
ba422bc
ba422bc
%files 
ba422bc
%defattr(-,root,root,-)
ba422bc
%doc LICENSE.txt
ba422bc
%{python_sitearch}/scipy
0eaafac
%{python_sitearch}/*.egg-info
ba422bc
ba422bc
ba422bc
ba422bc
%changelog
0df300c
* Thu Dec 10 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.1-2
0df300c
- Bump for rebuild against numpy 1.4.0 
0df300c
1ac1354
* Thu Dec 10 2009 Jon Ciesla <limb@jcomserv.net> - 0.7.1-1
1ac1354
- Update to 0.7.1.
1ac1354
c647525
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
c647525
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c647525
939fe3d
* Sun Jun 14  2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-4
939fe3d
- Fix for gcc34 weave blitz bug #505379
939fe3d
237f302
* Tue Apr 7  2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-3
237f302
- Add f2py requires to prepared for numpy packaging split
237f302
7005ef5
* Sun Mar 1  2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-2
7005ef5
- Patch for stsci image function syntax fix.
7005ef5
873f0a8
* Thu Feb 26 2009 Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-1
873f0a8
- Update to final 0.7 release
873f0a8
44bbb29
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-0.3.b1
44bbb29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
44bbb29
0c70af6
* Mon Dec 15 2008 Deji Akingunola <dakingun@gmail.com> - 0.7.0-0.2.b1
0c70af6
- Rebuild for atlas-3.8.2
0c70af6
2552995
* Mon Dec 01 2008  Jef Spaleta <jspaleta@fedoraproject.org> - 0.7.0-0.1.b1
2552995
- Update to latest beta which lists python 2.6 support
2552995
895adec
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.0-8
895adec
- Rebuild for Python 2.6
895adec
2a42dbb
* Fri Oct 03 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-7
2a42dbb
- fix the stsci fix
2a42dbb
2a3713a
* Thu Oct 02 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-6
2a3713a
- include missing setup files for stsci module
2a3713a
ea45f09
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.6.0-5
ea45f09
- Autorebuild for GCC 4.3
ea45f09
0eaafac
* Fri Jan 04 2008 Jef Spaleta <jspaleta@fedoraproject.org> - 0.6.0-4
0eaafac
- fix for egg-info file creation
0eaafac
aad8285
* Wed Oct 03 2007 Jef Spaleta <jspaleta@gmail.com> - 0.6.0-3
aad8285
- include_dirs changes for ufsparse change in development
aad8285
aad8285
* Tue Oct 02 2007 Jef Spaleta <jspaleta@gmail.com> - 0.6.0-2
aad8285
- Fix licensing to match Fedora packaging guidance
aad8285
- Remove unnecessary library deps
aad8285
aad8285
* Tue Sep 25 2007 Jarrod Millman <millman@berkeley.edu> - 0.6.0-1
aad8285
- update to new upstream source
aad8285
- update Summary, License, Url, and description
aad8285
- added extra dependencies
aad8285
- remove symlink since Lib has been renamed scipy
aad8285
d298e18
* Tue Aug 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2.1-1
d298e18
- Update to new upstream source
d298e18
8971371
* Tue Aug 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-3
8971371
- fix licensing tag and bump for buildid rebuild
8971371
80f1d0c
* Wed Apr 18 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2.2
80f1d0c
- go back to using gfortran now that numpy is patched
80f1d0c
2609926
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2.1
2609926
- minor correction for f77 usage
2609926
2e6656e
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-2
2e6656e
- revert to f77 due to issue with numpy in development
2e6656e
2e6656e
* Sat Apr 14 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-1.1
2e6656e
- remove arch specific optimizations
2e6656e
e42f289
* Wed Feb 21 2007 Jef Spaleta <jspaleta@gmail.com> - 0.5.2-1
e42f289
- Update for new upstream release
e42f289
6e804cd
* Mon Dec  11 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-5
6e804cd
- Bump for rebuild against python 2.5 in devel tree
6e804cd
ba422bc
* Sun Dec  3 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-4
ba422bc
- Minor adjustments to specfile for packaging guidelines. 
ba422bc
- Changed buildrequires fftw version 3  from fftw2
ba422bc
ba422bc
* Sat Dec  2 2006 Jef Spaleta <jspaleta@gmail.com> - 0.5.1-2
ba422bc
- Updated spec for FE Packaging Guidelines and for upstream version 0.5.1
ba422bc
ba422bc
* Mon May  8 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-4
ba422bc
- Add BuildRequires gcc-c++
ba422bc
- Add python-devel
ba422bc
- Add libstdc++
ba422bc
ba422bc
* Mon May  8 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-3
ba422bc
- Add BuildRequires gcc-gfortran
ba422bc
ba422bc
* Sun May  7 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-3
ba422bc
- Add BuildRequires numpy
ba422bc
ba422bc
ba422bc
* Wed May  3 2006 Neal Becker <ndbecker2@gmail.com> - 0.4.8-2
ba422bc
- Fix BuildRoot
ba422bc
- Add BuildRequires, Requires
ba422bc
- Test remove d1mach patch
ba422bc
- Fix defattr
ba422bc
- Add changelog
ba422bc
- Removed Prefix, Vendor
ba422bc
- Fix Source0
ba422bc