1 | %global shortver 3 |
---|
2 | %global mediumver %{shortver}.3 |
---|
3 | |
---|
4 | Summary: The LAPACK libraries for numerical linear algebra. |
---|
5 | Name: lapack |
---|
6 | Version: %{mediumver}.1 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | License: Freely distributable |
---|
9 | Group: Development/Libraries |
---|
10 | URL: http://www.netlib.org/lapack/ |
---|
11 | Source0: http://www.netlib.org/lapack/lapack-%{version}.tgz |
---|
12 | Source1: http://www.netlib.org/lapack/manpages.tgz |
---|
13 | Source2: Makefile.blas |
---|
14 | Source3: Makefile.lapack |
---|
15 | Source4: http://www.netlib.org/lapack/lapackqref.ps |
---|
16 | Source5: http://www.netlib.org/blas/blasqr.ps |
---|
17 | Patch3: lapack-3.1.1-make.inc.patch |
---|
18 | Obsoletes: lapack-man |
---|
19 | BuildRequires: gcc-gfortran |
---|
20 | BuildRequires: coreutils findutils |
---|
21 | |
---|
22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
23 | |
---|
24 | Vendor: Project Vine |
---|
25 | Distribution: Vine Linux |
---|
26 | Packager: inagaki, kenta |
---|
27 | |
---|
28 | %description |
---|
29 | LAPACK (Linear Algebra PACKage) is a standard library for numerical |
---|
30 | linear algebra. LAPACK provides routines for solving systems of |
---|
31 | simultaneous linear equations, least-squares solutions of linear |
---|
32 | systems of equations, eigenvalue problems, and singular value problems. |
---|
33 | Associated matrix factorizations (LU, Cholesky, QR, SVD, Schur, and |
---|
34 | generalized Schur) and related computations (i.e., reordering of |
---|
35 | Schur factorizations and estimating condition numbers) are also |
---|
36 | included. LAPACK can handle dense and banded matrices, but not general |
---|
37 | sparse matrices. Similar functionality is provided for real and complex |
---|
38 | matrices in both single and double precision. LAPACK is coded in |
---|
39 | Fortran77 and built with gcc. |
---|
40 | |
---|
41 | %description -l ja |
---|
42 | LAPACK(Linear Algebra PACKage)は線形代数用数値計算の標準ライブラリです。 |
---|
43 | LAPACKには、連立一次方程式、線形最小二乗解、固有値問題、特異値問題を解く |
---|
44 | ためのルーチンがあります。関連する行列因子分解(LU、Cholesky、QR、SVD、 |
---|
45 | Schur、一般化Schur)と、それに関連する計算処理 (つまりSchur分解の再配列 |
---|
46 | およびコンディションナンバーの推定)も含まれます。LAPACKは密なbanded行列は |
---|
47 | 処理できますが、一般的な疎行列は処理できません。同じ計算機能が、実行列 |
---|
48 | および複素行列の単制度および倍精度で利用できます。LAPACKはFortran 77で |
---|
49 | 記述され、gccでビルドされています。 |
---|
50 | |
---|
51 | %package devel |
---|
52 | Summary: LAPACK development libraries |
---|
53 | Group: Development/Libraries |
---|
54 | Requires: %{name} = %{version}-%{release} |
---|
55 | Requires: blas-devel = %{version}-%{release} |
---|
56 | |
---|
57 | %description devel |
---|
58 | LAPACK development libraries (shared). |
---|
59 | |
---|
60 | %package static |
---|
61 | Summary: LAPACK static libraries |
---|
62 | Group: Development/Libraries |
---|
63 | |
---|
64 | %description static |
---|
65 | LAPACK static libraries. |
---|
66 | |
---|
67 | %package -n blas |
---|
68 | Summary: The BLAS (Basic Linear Algebra Subprograms) library. |
---|
69 | Group: Development/Libraries |
---|
70 | Obsoletes: lapack-blas blas-man |
---|
71 | |
---|
72 | %description -n blas |
---|
73 | BLAS (Basic Linear Algebra Subprograms) is a standard library which |
---|
74 | provides a number of basic algorithms for numerical algebra. Man |
---|
75 | pages for blas are available in the blas-man package. |
---|
76 | |
---|
77 | %description -n blas -l ja |
---|
78 | BLAS(Basic Linear Algebra Subprograms)は数値代数計算の標準ライブラリです。BLASでは、線形代数計算における多くの基本アルゴリズムを利用できます。Blasの計算は高速で十分テストされているFORTRAN 77のプログラムで、gccでビルドされています。 |
---|
79 | |
---|
80 | %description -n blas |
---|
81 | BLAS (Basic Linear Algebra Subprograms) is a standard library which |
---|
82 | provides a number of basic algorithms for numerical algebra. |
---|
83 | |
---|
84 | %package -n blas-devel |
---|
85 | Summary: LAPACK development libraries |
---|
86 | Group: Development/Libraries |
---|
87 | Requires: blas = %{version}-%{release} |
---|
88 | Requires: gcc-gfortran |
---|
89 | |
---|
90 | %description -n blas-devel |
---|
91 | BLAS development libraries (shared). |
---|
92 | |
---|
93 | %package -n blas-static |
---|
94 | Summary: BLAS static libraries |
---|
95 | Group: Development/Libraries |
---|
96 | |
---|
97 | %description -n blas-static |
---|
98 | BLAS static libraries. |
---|
99 | |
---|
100 | %prep |
---|
101 | %setup -q |
---|
102 | %setup -q -D -T -a1 |
---|
103 | # using gfortran |
---|
104 | %patch3 -p1 |
---|
105 | cp -f INSTALL/make.inc.gfortran make.inc |
---|
106 | cp -f %{SOURCE2} BLAS/SRC/Makefile |
---|
107 | cp -f %{SOURCE3} SRC/Makefile |
---|
108 | |
---|
109 | sed -i "s|@SHORTVER@|%{shortver}|g" BLAS/SRC/Makefile |
---|
110 | sed -i "s|@SHORTVER@|%{shortver}|g" SRC/Makefile |
---|
111 | sed -i "s|@LONGVER@|%{version}|g" BLAS/SRC/Makefile |
---|
112 | sed -i "s|@LONGVER@|%{version}|g" SRC/Makefile |
---|
113 | |
---|
114 | #Empty |
---|
115 | rm -f manpages/man/manl/zbcon.l |
---|
116 | |
---|
117 | %build |
---|
118 | |
---|
119 | RPM_OPT_O_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's|-O2|-O0|') |
---|
120 | # using gfortran |
---|
121 | export FC=gfortran |
---|
122 | |
---|
123 | # Build BLAS |
---|
124 | pushd BLAS/SRC |
---|
125 | FFLAGS="$RPM_OPT_O_FLAGS" make dcabs1.o |
---|
126 | FFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" make static |
---|
127 | cp libblas.a ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
128 | make clean |
---|
129 | FFLAGS="$RPM_OPT_O_FLAGS -fPIC" make dcabs1.o |
---|
130 | FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" make shared |
---|
131 | cp libblas.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
132 | popd |
---|
133 | |
---|
134 | ln -s libblas.so.%{version} libblas.so |
---|
135 | |
---|
136 | # Build the static dlamch, dsecnd, lsame, second, slamch bits |
---|
137 | pushd INSTALL |
---|
138 | make NOOPT="$RPM_OPT_O_FLAGS" OPTS="$RPM_OPT_FLAGS" |
---|
139 | popd |
---|
140 | |
---|
141 | # Build the static lapack library |
---|
142 | pushd SRC |
---|
143 | make FFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" static |
---|
144 | cp liblapack.a ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
145 | popd |
---|
146 | |
---|
147 | # Build the static with pic dlamch, dsecnd, lsame, second, slamch bits |
---|
148 | pushd INSTALL |
---|
149 | make clean |
---|
150 | make NOOPT="$RPM_OPT_O_FLAGS -fPIC" OPTS="$RPM_OPT_FLAGS -fPIC" |
---|
151 | popd |
---|
152 | |
---|
153 | # Build the static with pic lapack library |
---|
154 | pushd SRC |
---|
155 | make clean |
---|
156 | make FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" static |
---|
157 | cp liblapack.a ${RPM_BUILD_DIR}/%{name}-%{version}/liblapack_pic.a |
---|
158 | popd |
---|
159 | |
---|
160 | # Build the shared dlamch, dsecnd, lsame, second, slamch bits |
---|
161 | pushd INSTALL |
---|
162 | make clean |
---|
163 | make NOOPT="$RPM_OPT_O_FLAGS -fPIC" OPTS="$RPM_OPT_FLAGS -fPIC" |
---|
164 | popd |
---|
165 | |
---|
166 | # Build the shared lapack library |
---|
167 | pushd SRC |
---|
168 | make clean |
---|
169 | make FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" shared |
---|
170 | cp liblapack.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
171 | popd |
---|
172 | |
---|
173 | cp -p %{SOURCE4} lapackqref.ps |
---|
174 | cp -p %{SOURCE5} blasqr.ps |
---|
175 | |
---|
176 | %install |
---|
177 | rm -fr ${RPM_BUILD_ROOT} |
---|
178 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir} |
---|
179 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/manl |
---|
180 | chmod 755 ${RPM_BUILD_ROOT}%{_mandir}/manl |
---|
181 | |
---|
182 | for f in liblapack.so.%{version} libblas.so.%{version} libblas.a liblapack.a liblapack_pic.a; do |
---|
183 | cp -f $f ${RPM_BUILD_ROOT}%{_libdir}/$f |
---|
184 | done |
---|
185 | |
---|
186 | find manpages/blas/man/manl -type f -printf "%{_mandir}/manl/%f*\n" > blasmans |
---|
187 | |
---|
188 | # These are also in the BLAS package |
---|
189 | rm -f manpages/man/manl/lsame.l* |
---|
190 | rm -f manpages/man/manl/xerbla.l* |
---|
191 | find manpages/man/manl -type f -printf "%{_mandir}/manl/%f*\n" > lapackmans |
---|
192 | |
---|
193 | cp -f manpages/blas/man/manl/* ${RPM_BUILD_ROOT}%{_mandir}/manl |
---|
194 | cp -f manpages/man/manl/* ${RPM_BUILD_ROOT}%{_mandir}/manl |
---|
195 | |
---|
196 | cd ${RPM_BUILD_ROOT}%{_libdir} |
---|
197 | ln -sf liblapack.so.%{version} liblapack.so |
---|
198 | ln -sf liblapack.so.%{version} liblapack.so.%{shortver} |
---|
199 | ln -sf liblapack.so.%{version} liblapack.so.%{mediumver} |
---|
200 | ln -sf libblas.so.%{version} libblas.so |
---|
201 | ln -sf libblas.so.%{version} libblas.so.%{shortver} |
---|
202 | ln -sf libblas.so.%{version} libblas.so.%{mediumver} |
---|
203 | |
---|
204 | %post -p /sbin/ldconfig |
---|
205 | |
---|
206 | %postun -p /sbin/ldconfig |
---|
207 | |
---|
208 | %post -n blas -p /sbin/ldconfig |
---|
209 | |
---|
210 | %postun -n blas -p /sbin/ldconfig |
---|
211 | |
---|
212 | %clean |
---|
213 | rm -fr ${RPM_BUILD_ROOT} |
---|
214 | |
---|
215 | %files -f lapackmans |
---|
216 | %defattr(-,root,root) |
---|
217 | %doc README LICENSE lapackqref.ps |
---|
218 | %dir %{_mandir}/manl/ |
---|
219 | %{_libdir}/liblapack.so.* |
---|
220 | |
---|
221 | %files devel |
---|
222 | %defattr(-,root,root,-) |
---|
223 | %{_libdir}/liblapack.so |
---|
224 | |
---|
225 | %files static |
---|
226 | %defattr(-,root,root,-) |
---|
227 | %{_libdir}/liblapack*.a |
---|
228 | |
---|
229 | %files -n blas -f blasmans |
---|
230 | %defattr(-,root,root) |
---|
231 | %doc blasqr.ps LICENSE |
---|
232 | %dir %{_mandir}/manl/ |
---|
233 | %{_libdir}/libblas.so.* |
---|
234 | |
---|
235 | %files -n blas-devel |
---|
236 | %defattr(-,root,root,-) |
---|
237 | %{_libdir}/libblas.so |
---|
238 | |
---|
239 | %files -n blas-static |
---|
240 | %defattr(-,root,root,-) |
---|
241 | %{_libdir}/libblas*.a |
---|
242 | |
---|
243 | %changelog |
---|
244 | * Sat Nov 26 2011 NAKAMURA Kenta <kenta@vinelinux.org> 3.3.1-1 |
---|
245 | - new upstream release |
---|
246 | - update package descriptions |
---|
247 | |
---|
248 | * Fri Feb 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.1-1 |
---|
249 | - new upstream release |
---|
250 | - built with new toolchain |
---|
251 | - added SOURCE1 |
---|
252 | |
---|
253 | * Wed Sep 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-2 |
---|
254 | - applied new versioning policy |
---|
255 | - spec in UTF-8 |
---|
256 | |
---|
257 | * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-1vl3 |
---|
258 | - rebuilt for VineSeed |
---|
259 | |
---|
260 | * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-1vl2 |
---|
261 | - rebuilt for VinePlus/4.0 |
---|
262 | - added Patch4, Source102 and Source103 for compiling in g77 |
---|
263 | - added BuildRequires: coreutils, findutils |
---|
264 | |
---|
265 | * Tue Aug 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-1vl1 |
---|
266 | - new upstream release based on Fedora packages |
---|
267 | * Wed Sep 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-30 |
---|
268 | - make -devel packages |
---|
269 | - make liblapack_pic.a package |
---|
270 | * Wed Aug 20 2003 Jeremy Katz <katzj@redhat.com> 3.0-22 |
---|
271 | - nuke -man subpackages (#97506) |
---|
272 | - rebuilt with gfortran |
---|
273 | |
---|
274 | * Thu Dec 26 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0-17vl3 |
---|
275 | - rebuild with new toolchains |
---|
276 | |
---|
277 | * Mon Oct 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0-17vl2 |
---|
278 | - rebuild with new toolchains |
---|
279 | |
---|
280 | * Thu Jul 18 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.0-17vl1 |
---|
281 | - modified for Vine. |
---|
282 | |
---|
283 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
284 | - automated rebuild |
---|
285 | |
---|
286 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
287 | - automated rebuild |
---|
288 | |
---|
289 | * Wed May 1 2002 Trond Eivind Glomsr� <teg@redhat.com> 3.0-15 |
---|
290 | - Rebuild |
---|
291 | |
---|
292 | * Wed Feb 27 2002 Fuhito Suguri <bitwalk@jcom.home.ne.jp> 3.0-14bw |
---|
293 | - rebuild for RH7.2. |
---|
294 | |
---|
295 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
296 | - automated rebuild |
---|
297 | |
---|
298 | * Mon Aug 13 2001 Trond Eivind Glomsrod <teg@redhat.com> 3.0-12 |
---|
299 | - The man-pages for xerbla and lsame were in blas-man and lapack-man (#51605) |
---|
300 | |
---|
301 | * Fri Jun 8 2001 Trond Eivind Glomsrod <teg@redhat.com> |
---|
302 | - Reenable optimization for IA64 |
---|
303 | |
---|
304 | * Fri May 25 2001 Trond Eivind Glomsrod <teg@redhat.com> |
---|
305 | - Add all patches from the LAPACK site as of 2001-05-25 |
---|
306 | - Use this workaround for IA64 instead |
---|
307 | - Remove SPARC workaround |
---|
308 | - Don't exclude IA64 |
---|
309 | |
---|
310 | * Thu Dec 07 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
311 | - rebuild for main distribution |
---|
312 | |
---|
313 | * Mon Nov 20 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
314 | - add the LAPACK Quick Reference Guide to the docs |
---|
315 | - add the BLAS Quick Reference Guide to the docs |
---|
316 | |
---|
317 | * Tue Aug 01 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
318 | - fix lack of ldconfig in postuninstall script |
---|
319 | |
---|
320 | * Mon Jul 24 2000 Prospector <prospector@redhat.com> |
---|
321 | - rebuilt |
---|
322 | |
---|
323 | * Mon Jul 10 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
324 | - updated with the latest updates (new tarfile..) from netlib |
---|
325 | |
---|
326 | * Thu Jun 15 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
327 | - use %%{_mandir} |
---|
328 | - added some flags to work around SPARC compiler bug |
---|
329 | |
---|
330 | * Wed Jan 19 2000 Tim Powers <timp@redhat.com> |
---|
331 | - bzipped sources to conserve space |
---|
332 | |
---|
333 | * Tue Jan 4 2000 Jeff Johnson <jbj@redhat.com> |
---|
334 | - build for PowerTools 6.2. |
---|
335 | |
---|
336 | * Sat Dec 25 1999 Joachim Frieben <jfrieben@hotmail.com> |
---|
337 | - updated to version v3.0 + update as of Tue Nov 30 1999 |
---|
338 | |
---|
339 | * Sat Oct 23 1999 Joachim Frieben <jfrieben@hotmail.com> |
---|
340 | - updated Red Hat makefiles to v3.0 |
---|
341 | |
---|
342 | * Mon Aug 2 1999 Tim Powers <timp@redhat.com> |
---|
343 | - updated to v3.0 |
---|
344 | - built for 6.1 |
---|
345 | |
---|
346 | * Mon Apr 12 1999 Michael Maher <mike@redhat.com> |
---|
347 | - built package for 6.0 |
---|
348 | |
---|
349 | * Sat Oct 24 1998 Jeff Johnson <jbj@redhat.com> |
---|
350 | - new description/summary text. |
---|
351 | |
---|
352 | * Fri Jul 17 1998 Jeff Johnson <jbj@redhat.com> |
---|
353 | - repackage for powertools. |
---|
354 | |
---|
355 | * Sun Feb 15 1998 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
356 | [lapack-2.0-9] |
---|
357 | - No code updates, just built with a customized rpm - |
---|
358 | this should make dependencies right. |
---|
359 | |
---|
360 | * Sat Feb 07 1998 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
361 | [lapack-2.0-8] |
---|
362 | - Total rewrite of the spec file |
---|
363 | - Added my own makefiles - libs should build better, |
---|
364 | static libs should work (and be faster than they |
---|
365 | would be if they had worked earlier ;) |
---|
366 | - No patch necessary anymore. |
---|
367 | - Renamed lapack-blas and lapack-blas-man to |
---|
368 | blas and blas-man. "Obsoletes:" tag added. |
---|
369 | (oh - and as always: Dedicated to the girl I |
---|
370 | love, Eline Skirnisdottir) |
---|
371 | |
---|
372 | * Sat Dec 06 1997 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
373 | [lapack-2.0-7] |
---|
374 | - added a dependency to glibc, so people don't try with libc5 |
---|
375 | |
---|
376 | * Thu Nov 20 1997 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
377 | [lapack-2.0-6] |
---|
378 | - removed etime.c |
---|
379 | - compiled with egcs, and for glibc 2.0 |
---|
380 | |
---|
381 | * Sun Oct 12 1997 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
382 | [lapack-2.0-5] |
---|
383 | - added a changelog |
---|
384 | - cleaned up building of shared libs |
---|
385 | - now uses a BuildRoot |
---|
386 | - cleaned up the specfile |
---|