1 | %global shortver 3 |
---|
2 | %global mediumver %{shortver}.7 |
---|
3 | |
---|
4 | # Build 64-bit interface binaries? |
---|
5 | %ifarch %{ix86} |
---|
6 | %global build64 0 |
---|
7 | %endif |
---|
8 | %ifarch x86_64 |
---|
9 | %global build64 1 |
---|
10 | %endif |
---|
11 | |
---|
12 | |
---|
13 | Summary: Numerical linear algebra package libraries |
---|
14 | Summary(ja): 線形代数パッケージライブラリ |
---|
15 | Name: lapack |
---|
16 | Version: %{mediumver}.1 |
---|
17 | Release: 4%{?_dist_release} |
---|
18 | |
---|
19 | License: BSD |
---|
20 | Group: System Environment/Libraries |
---|
21 | URL: http://www.netlib.org/lapack/ |
---|
22 | |
---|
23 | Source0: http://www.netlib.org/lapack/lapack-%{version}.tgz |
---|
24 | Source1: http://www.netlib.org/lapack/manpages.tgz |
---|
25 | Source2: Makefile.blas |
---|
26 | Source3: Makefile.lapack |
---|
27 | Source4: Makefile.cblas |
---|
28 | Source11: http://www.netlib.org/lapack/lapackqref.ps |
---|
29 | Source12: http://www.netlib.org/blas/blasqr.ps |
---|
30 | |
---|
31 | # Patch3: lapack-3.4.0-make.inc.patch |
---|
32 | # Patch4: lapack-3.4.1-lapacke-shared.patch |
---|
33 | # Patch5: lapack-3.4.1-lapacke-disable-testing-functions.patch |
---|
34 | # Patch6: lapack-3.5.0-lapacke-matgenobj.patch |
---|
35 | # Patch7: lapack-3.5.0-lapacke-tmglib.patch |
---|
36 | # Patch8: lapack-3.5.0-R-blas-fixes.patch |
---|
37 | Patch11: lapack-3.7.1-make.inc.patch |
---|
38 | Patch12: lapack-3.7.1-lapacke-shared.patch |
---|
39 | Patch13: lapack-3.7.1-lapacke-tmglib.patch |
---|
40 | |
---|
41 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
42 | BuildRequires: gcc-gfortran |
---|
43 | BuildRequires: coreutils findutils |
---|
44 | |
---|
45 | Vendor: Project Vine |
---|
46 | Distribution: Vine Linux |
---|
47 | Packager: inagaki, kenta |
---|
48 | |
---|
49 | |
---|
50 | %description |
---|
51 | LAPACK (Linear Algebra PACKage) is a standard library for numerical |
---|
52 | linear algebra. LAPACK provides routines for solving systems of |
---|
53 | simultaneous linear equations, least-squares solutions of linear |
---|
54 | systems of equations, eigenvalue problems, and singular value problems. |
---|
55 | Associated matrix factorizations (LU, Cholesky, QR, SVD, Schur, and |
---|
56 | generalized Schur) and related computations (i.e., reordering of |
---|
57 | Schur factorizations and estimating condition numbers) are also |
---|
58 | included. LAPACK can handle dense and banded matrices, but not general |
---|
59 | sparse matrices. Similar functionality is provided for real and complex |
---|
60 | matrices in both single and double precision. LAPACK is coded in |
---|
61 | Fortran90 and built with gcc. |
---|
62 | |
---|
63 | %description -l ja |
---|
64 | LAPACK(Linear Algebra PACKage)は線形代数用数値計算の標準ライブラリです。 |
---|
65 | LAPACKには、連立一次方程式、線形最小二乗解、固有値問題、特異値問題を解く |
---|
66 | ためのルーチンがあります。関連する行列因子分解(LU、Cholesky、QR、SVD、 |
---|
67 | Schur、一般化Schur)と、それに関連する計算処理 (つまりSchur分解の再配列 |
---|
68 | およびコンディションナンバーの推定)も含まれます。 |
---|
69 | LAPACKは密なbanded行列は処理できますが、一般的な疎行列は処理できません。 |
---|
70 | 同じ計算機能が、実行列および複素行列の単制度および倍精度で利用できます。 |
---|
71 | LAPACKはFortran 90で記述され、gccでビルドされています。 |
---|
72 | |
---|
73 | %package devel |
---|
74 | Summary: LAPACK development libraries |
---|
75 | Summary(ja): LAPACK の開発用ライブラリ |
---|
76 | Group: Development/Libraries |
---|
77 | Requires: %{name} = %{version}-%{release} |
---|
78 | Requires: blas-devel = %{version}-%{release} |
---|
79 | |
---|
80 | %description devel |
---|
81 | LAPACK development libraries (shared). |
---|
82 | |
---|
83 | %description devel -l ja |
---|
84 | LAPACK の開発用ライブラリ(共有ライブラリ)です。 |
---|
85 | |
---|
86 | %package static |
---|
87 | Summary: LAPACK static libraries |
---|
88 | Summary(ja): LAPACK の静的ライブラリ |
---|
89 | Group: Development/Libraries |
---|
90 | Requires: %{name}-devel = %{version}-%{release} |
---|
91 | |
---|
92 | %description static |
---|
93 | LAPACK static libraries. |
---|
94 | |
---|
95 | %description static -l ja |
---|
96 | LAPACK の静的ライブラリです。 |
---|
97 | |
---|
98 | %package -n blas |
---|
99 | Summary: The BLAS (Basic Linear Algebra Subprograms) library. |
---|
100 | Summary(ja): 基本線形代数サブプログラム群のライブラリ |
---|
101 | Group: System Environment/Libraries |
---|
102 | |
---|
103 | %description -n blas |
---|
104 | BLAS (Basic Linear Algebra Subprograms) is a standard library which |
---|
105 | provides a number of basic algorithms for numerical algebra. |
---|
106 | |
---|
107 | %description -n blas -l ja |
---|
108 | BLAS(Basic Linear Algebra Subprograms)は数値代数計算の標準ライブラリです。 |
---|
109 | BLASでは、線形代数計算における多くの基本アルゴリズムを利用できます。 |
---|
110 | Blasの計算は高速で十分テストされているFORTRAN 90のプログラムで、 |
---|
111 | gccでビルドされています。 |
---|
112 | |
---|
113 | %package -n blas-devel |
---|
114 | Summary: BLAS development libraries |
---|
115 | Summary(ja): BLAS の開発用ライブラリ |
---|
116 | Group: Development/Libraries |
---|
117 | Requires: blas = %{version}-%{release} |
---|
118 | Requires: gcc-gfortran |
---|
119 | |
---|
120 | %description -n blas-devel |
---|
121 | BLAS development libraries (shared). |
---|
122 | |
---|
123 | %description -n blas-devel -l ja |
---|
124 | BLAS の開発用ライブラリ(共有ライブラリ)です。 |
---|
125 | |
---|
126 | %package -n blas-static |
---|
127 | Summary: BLAS static libraries |
---|
128 | Summary(ja): BLAS の静的ライブラリ |
---|
129 | Group: Development/Libraries |
---|
130 | Requires: blas-devel = %{version}-%{release} |
---|
131 | |
---|
132 | %description -n blas-static |
---|
133 | BLAS static libraries. |
---|
134 | |
---|
135 | %description -n blas-static -l ja |
---|
136 | BLAS の静的ライブラリです。 |
---|
137 | |
---|
138 | |
---|
139 | %if %build64 |
---|
140 | %package -n lapack64 |
---|
141 | Summary: Numerical linear algebra package libraries |
---|
142 | Group: System Environment/Libraries |
---|
143 | Requires: blas64 = %{version}-%{release} |
---|
144 | |
---|
145 | %description -n lapack64 |
---|
146 | LAPACK (Linear Algebra PACKage) is a standard library for numerical |
---|
147 | linear algebra. LAPACK provides routines for solving systems of |
---|
148 | simultaneous linear equations, least-squares solutions of linear |
---|
149 | systems of equations, eigenvalue problems, and singular value |
---|
150 | problems. Associated matrix factorizations (LU, Cholesky, QR, SVD, |
---|
151 | Schur, and generalized Schur) and related computations (i.e., |
---|
152 | reordering of Schur factorizations and estimating condition numbers) |
---|
153 | are also included. LAPACK can handle dense and banded matrices, but |
---|
154 | not general sparse matrices. Similar functionality is provided for |
---|
155 | real and complex matrices in both single and double precision. LAPACK |
---|
156 | is coded in Fortran90 and built with gcc. |
---|
157 | This build has 64bit INTEGER support. |
---|
158 | |
---|
159 | %package -n lapack64-devel |
---|
160 | Summary: LAPACK development libraries (64bit INTEGER) |
---|
161 | Group: Development/Libraries |
---|
162 | Requires: lapack64 = %{version}-%{release} |
---|
163 | Requires: lapack-devel = %{version}-%{release} |
---|
164 | Requires: blas64-devel = %{version}-%{release} |
---|
165 | |
---|
166 | %description -n lapack64-devel |
---|
167 | LAPACK development libraries (shared, 64bit INTEGER). |
---|
168 | |
---|
169 | %package -n lapack64-static |
---|
170 | Summary: LAPACK static libraries (64bit INTEGER) |
---|
171 | Group: Development/Libraries |
---|
172 | Requires: lapack64-devel = %{version}-%{release} |
---|
173 | |
---|
174 | %description -n lapack64-static |
---|
175 | LAPACK static libraries (64bit INTEGER). |
---|
176 | |
---|
177 | %package -n blas64 |
---|
178 | Summary: The Basic Linear Algebra Subprograms library (64bit INTEGER) |
---|
179 | Group: System Environment/Libraries |
---|
180 | |
---|
181 | %description -n blas64 |
---|
182 | BLAS (Basic Linear Algebra Subprograms) is a standard library which |
---|
183 | provides a number of basic algorithms for numerical algebra. This build |
---|
184 | has 64bit INTEGER support. |
---|
185 | |
---|
186 | %package -n blas64-devel |
---|
187 | Summary: BLAS development libraries |
---|
188 | Group: Development/Libraries |
---|
189 | Requires: blas64 = %{version}-%{release} |
---|
190 | Requires: blas-devel = %{version}-%{release} |
---|
191 | Requires: gcc-gfortran |
---|
192 | |
---|
193 | %description -n blas64-devel |
---|
194 | BLAS development libraries (shared). |
---|
195 | |
---|
196 | %package -n blas64-static |
---|
197 | Summary: BLAS static libraries (64bit INTEGER) |
---|
198 | Group: Development/Libraries |
---|
199 | Requires: blas64-devel = %{version}-%{release} |
---|
200 | |
---|
201 | %description -n blas64-static |
---|
202 | BLAS static libraries (64bit INTEGER). |
---|
203 | %endif |
---|
204 | |
---|
205 | |
---|
206 | %prep |
---|
207 | %setup -q |
---|
208 | %setup -q -D -T -a1 |
---|
209 | # %patch3 -p1 -b .fedora |
---|
210 | # %patch4 -p1 -b .shared |
---|
211 | # %patch5 -p1 -b .disable-functions |
---|
212 | # %patch6 -p1 -b .matgenobj |
---|
213 | # %patch7 -p1 -b .tmglib |
---|
214 | # %patch8 -p1 -b .R |
---|
215 | %patch11 -p1 -b .fedora |
---|
216 | %patch12 -p1 -b .shared |
---|
217 | %patch13 -p1 -b .tmglib |
---|
218 | |
---|
219 | cp -f INSTALL/make.inc.gfortran make.inc |
---|
220 | cp -f %{SOURCE2} BLAS/SRC/Makefile |
---|
221 | cp -f %{SOURCE3} SRC/Makefile |
---|
222 | cp -f %{SOURCE4} CBLAS/src/Makefile |
---|
223 | |
---|
224 | sed -i "s|@SHORTVER@|%{shortver}|g" BLAS/SRC/Makefile |
---|
225 | sed -i "s|@SHORTVER@|%{shortver}|g" SRC/Makefile |
---|
226 | sed -i "s|@SHORTVER@|%{shortver}|g" LAPACKE/Makefile |
---|
227 | sed -i "s|@SHORTVER@|%{shortver}|g" CBLAS/src/Makefile |
---|
228 | sed -i "s|@LONGVER@|%{version}|g" BLAS/SRC/Makefile |
---|
229 | sed -i "s|@LONGVER@|%{version}|g" SRC/Makefile |
---|
230 | sed -i "s|@LONGVER@|%{version}|g" LAPACKE/Makefile |
---|
231 | sed -i "s|@LONGVER@|%{version}|g" CBLAS/src/Makefile |
---|
232 | |
---|
233 | cp -p %{SOURCE11} lapackqref.ps |
---|
234 | cp -p %{SOURCE12} blasqr.ps |
---|
235 | |
---|
236 | %build |
---|
237 | RPM_OPT_FLAGS="$RPM_OPT_FLAGS -frecursive" |
---|
238 | RPM_OPT_O_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's|-O2|-O0|') |
---|
239 | export FC=gfortran |
---|
240 | |
---|
241 | # Build BLAS |
---|
242 | pushd BLAS/SRC |
---|
243 | FFLAGS="$RPM_OPT_O_FLAGS" make dcabs1.o |
---|
244 | FFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" make static |
---|
245 | cp libblas.a ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
246 | make clean |
---|
247 | FFLAGS="$RPM_OPT_O_FLAGS -fPIC" make dcabs1.o |
---|
248 | FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" make shared |
---|
249 | cp libblas.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
250 | |
---|
251 | %if %build64 |
---|
252 | make clean |
---|
253 | FFLAGS="$RPM_OPT_O_FLAGS -fdefault-integer-8" make dcabs1.o |
---|
254 | SYMBOLPREFIX="64_" FFLAGS="$RPM_OPT_FLAGS -fdefault-integer-8" CFLAGS="$RPM_OPT_FLAGS" make static |
---|
255 | cp libblas64_.a ${RPM_BUILD_DIR}/%{name}-%{version}/libblas64_.a |
---|
256 | make clean |
---|
257 | FFLAGS="$RPM_OPT_O_FLAGS -fPIC -fdefault-integer-8" make dcabs1.o |
---|
258 | SYMBOLPREFIX="64_" FFLAGS="$RPM_OPT_FLAGS -fPIC -fdefault-integer-8" CFLAGS="$RPM_OPT_FLAGS -fPIC" LDFLAGS="%{build_ldflags}" make shared |
---|
259 | cp libblas64_.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/libblas64_.so.%{version} |
---|
260 | %endif |
---|
261 | popd |
---|
262 | |
---|
263 | ln -s libblas.so.%{version} libblas.so |
---|
264 | %if %build64 |
---|
265 | ln -s libblas64_.so.%{version} libblas64_.so |
---|
266 | %endif |
---|
267 | |
---|
268 | # Build CBLAS |
---|
269 | cp CBLAS/include/cblas_mangling_with_flags.h.in CBLAS/include/cblas_mangling.h |
---|
270 | pushd CBLAS/src |
---|
271 | FFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS -I../include" make static |
---|
272 | cp libcblas.a ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
273 | make clean |
---|
274 | FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC -I../include" make shared |
---|
275 | cp libcblas.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
276 | |
---|
277 | %if %build64 |
---|
278 | make clean |
---|
279 | SYMBOLPREFIX="64_" FFLAGS="$RPM_OPT_FLAGS -fdefault-integer-8" CFLAGS="$RPM_OPT_FLAGS -I../include" make static |
---|
280 | cp libcblas64_.a ${RPM_BUILD_DIR}/%{name}-%{version}/libcblas64_.a |
---|
281 | make clean |
---|
282 | SYMBOLPREFIX="64_" FFLAGS="$RPM_OPT_FLAGS -fPIC -fdefault-integer-8" CFLAGS="$RPM_OPT_FLAGS -fPIC -I../include" make shared |
---|
283 | cp libcblas64_.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/libcblas64_.so.%{version} |
---|
284 | %endif |
---|
285 | popd |
---|
286 | |
---|
287 | ln -s libcblas.so.%{version} libcblas.so |
---|
288 | %if %build64 |
---|
289 | ln -s libcblas64_.so.%{version} libcblas64_.so |
---|
290 | %endif |
---|
291 | |
---|
292 | # Build the static dlamch, dsecnd, lsame, second, slamch bits |
---|
293 | pushd INSTALL |
---|
294 | make NOOPT="$RPM_OPT_O_FLAGS" OPTS="$RPM_OPT_FLAGS" |
---|
295 | popd |
---|
296 | |
---|
297 | # Build the static lapack library |
---|
298 | pushd SRC |
---|
299 | make FFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" static |
---|
300 | cp liblapack.a ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
301 | popd |
---|
302 | |
---|
303 | # Build the static with pic dlamch, dsecnd, lsame, second, slamch bits |
---|
304 | pushd INSTALL |
---|
305 | make clean |
---|
306 | make NOOPT="$RPM_OPT_O_FLAGS -fPIC" OPTS="$RPM_OPT_FLAGS -fPIC" |
---|
307 | popd |
---|
308 | |
---|
309 | # Build the static with pic lapack library |
---|
310 | pushd SRC |
---|
311 | make clean |
---|
312 | make FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" static |
---|
313 | cp liblapack.a ${RPM_BUILD_DIR}/%{name}-%{version}/liblapack_pic.a |
---|
314 | popd |
---|
315 | |
---|
316 | %if %build64 |
---|
317 | # Build the static dlamch, dsecnd, lsame, second, slamch bits |
---|
318 | pushd INSTALL |
---|
319 | make NOOPT="$RPM_OPT_O_FLAGS -fdefault-integer-8" OPTS="$RPM_OPT_FLAGS -fdefault-integer-8" |
---|
320 | popd |
---|
321 | |
---|
322 | # Build the static lapack library |
---|
323 | pushd SRC |
---|
324 | make SYMBOLPREFIX="64_" FFLAGS="$RPM_OPT_FLAGS -fdefault-integer-8" CFLAGS="$RPM_OPT_FLAGS" static |
---|
325 | cp liblapack64_.a ${RPM_BUILD_DIR}/%{name}-%{version}/liblapack64_.a |
---|
326 | popd |
---|
327 | |
---|
328 | # Build the static with pic dlamch, dsecnd, lsame, second, slamch bits (64bit INTEGER) |
---|
329 | pushd INSTALL |
---|
330 | make clean |
---|
331 | make NOOPT="$RPM_OPT_O_FLAGS -fPIC -fdefault-integer-8" OPTS="$RPM_OPT_FLAGS -fPIC -fdefault-integer-8" |
---|
332 | popd |
---|
333 | |
---|
334 | # Build the static with pic lapack library (64bit INTEGER) |
---|
335 | pushd SRC |
---|
336 | make clean |
---|
337 | make SYMBOLPREFIX="64_" FFLAGS="$RPM_OPT_FLAGS -fPIC -fdefault-integer-8" CFLAGS="$RPM_OPT_FLAGS -fPIC" static |
---|
338 | cp liblapack64_.a ${RPM_BUILD_DIR}/%{name}-%{version}/liblapack64_pic.a |
---|
339 | popd |
---|
340 | %endif |
---|
341 | |
---|
342 | # Build the shared dlamch, dsecnd, lsame, second, slamch bits |
---|
343 | pushd INSTALL |
---|
344 | make clean |
---|
345 | make NOOPT="$RPM_OPT_O_FLAGS -fPIC" OPTS="$RPM_OPT_FLAGS -fPIC" |
---|
346 | popd |
---|
347 | |
---|
348 | # Build the shared lapack library |
---|
349 | pushd SRC |
---|
350 | make clean |
---|
351 | make FFLAGS="$RPM_OPT_FLAGS -fPIC" CFLAGS="$RPM_OPT_FLAGS -fPIC" shared |
---|
352 | cp liblapack.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
353 | popd |
---|
354 | |
---|
355 | %if %build64 |
---|
356 | # Build the shared dlamch, dsecnd, lsame, second, slamch bits |
---|
357 | pushd INSTALL |
---|
358 | make clean |
---|
359 | make NOOPT="$RPM_OPT_O_FLAGS -fPIC -fdefault-integer-8" OPTS="$RPM_OPT_FLAGS -fPIC -fdefault-integer-8" |
---|
360 | popd |
---|
361 | |
---|
362 | # Build the shared lapack library |
---|
363 | pushd SRC |
---|
364 | make clean |
---|
365 | make SYMBOLPREFIX="64_" FFLAGS="$RPM_OPT_FLAGS -fPIC -fdefault-integer-8" CFLAGS="$RPM_OPT_FLAGS -fPIC -fdefault-integer-8" shared |
---|
366 | cp liblapack64_.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/liblapack64_.so.%{version} |
---|
367 | popd |
---|
368 | %endif |
---|
369 | |
---|
370 | ln -s liblapack.so.%{version} liblapack.so |
---|
371 | %if %build64 |
---|
372 | ln -s liblapack64_.so.%{version} liblapack64_.so |
---|
373 | %endif |
---|
374 | |
---|
375 | # Build the lapacke libraries |
---|
376 | make OPTS="$RPM_OPT_FLAGS -fPIC" tmglib |
---|
377 | pushd LAPACKE |
---|
378 | make clean |
---|
379 | make CFLAGS="$RPM_OPT_FLAGS" lapacke |
---|
380 | make clean |
---|
381 | make CFLAGS="$RPM_OPT_FLAGS -fPIC" shlib |
---|
382 | cp liblapacke.so.%{version} ${RPM_BUILD_DIR}/%{name}-%{version}/ |
---|
383 | popd |
---|
384 | |
---|
385 | ln -s liblapacke.so.%{version} liblapacke.so |
---|
386 | |
---|
387 | |
---|
388 | %install |
---|
389 | rm -fr $RPM_BUILD_ROOT |
---|
390 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/blas |
---|
391 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/lapack |
---|
392 | mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3 |
---|
393 | chmod 755 $RPM_BUILD_ROOT%{_mandir}/man3 |
---|
394 | |
---|
395 | for f in libblas.so.%{version} libblas.a libcblas.so.%{version} libcblas.a; do |
---|
396 | cp -f $f $RPM_BUILD_ROOT%{_libdir}/blas/$f |
---|
397 | done |
---|
398 | |
---|
399 | for f in liblapack.so.%{version} liblapacke.so.%{version} liblapack.a liblapack_pic.a liblapacke.a; do |
---|
400 | cp -f $f $RPM_BUILD_ROOT%{_libdir}/lapack/$f |
---|
401 | done |
---|
402 | |
---|
403 | %if %build64 |
---|
404 | for f in libblas64_.so.%{version} libcblas64_.so.%{version} libblas64_.a libcblas64_.a; do |
---|
405 | cp -f $f ${RPM_BUILD_ROOT}%{_libdir}/blas/$f |
---|
406 | done |
---|
407 | |
---|
408 | for f in liblapack64_.so.%{version} liblapack64_.a liblapack64_pic.a; do |
---|
409 | cp -f $f ${RPM_BUILD_ROOT}%{_libdir}/lapack/$f |
---|
410 | done |
---|
411 | %endif |
---|
412 | |
---|
413 | # Manpages |
---|
414 | rm -rf manpages |
---|
415 | mkdir -p manpages |
---|
416 | cp -pr man/ manpages/ |
---|
417 | |
---|
418 | pushd manpages/ |
---|
419 | mkdir -p blas/man/man3 |
---|
420 | cd man/man3/ |
---|
421 | mv caxpy.f.3 caxpy.3 ccopy.f.3 ccopy.3 cdotc.f.3 cdotc.3 cdotu.f.3 cdotu.3 cgbmv.f.3 cgbmv.3 \ |
---|
422 | cgemm.f.3 cgemm.3 cgemv.f.3 cgemv.3 cgerc.f.3 cgerc.3 cgeru.f.3 cgeru.3 chbmv.f.3 chbmv.3 \ |
---|
423 | chemm.f.3 chemm.3 chemv.f.3 chemv.3 cher.f.3 cher.3 cher2.f.3 cher2.3 cher2k.f.3 cher2k.3 \ |
---|
424 | cherk.f.3 cherk.3 chpmv.f.3 chpmv.3 chpr.f.3 chpr.3 chpr2.f.3 chpr2.3 crotg.f.3 crotg.3 \ |
---|
425 | cscal.f.3 cscal.3 csrot.f.3 csrot.3 csscal.f.3 csscal.3 cswap.f.3 cswap.3 csymm.f.3 \ |
---|
426 | csymm.3 csyr2k.f.3 csyr2k.3 csyrk.f.3 csyrk.3 ctbmv.f.3 ctbmv.3 ctbsv.f.3 ctbsv.3 ctpmv.f.3 \ |
---|
427 | ctpmv.3 ctpsv.f.3 ctpsv.3 ctrmm.f.3 ctrmm.3 ctrmv.f.3 ctrmv.3 ctrsm.f.3 ctrsm.3 ctrsv.f.3 \ |
---|
428 | ctrsv.3 dasum.f.3 dasum.3 daxpy.f.3 daxpy.3 dcabs1.f.3 dcabs1.3 dcopy.f.3 dcopy.3 ddot.f.3 \ |
---|
429 | ddot.3 dgbmv.f.3 dgbmv.3 dgemm.f.3 dgemm.3 dgemv.f.3 dgemv.3 dger.f.3 dger.3 dnrm2.f.3 \ |
---|
430 | dnrm2.3 drot.f.3 drot.3 drotg.f.3 drotg.3 drotm.f.3 drotm.3 drotmg.f.3 drotmg.3 dsbmv.f.3 \ |
---|
431 | dsbmv.3 dscal.f.3 dscal.3 dsdot.f.3 dsdot.3 dspmv.f.3 dspmv.3 dspr.f.3 dspr.3 dspr2.f.3 \ |
---|
432 | dspr2.3 dswap.f.3 dswap.3 dsymm.f.3 dsymm.3 dsymv.f.3 dsymv.3 dsyr.f.3 dsyr.3 dsyr2.f.3 \ |
---|
433 | dsyr2.3 dsyr2k.f.3 dsyr2k.3 dsyrk.f.3 dsyrk.3 dtbmv.f.3 dtbmv.3 dtbsv.f.3 dtbsv.3 dtpmv.f.3 \ |
---|
434 | dtpmv.3 dtpsv.f.3 dtpsv.3 dtrmm.f.3 dtrmm.3 dtrmv.f.3 dtrmv.3 dtrsm.f.3 dtrsm.3 dtrsv.f.3 \ |
---|
435 | dtrsv.3 dzasum.f.3 dzasum.3 dznrm2.f.3 dznrm2.3 icamax.f.3 icamax.3 idamax.f.3 idamax.3 \ |
---|
436 | isamax.f.3 isamax.3 izamax.f.3 izamax.3 lsame.3 sasum.f.3 sasum.3 saxpy.f.3 saxpy.3 \ |
---|
437 | scabs1.f.3 scabs1.3 scasum.f.3 scasum.3 scnrm2.f.3 scnrm2.3 scopy.f.3 scopy.3 sdot.f.3 sdot.3 \ |
---|
438 | sdsdot.f.3 sdsdot.3 sgbmv.f.3 sgbmv.3 sgemm.f.3 sgemm.3 sgemv.f.3 sgemv.3 sger.f.3 sger.3 \ |
---|
439 | snrm2.f.3 snrm2.3 srot.f.3 srot.3 srotg.f.3 srotg.3 srotm.f.3 srotm.3 srotmg.f.3 srotmg.3 \ |
---|
440 | ssbmv.f.3 ssbmv.3 sscal.f.3 sscal.3 sspmv.f.3 sspmv.3 sspr.f.3 sspr.3 sspr2.f.3 sspr2.3 \ |
---|
441 | sswap.f.3 sswap.3 ssymm.f.3 ssymm.3 ssymv.f.3 ssymv.3 ssyr.f.3 ssyr.3 ssyr2.f.3 ssyr2.3 \ |
---|
442 | ssyr2k.f.3 ssyr2k.3 ssyrk.f.3 ssyrk.3 stbmv.f.3 stbmv.3 stbsv.f.3 stbsv.3 stpmv.f.3 stpmv.3 \ |
---|
443 | stpsv.f.3 stpsv.3 strmm.f.3 strmm.3 strmv.f.3 strmv.3 strsm.f.3 strsm.3 strsv.f.3 strsv.3 \ |
---|
444 | xerbla.3 xerbla_array.3 zaxpy.f.3 zaxpy.3 zcopy.f.3 zcopy.3 \ |
---|
445 | zdotc.f.3 zdotc.3 zdotu.f.3 zdotu.3 zdrot.f.3 zdrot.3 zdscal.f.3 zdscal.3 zgbmv.f.3 zgbmv.3 \ |
---|
446 | zgemm.f.3 zgemm.3 zgemv.f.3 zgemv.3 zgerc.f.3 zgerc.3 zgeru.f.3 zgeru.3 zhbmv.f.3 zhbmv.3 \ |
---|
447 | zhemm.f.3 zhemm.3 zhemv.f.3 zhemv.3 zher.f.3 zher.3 zher2.f.3 zher2.3 zher2k.f.3 zher2k.3 \ |
---|
448 | zherk.f.3 zherk.3 zhpmv.f.3 zhpmv.3 zhpr.f.3 zhpr.3 zhpr2.f.3 zhpr2.3 zrotg.f.3 zrotg.3 \ |
---|
449 | zscal.f.3 zscal.3 zswap.f.3 zswap.3 zsymm.f.3 zsymm.3 zsyr2k.f.3 zsyr2k.3 zsyrk.f.3 zsyrk.3 \ |
---|
450 | ztbmv.f.3 ztbmv.3 ztbsv.f.3 ztbsv.3 ztpmv.f.3 ztpmv.3 ztpsv.f.3 ztpsv.3 ztrmm.f.3 ztrmm.3 \ |
---|
451 | ztrmv.f.3 ztrmv.3 ztrsm.f.3 ztrsm.3 ztrsv.f.3 ztrsv.3 ../../blas/man/man3 |
---|
452 | cd ../.. |
---|
453 | popd |
---|
454 | |
---|
455 | find manpages/blas/man/man3 -type f -printf "%{_mandir}/man3/%f*\n" > blasmans |
---|
456 | find manpages/man/man3 -type f -printf "%{_mandir}/man3/%f*\n" > lapackmans |
---|
457 | |
---|
458 | cp -f manpages/blas/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 |
---|
459 | cp -f manpages/man/man3/* $RPM_BUILD_ROOT%{_mandir}/man3 |
---|
460 | |
---|
461 | # Cblas headers |
---|
462 | mkdir -p %{buildroot}%{_includedir}/cblas/ |
---|
463 | cp -a CBLAS/include/*.h %{buildroot}%{_includedir}/cblas/ |
---|
464 | |
---|
465 | # Lapacke headers |
---|
466 | mkdir -p $RPM_BUILD_ROOT%{_includedir}/lapacke/ |
---|
467 | cp -a LAPACKE/include/*.h $RPM_BUILD_ROOT%{_includedir}/lapacke/ |
---|
468 | |
---|
469 | pushd $RPM_BUILD_ROOT%{_libdir}/blas |
---|
470 | ln -sf libblas.so.%{version} libblas.so |
---|
471 | ln -sf libblas.so.%{version} libblas.so.%{shortver} |
---|
472 | ln -sf libblas.so.%{version} libblas.so.%{mediumver} |
---|
473 | ln -sf libcblas.so.%{version} libcblas.so |
---|
474 | ln -sf libcblas.so.%{version} libcblas.so.%{shortver} |
---|
475 | ln -sf libcblas.so.%{version} libcblas.so.%{mediumver} |
---|
476 | %if %build64 |
---|
477 | ln -sf libblas64_.so.%{version} libblas64_.so |
---|
478 | ln -sf libblas64_.so.%{version} libblas64_.so.%{shortver} |
---|
479 | ln -sf libblas64_.so.%{version} libblas64_.so.%{mediumver} |
---|
480 | ln -sf libcblas64_.so.%{version} libcblas64_.so |
---|
481 | ln -sf libcblas64_.so.%{version} libcblas64_.so.%{shortver} |
---|
482 | ln -sf libcblas64_.so.%{version} libcblas64_.so.%{mediumver} |
---|
483 | %endif |
---|
484 | popd |
---|
485 | |
---|
486 | pushd $RPM_BUILD_ROOT%{_libdir}/lapack |
---|
487 | ln -sf liblapack.so.%{version} liblapack.so |
---|
488 | ln -sf liblapack.so.%{version} liblapack.so.%{shortver} |
---|
489 | ln -sf liblapack.so.%{version} liblapack.so.%{mediumver} |
---|
490 | ln -sf liblapacke.so.%{version} liblapacke.so |
---|
491 | ln -sf liblapacke.so.%{version} liblapacke.so.%{shortver} |
---|
492 | ln -sf liblapacke.so.%{version} liblapacke.so.%{mediumver} |
---|
493 | %if %build64 |
---|
494 | ln -sf liblapack64_.so.%{version} liblapack64_.so |
---|
495 | ln -sf liblapack64_.so.%{version} liblapack64_.so.%{shortver} |
---|
496 | ln -sf liblapack64_.so.%{version} liblapack64_.so.%{mediumver} |
---|
497 | %endif |
---|
498 | popd |
---|
499 | |
---|
500 | # pkgconfig |
---|
501 | mkdir -p %{buildroot}%{_libdir}/pkgconfig/ |
---|
502 | |
---|
503 | # blas |
---|
504 | cp -a BLAS/blas.pc.in %{buildroot}%{_libdir}/pkgconfig/blas-netlib.pc |
---|
505 | sed -i 's|@CMAKE_INSTALL_FULL_LIBDIR@|%{_libdir}/blas|g' \ |
---|
506 | %{buildroot}%{_libdir}/pkgconfig/blas-netlib.pc |
---|
507 | sed -i 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|%{_includedir}|g' \ |
---|
508 | %{buildroot}%{_libdir}/pkgconfig/blas-netlib.pc |
---|
509 | sed -i 's|@LAPACK_VERSION@|%{version}|g' \ |
---|
510 | %{buildroot}%{_libdir}/pkgconfig/blas-netlib.pc |
---|
511 | |
---|
512 | %if %build64 |
---|
513 | cp -a %{buildroot}%{_libdir}/pkgconfig/blas-netlib.pc \ |
---|
514 | %{buildroot}%{_libdir}/pkgconfig/blas64-netlib.pc |
---|
515 | sed -i 's|-lblas|-lblas64_|g' \ |
---|
516 | %{buildroot}%{_libdir}/pkgconfig/blas64-netlib.pc |
---|
517 | %endif |
---|
518 | |
---|
519 | # cblas |
---|
520 | cp -a CBLAS/cblas.pc.in %{buildroot}%{_libdir}/pkgconfig/cblas-netlib.pc |
---|
521 | sed -i 's|@CMAKE_INSTALL_FULL_LIBDIR@|%{_libdir}/blas|g' \ |
---|
522 | %{buildroot}%{_libdir}/pkgconfig/cblas-netlib.pc |
---|
523 | sed -i 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|%{_includedir}/cblas|g' \ |
---|
524 | %{buildroot}%{_libdir}/pkgconfig/cblas-netlib.pc |
---|
525 | sed -i 's|@LAPACK_VERSION@|%{version}|g' \ |
---|
526 | %{buildroot}%{_libdir}/pkgconfig/cblas-netlib.pc |
---|
527 | |
---|
528 | %if %build64 |
---|
529 | cp -a %{buildroot}%{_libdir}/pkgconfig/cblas-netlib.pc \ |
---|
530 | %{buildroot}%{_libdir}/pkgconfig/cblas64-netlib.pc |
---|
531 | sed -i 's|-lcblas|-lcblas64_|g' \ |
---|
532 | %{buildroot}%{_libdir}/pkgconfig/cblas64-netlib.pc |
---|
533 | sed -i 's|Requires.private: blas|Requires.private: blas64|g' \ |
---|
534 | %{buildroot}%{_libdir}/pkgconfig/cblas64-netlib.pc |
---|
535 | %endif |
---|
536 | |
---|
537 | # lapack |
---|
538 | cp -a lapack.pc.in %{buildroot}%{_libdir}/pkgconfig/lapack-netlib.pc |
---|
539 | sed -i 's|@CMAKE_INSTALL_FULL_LIBDIR@|%{_libdir}/lapack|g' \ |
---|
540 | %{buildroot}%{_libdir}/pkgconfig/lapack-netlib.pc |
---|
541 | sed -i 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|%{_includedir}|g' \ |
---|
542 | %{buildroot}%{_libdir}/pkgconfig/lapack-netlib.pc |
---|
543 | sed -i 's|@LAPACK_VERSION@|%{version}|g' \ |
---|
544 | %{buildroot}%{_libdir}/pkgconfig/lapack-netlib.pc |
---|
545 | |
---|
546 | %if %build64 |
---|
547 | cp -a %{buildroot}%{_libdir}/pkgconfig/lapack-netlib.pc \ |
---|
548 | %{buildroot}%{_libdir}/pkgconfig/lapack64-netlib.pc |
---|
549 | sed -i 's|-llapack|-llapack64_|g' \ |
---|
550 | %{buildroot}%{_libdir}/pkgconfig/lapack64-netlib.pc |
---|
551 | sed -i 's|blas|blas64|g' \ |
---|
552 | %{buildroot}%{_libdir}/pkgconfig/lapack64-netlib.pc |
---|
553 | %endif |
---|
554 | |
---|
555 | # lapacke |
---|
556 | cp -a LAPACKE/lapacke.pc.in %{buildroot}%{_libdir}/pkgconfig/lapacke-netlib.pc |
---|
557 | sed -i 's|@CMAKE_INSTALL_FULL_LIBDIR@|%{_libdir}/lapack|g' \ |
---|
558 | %{buildroot}%{_libdir}/pkgconfig/lapacke-netlib.pc |
---|
559 | sed -i 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|%{_includedir}/lapacke|g' \ |
---|
560 | %{buildroot}%{_libdir}/pkgconfig/lapacke-netlib.pc |
---|
561 | sed -i 's|@LAPACK_VERSION@|%{version}|g' \ |
---|
562 | %{buildroot}%{_libdir}/pkgconfig/lapacke-netlib.pc |
---|
563 | |
---|
564 | |
---|
565 | %clean |
---|
566 | rm -fr $RPM_BUILD_ROOT |
---|
567 | |
---|
568 | |
---|
569 | %post |
---|
570 | update-alternatives \ |
---|
571 | --install %{_libdir}/liblapack.so.3 liblapack.so.3 \ |
---|
572 | %{_libdir}/lapack/liblapack.so.3 10 \ |
---|
573 | --slave %{_libdir}/liblapacke.so.3 liblapacke.so.3 \ |
---|
574 | %{_libdir}/lapack/liblapacke.so.3 |
---|
575 | /sbin/ldconfig |
---|
576 | |
---|
577 | %preun |
---|
578 | if [ "$1" = "0" ] |
---|
579 | then |
---|
580 | update-alternatives \ |
---|
581 | --remove liblapack.so.3 %{_libdir}/lapack/liblapack.so.3 |
---|
582 | fi |
---|
583 | |
---|
584 | %postun -p /sbin/ldconfig |
---|
585 | |
---|
586 | %triggerpostun -- lapack < 3.7.1-2%{?_dist_release} |
---|
587 | update-alternatives \ |
---|
588 | --install %{_libdir}/liblapack.so.3 liblapack.so.3 \ |
---|
589 | %{_libdir}/lapack/liblapack.so.3 10 \ |
---|
590 | --slave %{_libdir}/liblapacke.so.3 liblapacke.so.3 \ |
---|
591 | %{_libdir}/lapack/liblapacke.so.3 |
---|
592 | /sbin/ldconfig |
---|
593 | |
---|
594 | |
---|
595 | %post devel |
---|
596 | update-alternatives \ |
---|
597 | --install %{_libdir}/liblapack.so liblapack.so \ |
---|
598 | %{_libdir}/lapack/liblapack.so 10 \ |
---|
599 | --slave %{_libdir}/liblapacke.so liblapacke.so \ |
---|
600 | %{_libdir}/lapack/liblapacke.so \ |
---|
601 | --slave %{_libdir}/pkgconfig/lapack.pc lapack.pc \ |
---|
602 | %{_libdir}/pkgconfig/lapack-netlib.pc \ |
---|
603 | --slave %{_libdir}/pkgconfig/lapacke.pc lapacke.pc \ |
---|
604 | %{_libdir}/pkgconfig/lapacke-netlib.pc |
---|
605 | /sbin/ldconfig |
---|
606 | |
---|
607 | %preun devel |
---|
608 | if [ "$1" = "0" ] |
---|
609 | then |
---|
610 | update-alternatives \ |
---|
611 | --remove liblapack.so %{_libdir}/lapack/liblapack.so |
---|
612 | fi |
---|
613 | |
---|
614 | %postun devel -p /sbin/ldconfig |
---|
615 | |
---|
616 | %triggerpostun devel -- lapack-devel < 3.7.1-2%{?_dist_release} |
---|
617 | update-alternatives \ |
---|
618 | --install %{_libdir}/liblapack.so liblapack.so \ |
---|
619 | %{_libdir}/lapack/liblapack.so 10 \ |
---|
620 | --slave %{_libdir}/liblapacke.so liblapacke.so \ |
---|
621 | %{_libdir}/lapack/liblapacke.so \ |
---|
622 | --slave %{_libdir}/pkgconfig/lapack.pc lapack.pc \ |
---|
623 | %{_libdir}/pkgconfig/lapack-netlib.pc \ |
---|
624 | --slave %{_libdir}/pkgconfig/lapacke.pc lapacke.pc \ |
---|
625 | %{_libdir}/pkgconfig/lapacke-netlib.pc |
---|
626 | /sbin/ldconfig |
---|
627 | |
---|
628 | |
---|
629 | %post static |
---|
630 | update-alternatives \ |
---|
631 | --install %{_libdir}/liblapack.a liblapack.a \ |
---|
632 | %{_libdir}/lapack/liblapack.a 10 \ |
---|
633 | --slave %{_libdir}/liblapacke.a liblapacke.a \ |
---|
634 | %{_libdir}/lapack/liblapacke.a |
---|
635 | |
---|
636 | %preun static |
---|
637 | if [ "$1" = "0" ] |
---|
638 | then |
---|
639 | update-alternatives \ |
---|
640 | --remove liblapack.a %{_libdir}/lapack/liblapack.a |
---|
641 | fi |
---|
642 | |
---|
643 | %triggerpostun static -- lapack-static < 3.7.1-2%{?_dist_release} |
---|
644 | update-alternatives \ |
---|
645 | --install %{_libdir}/liblapack.a liblapack.a \ |
---|
646 | %{_libdir}/lapack/liblapack.a 10 \ |
---|
647 | --slave %{_libdir}/liblapacke.a liblapacke.a \ |
---|
648 | %{_libdir}/lapack/liblapacke.a |
---|
649 | |
---|
650 | |
---|
651 | %post -n blas |
---|
652 | update-alternatives \ |
---|
653 | --install %{_libdir}/libblas.so.3 libblas.so.3 \ |
---|
654 | %{_libdir}/blas/libblas.so.3 10 \ |
---|
655 | --slave %{_libdir}/libcblas.so.3 libcblas.so.3 \ |
---|
656 | %{_libdir}/blas/libcblas.so.3 |
---|
657 | /sbin/ldconfig |
---|
658 | |
---|
659 | %preun -n blas |
---|
660 | if [ "$1" = "0" ] |
---|
661 | then |
---|
662 | update-alternatives \ |
---|
663 | --remove libblas.so.3 %{_libdir}/blas/libblas.so.3 |
---|
664 | fi |
---|
665 | |
---|
666 | %postun -n blas -p /sbin/ldconfig |
---|
667 | |
---|
668 | %triggerpostun -n blas -- blas < 3.7.1-2%{?_dist_release} |
---|
669 | update-alternatives \ |
---|
670 | --install %{_libdir}/libblas.so.3 libblas.so.3 \ |
---|
671 | %{_libdir}/blas/libblas.so.3 10 \ |
---|
672 | --slave %{_libdir}/libcblas.so.3 libcblas.so.3 \ |
---|
673 | %{_libdir}/blas/libcblas.so.3 |
---|
674 | /sbin/ldconfig |
---|
675 | |
---|
676 | |
---|
677 | %post -n blas-devel |
---|
678 | update-alternatives \ |
---|
679 | --install %{_libdir}/libblas.so libblas.so \ |
---|
680 | %{_libdir}/blas/libblas.so 10 \ |
---|
681 | --slave %{_libdir}/libcblas.so libcblas.so \ |
---|
682 | %{_libdir}/blas/libcblas.so \ |
---|
683 | --slave %{_libdir}/pkgconfig/blas.pc blas.pc \ |
---|
684 | %{_libdir}/pkgconfig/blas-netlib.pc \ |
---|
685 | --slave %{_libdir}/pkgconfig/cblas.pc cblas.pc \ |
---|
686 | %{_libdir}/pkgconfig/cblas-netlib.pc |
---|
687 | /sbin/ldconfig |
---|
688 | |
---|
689 | %preun -n blas-devel |
---|
690 | if [ "$1" = "0" ] |
---|
691 | then |
---|
692 | update-alternatives \ |
---|
693 | --remove libblas.so %{_libdir}/blas/libblas.so |
---|
694 | fi |
---|
695 | |
---|
696 | %postun -n blas-devel -p /sbin/ldconfig |
---|
697 | |
---|
698 | %triggerpostun -n blas-devel -- blas-devel < 3.7.1-2%{?_dist_release} |
---|
699 | update-alternatives \ |
---|
700 | --install %{_libdir}/libblas.so libblas.so \ |
---|
701 | %{_libdir}/blas/libblas.so 10 \ |
---|
702 | --slave %{_libdir}/libcblas.so libcblas.so \ |
---|
703 | %{_libdir}/blas/libcblas.so \ |
---|
704 | --slave %{_libdir}/pkgconfig/blas.pc blas.pc \ |
---|
705 | %{_libdir}/pkgconfig/blas-netlib.pc \ |
---|
706 | --slave %{_libdir}/pkgconfig/cblas.pc cblas.pc \ |
---|
707 | %{_libdir}/pkgconfig/cblas-netlib.pc |
---|
708 | /sbin/ldconfig |
---|
709 | |
---|
710 | %post -n blas-static |
---|
711 | update-alternatives \ |
---|
712 | --install %{_libdir}/libblas.a libblas.a \ |
---|
713 | %{_libdir}/blas/libblas.a 10 \ |
---|
714 | --slave %{_libdir}/libcblas.a libcblas.a \ |
---|
715 | %{_libdir}/blas/libcblas.a |
---|
716 | |
---|
717 | %preun -n blas-static |
---|
718 | if [ "$1" = "0" ] |
---|
719 | then |
---|
720 | update-alternatives \ |
---|
721 | --remove libblas.a %{_libdir}/blas/libblas.a |
---|
722 | fi |
---|
723 | |
---|
724 | %triggerpostun -n blas-static -- blas-static < 3.7.1-2%{?_dist_release} |
---|
725 | update-alternatives \ |
---|
726 | --install %{_libdir}/libblas.a libblas.a \ |
---|
727 | %{_libdir}/blas/libblas.a 10 \ |
---|
728 | --slave %{_libdir}/libcblas.a libcblas.a \ |
---|
729 | %{_libdir}/blas/libcblas.a |
---|
730 | |
---|
731 | |
---|
732 | %if %build64 |
---|
733 | %post -n lapack64 |
---|
734 | update-alternatives \ |
---|
735 | --install %{_libdir}/liblapack64_.so.3 liblapack64_.so.3 \ |
---|
736 | %{_libdir}/lapack/liblapack64_.so.3 10 |
---|
737 | /sbin/ldconfig |
---|
738 | |
---|
739 | %preun -n lapack64 |
---|
740 | if [ "$1" = "0" ] |
---|
741 | then |
---|
742 | update-alternatives \ |
---|
743 | --remove liblapack64_.so.3 %{_libdir}/lapack/liblapack64_.so.3 |
---|
744 | fi |
---|
745 | |
---|
746 | %postun -n lapack64 -p /sbin/ldconfig |
---|
747 | |
---|
748 | |
---|
749 | %post -n lapack64-devel |
---|
750 | update-alternatives \ |
---|
751 | --install %{_libdir}/liblapack64_.so liblapack64_.so \ |
---|
752 | %{_libdir}/lapack/liblapack64_.so 10 \ |
---|
753 | --slave %{_libdir}/pkgconfig/lapack64.pc lapack64.pc \ |
---|
754 | %{_libdir}/pkgconfig/lapack64-netlib.pc |
---|
755 | /sbin/ldconfig |
---|
756 | |
---|
757 | %preun -n lapack64-devel |
---|
758 | if [ "$1" = "0" ] |
---|
759 | then |
---|
760 | update-alternatives \ |
---|
761 | --remove liblapack64_.so %{_libdir}/lapack/liblapack64_.so |
---|
762 | fi |
---|
763 | |
---|
764 | %postun -n lapack64-devel -p /sbin/ldconfig |
---|
765 | |
---|
766 | %post -n lapack64-static |
---|
767 | update-alternatives \ |
---|
768 | --install %{_libdir}/liblapack64_.a liblapack64_.a \ |
---|
769 | %{_libdir}/lapack/liblapack64_.a 10 |
---|
770 | |
---|
771 | %preun -n lapack64-static |
---|
772 | if [ "$1" = "0" ] |
---|
773 | then |
---|
774 | update-alternatives \ |
---|
775 | --remove liblapack64_.a %{_libdir}/lapack/liblapack64_.a |
---|
776 | fi |
---|
777 | |
---|
778 | |
---|
779 | %post -n blas64 |
---|
780 | update-alternatives \ |
---|
781 | --install %{_libdir}/libblas64_.so.3 libblas64_.so.3 \ |
---|
782 | %{_libdir}/blas/libblas64_.so.3 10 \ |
---|
783 | --slave %{_libdir}/libcblas64_.so.3 libcblas64_.so.3 \ |
---|
784 | %{_libdir}/blas/libcblas64_.so.3 |
---|
785 | /sbin/ldconfig |
---|
786 | |
---|
787 | %preun -n blas64 |
---|
788 | if [ "$1" = "0" ] |
---|
789 | then |
---|
790 | update-alternatives \ |
---|
791 | --remove libblas64_.so.3 %{_libdir}/blas/libblas64_.so.3 |
---|
792 | fi |
---|
793 | |
---|
794 | %postun -n blas64 -p /sbin/ldconfig |
---|
795 | |
---|
796 | |
---|
797 | %post -n blas64-devel |
---|
798 | update-alternatives \ |
---|
799 | --install %{_libdir}/libblas64_.so libblas64_.so \ |
---|
800 | %{_libdir}/blas/libblas64_.so 10 \ |
---|
801 | --slave %{_libdir}/libcblas64_.so libcblas64_.so \ |
---|
802 | %{_libdir}/blas/libcblas64_.so \ |
---|
803 | --slave %{_libdir}/pkgconfig/blas64.pc blas64.pc \ |
---|
804 | %{_libdir}/pkgconfig/blas64-netlib.pc \ |
---|
805 | --slave %{_libdir}/pkgconfig/cblas64.pc cblas64.pc \ |
---|
806 | %{_libdir}/pkgconfig/cblas64-netlib.pc |
---|
807 | /sbin/ldconfig |
---|
808 | |
---|
809 | %preun -n blas64-devel |
---|
810 | if [ "$1" = "0" ] |
---|
811 | then |
---|
812 | update-alternatives \ |
---|
813 | --remove libblas64_.so %{_libdir}/blas/libblas64_.so |
---|
814 | fi |
---|
815 | |
---|
816 | %postun -n blas64-devel -p /sbin/ldconfig |
---|
817 | |
---|
818 | %post -n blas64-static |
---|
819 | update-alternatives \ |
---|
820 | --install %{_libdir}/libblas64_.a libblas64_.a \ |
---|
821 | %{_libdir}/blas/libblas64_.a 10 \ |
---|
822 | --slave %{_libdir}/libcblas64_.a libcblas64_.a \ |
---|
823 | %{_libdir}/blas/libcblas64_.a |
---|
824 | |
---|
825 | %preun -n blas64-static |
---|
826 | if [ "$1" = "0" ] |
---|
827 | then |
---|
828 | update-alternatives \ |
---|
829 | --remove libblas64_.a %{_libdir}/blas/libblas64_.a |
---|
830 | fi |
---|
831 | %endif |
---|
832 | |
---|
833 | |
---|
834 | %files -f lapackmans |
---|
835 | %defattr(-,root,root) |
---|
836 | %doc README.md LICENSE lapackqref.ps |
---|
837 | %dir %{_mandir}/man3/ |
---|
838 | %dir %{_libdir}/lapack |
---|
839 | %{_libdir}/lapack/liblapack.so.* |
---|
840 | %{_libdir}/lapack/liblapacke.so.* |
---|
841 | |
---|
842 | %files devel |
---|
843 | %defattr(-,root,root,-) |
---|
844 | %{_includedir}/lapacke/ |
---|
845 | %{_libdir}/lapack/liblapack.so |
---|
846 | %{_libdir}/lapack/liblapacke.so |
---|
847 | %{_libdir}/pkgconfig/lapack-netlib.pc |
---|
848 | %{_libdir}/pkgconfig/lapacke-netlib.pc |
---|
849 | |
---|
850 | %files static |
---|
851 | %defattr(-,root,root,-) |
---|
852 | %{_libdir}/lapack/liblapack*.a |
---|
853 | |
---|
854 | %files -n blas -f blasmans |
---|
855 | %defattr(-,root,root) |
---|
856 | %doc blasqr.ps LICENSE |
---|
857 | %dir %{_mandir}/man3/ |
---|
858 | %dir %{_libdir}/blas |
---|
859 | %{_libdir}/blas/libblas.so.* |
---|
860 | %{_libdir}/blas/libcblas.so.* |
---|
861 | |
---|
862 | %files -n blas-devel |
---|
863 | %defattr(-,root,root,-) |
---|
864 | %{_includedir}/cblas/ |
---|
865 | %{_libdir}/blas/libblas.so |
---|
866 | %{_libdir}/blas/libcblas.so |
---|
867 | %{_libdir}/pkgconfig/blas-netlib.pc |
---|
868 | %{_libdir}/pkgconfig/cblas-netlib.pc |
---|
869 | |
---|
870 | %files -n blas-static |
---|
871 | %defattr(-,root,root,-) |
---|
872 | %{_libdir}/blas/libblas.a |
---|
873 | %{_libdir}/blas/libcblas.a |
---|
874 | |
---|
875 | %if %build64 |
---|
876 | %files -n blas64 |
---|
877 | %doc LICENSE |
---|
878 | %dir %{_libdir}/blas |
---|
879 | %{_libdir}/blas/libblas64_.so.* |
---|
880 | %{_libdir}/blas/libcblas64_.so.* |
---|
881 | |
---|
882 | %files -n blas64-devel |
---|
883 | %{_libdir}/blas/libblas64_.so |
---|
884 | %{_libdir}/blas/libcblas64_.so |
---|
885 | %{_libdir}/pkgconfig/blas64-netlib.pc |
---|
886 | %{_libdir}/pkgconfig/cblas64-netlib.pc |
---|
887 | |
---|
888 | %files -n blas64-static |
---|
889 | %{_libdir}/blas/libblas64_.a |
---|
890 | %{_libdir}/blas/libcblas64_.a |
---|
891 | |
---|
892 | %files -n lapack64 |
---|
893 | %doc README.md LICENSE |
---|
894 | %dir %{_libdir}/lapack |
---|
895 | %{_libdir}/lapack/liblapack64_.so.* |
---|
896 | |
---|
897 | %files -n lapack64-devel |
---|
898 | %{_libdir}/lapack/liblapack64_.so |
---|
899 | %{_libdir}/pkgconfig/lapack64-netlib.pc |
---|
900 | |
---|
901 | %files -n lapack64-static |
---|
902 | %{_libdir}/lapack/liblapack64_.a |
---|
903 | %{_libdir}/lapack/liblapack64_pic.a |
---|
904 | %endif |
---|
905 | |
---|
906 | |
---|
907 | %changelog |
---|
908 | * Fri Jan 25 2019 Toshiaki Ara <ara_t@384.jp> 3.7.1-4 |
---|
909 | - rebuild with gfortran-8.2.0 |
---|
910 | |
---|
911 | * Wed Jun 27 2018 Toshiaki Ara <ara_t@384.jp> 3.7.1-3 |
---|
912 | - Build versions of the 64-bit libraries with an additional suffix |
---|
913 | |
---|
914 | * Mon Jun 25 2018 Toshiaki Ara <ara_t@384.jp> 3.7.1-2 |
---|
915 | - build cblas |
---|
916 | - include pkgconfig files |
---|
917 | - adapt update-alternatives |
---|
918 | |
---|
919 | * Tue Jun 05 2018 Toshiaki Ara <ara_t@384.jp> 3.7.1-1 |
---|
920 | - updated to 3.7.1 |
---|
921 | - drop Patches 1 to 8 |
---|
922 | - update Source2 and 3 (Makefile.{blas,lapack}) and add Patches 11-13 |
---|
923 | from Fedora package |
---|
924 | |
---|
925 | * Tue Jan 27 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.5.0-1 |
---|
926 | - updated to 3.5.0 |
---|
927 | - moved lapack and blas to System Environment/Libraries Group |
---|
928 | |
---|
929 | * Thu Feb 23 2012 NAKAMURA Kenta <kenta@vinelinux.org> 3.4.0-1 |
---|
930 | - update to 3.4.0 |
---|
931 | - build and include lapacke |
---|
932 | |
---|
933 | * Sat Nov 26 2011 NAKAMURA Kenta <kenta@vinelinux.org> 3.3.1-1 |
---|
934 | - new upstream release |
---|
935 | - update package descriptions |
---|
936 | |
---|
937 | * Fri Feb 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.1-1 |
---|
938 | - new upstream release |
---|
939 | - built with new toolchain |
---|
940 | - added SOURCE1 |
---|
941 | |
---|
942 | * Wed Sep 24 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-2 |
---|
943 | - applied new versioning policy |
---|
944 | - spec in UTF-8 |
---|
945 | |
---|
946 | * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-1vl3 |
---|
947 | - rebuilt for VineSeed |
---|
948 | |
---|
949 | * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-1vl2 |
---|
950 | - rebuilt for VinePlus/4.0 |
---|
951 | - added Patch4, Source102 and Source103 for compiling in g77 |
---|
952 | - added BuildRequires: coreutils, findutils |
---|
953 | |
---|
954 | * Tue Aug 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.1.1-1vl1 |
---|
955 | - new upstream release based on Fedora packages |
---|
956 | * Wed Sep 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 3.0-30 |
---|
957 | - make -devel packages |
---|
958 | - make liblapack_pic.a package |
---|
959 | * Wed Aug 20 2003 Jeremy Katz <katzj@redhat.com> 3.0-22 |
---|
960 | - nuke -man subpackages (#97506) |
---|
961 | - rebuilt with gfortran |
---|
962 | |
---|
963 | * Fri Dec 26 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0-17vl3 |
---|
964 | - rebuild with new toolchains |
---|
965 | |
---|
966 | * Mon Oct 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.0-17vl2 |
---|
967 | - rebuild with new toolchains |
---|
968 | |
---|
969 | * Thu Jul 18 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.0-17vl1 |
---|
970 | - modified for Vine. |
---|
971 | |
---|
972 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
973 | - automated rebuild |
---|
974 | |
---|
975 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
976 | - automated rebuild |
---|
977 | |
---|
978 | * Wed May 1 2002 Trond Eivind Glomsr� <teg@redhat.com> 3.0-15 |
---|
979 | - Rebuild |
---|
980 | |
---|
981 | * Wed Feb 27 2002 Fuhito Suguri <bitwalk@jcom.home.ne.jp> 3.0-14bw |
---|
982 | - rebuild for RH7.2. |
---|
983 | |
---|
984 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
985 | - automated rebuild |
---|
986 | |
---|
987 | * Mon Aug 13 2001 Trond Eivind Glomsrod <teg@redhat.com> 3.0-12 |
---|
988 | - The man-pages for xerbla and lsame were in blas-man and lapack-man (#51605) |
---|
989 | |
---|
990 | * Fri Jun 8 2001 Trond Eivind Glomsrod <teg@redhat.com> |
---|
991 | - Reenable optimization for IA64 |
---|
992 | |
---|
993 | * Fri May 25 2001 Trond Eivind Glomsrod <teg@redhat.com> |
---|
994 | - Add all patches from the LAPACK site as of 2001-05-25 |
---|
995 | - Use this workaround for IA64 instead |
---|
996 | - Remove SPARC workaround |
---|
997 | - Don't exclude IA64 |
---|
998 | |
---|
999 | * Thu Dec 07 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
1000 | - rebuild for main distribution |
---|
1001 | |
---|
1002 | * Mon Nov 20 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
1003 | - add the LAPACK Quick Reference Guide to the docs |
---|
1004 | - add the BLAS Quick Reference Guide to the docs |
---|
1005 | |
---|
1006 | * Tue Aug 01 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
1007 | - fix lack of ldconfig in postuninstall script |
---|
1008 | |
---|
1009 | * Mon Jul 24 2000 Prospector <prospector@redhat.com> |
---|
1010 | - rebuilt |
---|
1011 | |
---|
1012 | * Mon Jul 10 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
1013 | - updated with the latest updates (new tarfile..) from netlib |
---|
1014 | |
---|
1015 | * Thu Jun 15 2000 Trond Eivind Glomsrod <teg@redhat.com> |
---|
1016 | - use %%{_mandir} |
---|
1017 | - added some flags to work around SPARC compiler bug |
---|
1018 | |
---|
1019 | * Wed Jan 19 2000 Tim Powers <timp@redhat.com> |
---|
1020 | - bzipped sources to conserve space |
---|
1021 | |
---|
1022 | * Tue Jan 4 2000 Jeff Johnson <jbj@redhat.com> |
---|
1023 | - build for PowerTools 6.2. |
---|
1024 | |
---|
1025 | * Sat Dec 25 1999 Joachim Frieben <jfrieben@hotmail.com> |
---|
1026 | - updated to version v3.0 + update as of Tue Nov 30 1999 |
---|
1027 | |
---|
1028 | * Sat Oct 23 1999 Joachim Frieben <jfrieben@hotmail.com> |
---|
1029 | - updated Red Hat makefiles to v3.0 |
---|
1030 | |
---|
1031 | * Mon Aug 2 1999 Tim Powers <timp@redhat.com> |
---|
1032 | - updated to v3.0 |
---|
1033 | - built for 6.1 |
---|
1034 | |
---|
1035 | * Mon Apr 12 1999 Michael Maher <mike@redhat.com> |
---|
1036 | - built package for 6.0 |
---|
1037 | |
---|
1038 | * Sat Oct 24 1998 Jeff Johnson <jbj@redhat.com> |
---|
1039 | - new description/summary text. |
---|
1040 | |
---|
1041 | * Fri Jul 17 1998 Jeff Johnson <jbj@redhat.com> |
---|
1042 | - repackage for powertools. |
---|
1043 | |
---|
1044 | * Sun Feb 15 1998 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
1045 | [lapack-2.0-9] |
---|
1046 | - No code updates, just built with a customized rpm - |
---|
1047 | this should make dependencies right. |
---|
1048 | |
---|
1049 | * Sat Feb 07 1998 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
1050 | [lapack-2.0-8] |
---|
1051 | - Total rewrite of the spec file |
---|
1052 | - Added my own makefiles - libs should build better, |
---|
1053 | static libs should work (and be faster than they |
---|
1054 | would be if they had worked earlier ;) |
---|
1055 | - No patch necessary anymore. |
---|
1056 | - Renamed lapack-blas and lapack-blas-man to |
---|
1057 | blas and blas-man. "Obsoletes:" tag added. |
---|
1058 | (oh - and as always: Dedicated to the girl I |
---|
1059 | love, Eline Skirnisdottir) |
---|
1060 | |
---|
1061 | * Sat Dec 06 1997 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
1062 | [lapack-2.0-7] |
---|
1063 | - added a dependency to glibc, so people don't try with libc5 |
---|
1064 | |
---|
1065 | * Thu Nov 20 1997 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
1066 | [lapack-2.0-6] |
---|
1067 | - removed etime.c |
---|
1068 | - compiled with egcs, and for glibc 2.0 |
---|
1069 | |
---|
1070 | * Sun Oct 12 1997 Trond Eivind Glomsrod <teg@pvv.ntnu.no> |
---|
1071 | [lapack-2.0-5] |
---|
1072 | - added a changelog |
---|
1073 | - cleaned up building of shared libs |
---|
1074 | - now uses a BuildRoot |
---|
1075 | - cleaned up the specfile |
---|