source: projects/specs/trunk/n/numpy/numpy-vl.spec @ 1636

Revision 1636, 9.8 KB checked in by inagaki, 16 years ago (diff)

NEW: libktorrent, avogadro, numpy

RevLine 
[1636]1%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2# eval to 2.3 if python isn't yet present, workaround for no python in fc4 minimal buildroot
3%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "2.3")}
4
5Name:           numpy
6Summary:        A fast multidimensional array facility for Python
7Version:        1.4.1
8Release:        7%{?_dist_release}
9
10Group:          Development/Languages
11License:        BSD
12URL:            http://numeric.scipy.org/
13
14Source0:        http://downloads.sourceforge.net/numpy/%{name}-%{version}.tar.gz
15Patch0:         numpy-1.0.1-f2py.patch
16Patch1:         numpy_doublefree.patch
17
18# PyOS_ascii_strtod is deprecated in python 2.7, and the deprecation warning
19# outside of the GIL causes python to segfault (rhbz#617384)
20# Patch is a combination of upstream changeset 7926 followed by 8387
21Patch2:         numpy-1.4.1-remove-PyOS_ascii_strtod.patch
22
23BuildRoot:      %{_tmppath}/%{name}-%{version}-root
24
25#BuildRequires:  python-devel lapack-devel python-setuptools gcc-gfortran atlas-devel python-nose
26BuildRequires:  python-devel lapack-devel python-setuptools gcc-gfortran python-nose
27Requires:       python-nose
28
29%description
30NumPy is a general-purpose array-processing package designed to
31efficiently manipulate large multi-dimensional arrays of arbitrary
32records without sacrificing too much speed for small multi-dimensional
33arrays.  NumPy is built on the Numeric code base and adds features
34introduced by numarray as well as an extended C-API and the ability to
35create arrays of arbitrary type.
36
37There are also basic facilities for discrete fourier transform,
38basic linear algebra and random number generation. Also included in
39this package is a version of f2py that works properly with NumPy.
40
41%package f2py
42Summary:        f2py for numpy
43Group:          Development/Libraries
44Requires:       %{name} = %{version}-%{release}
45Requires:       python-devel
46Provides:       f2py
47Obsoletes:      f2py <= 2.45.241_1927
48
49%description f2py
50This package includes a version of f2py that works properly with NumPy.
51
52%prep
53%setup -q -n %{name}-%{version}
54%patch0 -p1 -b .f2py
55%patch1 -p0
56%patch2 -p1 -b .remove-PyOS_ascii_strtod
57
58%build
59env FFTW=%{_libdir} BLAS=%{_libdir} \
60    LAPACK=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" \
61    %{__python} setup.py build --fcompiler=gnu95
62
63%install
64rm -rf $RPM_BUILD_ROOT
65#%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
66# skip-build currently broken, this works around it for now
67env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
68    LAPACK=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" \
69    %{__python} setup.py install --root $RPM_BUILD_ROOT
70rm -rf docs-f2py ; mv $RPM_BUILD_ROOT%{python_sitearch}/%{name}/f2py/docs docs-f2py
71mv -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/f2py/f2py.1 f2py.1
72rm -rf doc ; mv -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/doc .
73install -D -p -m 0644 f2py.1 $RPM_BUILD_ROOT%{_mandir}/man1/f2py.1
74pushd $RPM_BUILD_ROOT%{_bindir} &> /dev/null
75# symlink for anyone who was using f2py.numpy
76ln -s f2py f2py.numpy
77popd &> /dev/null
78
79#symlink for includes, BZ 185079
80mkdir -p $RPM_BUILD_ROOT/usr/include
81ln -s %{python_sitearch}/%{name}/core/include/numpy/ $RPM_BUILD_ROOT/usr/include/numpy
82
83# Remove doc files. They should in in %doc
84rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/COMPATIBILITY
85rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/DEV_README.txt
86rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/INSTALL.txt
87rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/LICENSE.txt
88rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/README.txt
89rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/THANKS.txt
90rm -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/site.cfg.example
91
92%check
93pushd doc &> /dev/null
94PYTHONPATH="%{buildroot}%{python_sitearch}" %{__python} -c "import pkg_resources, numpy ; numpy.test()" \
95%ifarch s390 s390x
96|| :
97%endif
98# don't remove this comment
99popd &> /dev/null
100
101%clean
102rm -rf $RPM_BUILD_ROOT
103
104%files
105%defattr(-,root,root,-)
106%doc docs-f2py doc/* LICENSE.txt README.txt THANKS.txt DEV_README.txt COMPATIBILITY site.cfg.example
107%dir %{python_sitearch}/%{name}
108%{python_sitearch}/%{name}/*.py*
109%{python_sitearch}/%{name}/core
110%{python_sitearch}/%{name}/distutils
111%{python_sitearch}/%{name}/fft
112%{python_sitearch}/%{name}/lib
113%{python_sitearch}/%{name}/linalg
114%{python_sitearch}/%{name}/ma
115%{python_sitearch}/%{name}/numarray
116%{python_sitearch}/%{name}/oldnumeric
117%{python_sitearch}/%{name}/random
118%{python_sitearch}/%{name}/testing
119%{python_sitearch}/%{name}/tests
120%{python_sitearch}/%{name}/compat
121%{python_sitearch}/%{name}/matrixlib
122%{python_sitearch}/%{name}/polynomial
123%{python_sitearch}/%{name}-*.egg-info
124%{_includedir}/numpy
125
126%files f2py
127%defattr(-,root,root,-)
128%{_mandir}/man*/*
129%{_bindir}/f2py
130%{_bindir}/f2py.numpy
131%{python_sitearch}/%{name}/f2py
132
133
134%changelog
135* Fri Aug 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.4.1-7
136- Initial build for Vine Linux
137
138* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.4.1-6
139- actually add the patch this time
140
141* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.4.1-5
142- fix segfault within %check on 2.7 (patch 2)
143
144* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:1.4.1-4
145- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
146
147* Sun Jul 18 2010 Dan Horák <dan[at]danny.cz> 1.4.1-3
148- ignore the "Ticket #1299 second test" failure on s390(x)
149
150* Thu Jun 24 2010 Jef Spaleta <jspaleta@fedoraprject.org> 1.4.1-2
151- source commit fix
152
153* Thu Jun 24 2010 Jef Spaleta <jspaleta@fedoraprject.org> 1.4.1-1
154- New upstream release. Include backported doublefree patch
155
156* Mon Apr 26 2010 Jon Ciesla <limb@jcomserv.net> 1.3.0-8
157- Moved distutils back to the main package, BZ 572820.
158
159* Thu Apr 08 2010 Jon Ciesla <limb@jcomserv.net> 1.3.0-7
160- Reverted to 1.3.0 after upstream pulled 1.4.0, BZ 579065.
161
162* Tue Mar 02 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-5
163- Linking /usr/include/numpy to .h files, BZ 185079.
164
165* Tue Feb 16 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-4
166- Re-enabling atlas BR, dropping lapack Requires.
167
168* Wed Feb 10 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-3
169- Since the previous didn't work, Requiring lapack.
170
171* Tue Feb 09 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-2
172- Temporarily dropping atlas BR to work around 562577.
173
174* Fri Jan 22 2010 Jon Ciesla <limb@jcomserv.net> 1.4.0-1
175- 1.4.0.
176- Dropped ARM patch, ARM support added upstream.
177
178* Tue Nov 17 2009 Jitesh Shah <jiteshs@marvell.com> - 1.3.0-6.fa1
179- Add ARM support
180
181* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-6
182- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
183
184* Thu Jun 11 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-5
185- Fixed atlas BR, BZ 505376.
186
187* Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-4
188- EVR bump for pygame chainbuild.
189
190* Fri Apr 17 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-3
191- Moved linalg, fft back to main package.
192
193* Tue Apr 14 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-2
194- Split out f2py into subpackage, thanks Peter Robinson pbrobinson@gmail.com.
195
196* Tue Apr 07 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-1
197- Update to latest upstream.
198- Fixed Source0 URL.
199
200* Thu Apr 02 2009 Jon Ciesla <limb@jcomserv.net> 1.3.0-0.rc1
201- Update to latest upstream.
202
203* Thu Mar 05 2009 Jon Ciesla <limb@jcomserv.net> 1.2.1-3
204- Require python-devel, BZ 488464.
205
206* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
207- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
208
209* Fri Dec 19 2008 Jon Ciesla <limb@jcomserv.net> 1.2.1-1
210- Update to 1.2.1.
211
212* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2.0-2
213- Rebuild for Python 2.6
214
215* Tue Oct 07 2008 Jon Ciesla <limb@jcomserv.net> 1.2.0-1
216- New upstream release, added python-nose BR. BZ 465999.
217- Using atlas blas, not blas-devel. BZ 461472.
218
219* Wed Aug 06 2008 Jon Ciesla <limb@jcomserv.net> 1.1.1-1
220- New upstream release
221
222* Thu May 29 2008 Jarod Wilson <jwilson@redhat.com> 1.1.0-1
223- New upstream release
224
225* Tue May 06 2008 Jarod Wilson <jwilson@redhat.com> 1.0.4-1
226- New upstream release
227
228* Mon Feb 11 2008 Jarod Wilson <jwilson@redhat.com> 1.0.3.1-2
229- Add python egg to %%files on f9+
230
231* Wed Aug 22 2007 Jarod Wilson <jwilson@redhat.com> 1.0.3.1-1
232- New upstream release
233
234* Wed Jun 06 2007 Jarod Wilson <jwilson@redhat.com> 1.0.3-1
235- New upstream release
236
237* Mon May 14 2007 Jarod Wilson <jwilson@redhat.com> 1.0.2-2
238- Drop BR: atlas-devel, since it just provides binary-compat
239  blas and lapack libs. Atlas can still be optionally used
240  at runtime. (Note: this is all per the atlas maintainer).
241
242* Mon May 14 2007 Jarod Wilson <jwilson@redhat.com> 1.0.2-1
243- New upstream release
244
245* Tue Apr 17 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-4
246- Update gfortran patch to recognize latest gfortran f95 support
247- Resolves rhbz#236444
248
249* Fri Feb 23 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-3
250- Fix up cpuinfo bug (#229753). Upstream bug/change:
251  http://projects.scipy.org/scipy/scipy/ticket/349
252
253* Thu Jan 04 2007 Jarod Wilson <jwilson@redhat.com> 1.0.1-2
254- Per discussion w/Jose Matos, Obsolete/Provide f2py, as the
255  stand-alone one is no longer supported/maintained upstream
256
257* Wed Dec 13 2006 Jarod Wilson <jwilson@redhat.com> 1.0.1-1
258- New upstream release
259
260* Tue Dec 12 2006 Jarod Wilson <jwilson@redhat.com> 1.0-2
261- Rebuild for python 2.5
262
263* Wed Oct 25 2006 Jarod Wilson <jwilson@redhat.com> 1.0-1
264- New upstream release
265
266* Tue Sep 06 2006 Jarod Wilson <jwilson@redhat.com> 0.9.8-1
267- New upstream release
268
269* Wed Apr 26 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.6-1
270- Upstream update
271
272* Thu Feb 16 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.5-1
273- Upstream update
274
275* Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.4-2
276- Rebuild for Fedora Extras 5
277
278* Thu Feb  2 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.9.4-1
279- Initial RPM release
280- Added gfortran patch from Neal Becker
Note: See TracBrowser for help on using the repository browser.