From 540af93208669cd995475e06e6394c8b57a729e4 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Wed, 14 Sep 2005 19:31:05 +0000 Subject: [PATCH] make -devel packages for lapack/blas, special _pic static lib for ATLAS --- lapack.spec | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/lapack.spec b/lapack.spec index 83e1803..3f0f7b5 100644 --- a/lapack.spec +++ b/lapack.spec @@ -1,7 +1,7 @@ Summary: The LAPACK libraries for numerical linear algebra. Name: lapack Version: 3.0 -Release: 29 +Release: 30%{?dist} License: Freely distributable Group: Development/Libraries URL: http://www.netlib.org/lapack/ @@ -30,6 +30,14 @@ not general sparse matrices. Similar functionality is provided for real and complex matrices in both single and double precision. LAPACK is coded in Fortran77 and built with gcc. +%package devel +Summary: LAPACK development libraries +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +LAPACK development libraries for applications that link statically. + %package -n blas Summary: The BLAS (Basic Linear Algebra Subprograms) library. Group: Development/Libraries @@ -40,6 +48,14 @@ BLAS (Basic Linear Algebra Subprograms) is a standard library which provides a number of basic algorithms for numerical algebra. Man pages for blas are available in the blas-man package. +%package -n blas-devel +Summary: LAPACK development libraries +Group: Development/Libraries +Requires: blas = %{version}-%{release} + +%description blas-devel +BLAS development libraries for applications that link statically. + %prep %setup -q -n LAPACK %setup -q -D -T -a 1 -n LAPACK @@ -75,6 +91,11 @@ make clean FFLAGS="$RPM_OPT_SIZE_FLAGS -fPIC" make dlamch.o slamch.o dgeev.o FFLAGS="$RPM_OPT_FLAGS -fPIC" make shared cp liblapack.so.3.0.3 .. +make clean +FFLAGS="$RPM_OPT_SIZE_FLAGS -fPIC" make dlamch.o slamch.o dgeev.o +FFLAGS="$RPM_OPT_FLAGS -fPIC" make static +cp liblapack.a ../liblapack_pic.a + cd .. cp %{SOURCE4} lapackqref.ps cp %{SOURCE5} blasqr.ps @@ -120,14 +141,29 @@ rm -fr ${RPM_BUILD_ROOT} %files -f lapackmans %defattr(-,root,root) %doc README lapackqref.ps -%{_libdir}/liblapack.* +%{_libdir}/liblapack.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/liblapack.so +%{_libdir}/liblapack*.a %files -n blas -f blasmans %defattr(-,root,root) %doc blasqr.ps -%{_libdir}/libblas.* +%{_libdir}/libblas.so.* + +%files -n blas-devel +%defattr(-,root,root,-) +%{_libdir}/libblas.so +%{_libdir}/libblas*.a %changelog +* Wed Sep 14 2005 Tom "spot" Callaway 3.0-30 +- make -devel packages +- make liblapack_pic.a package +- use dist tag + * Thu Apr 14 2005 Tom "spot" Callaway 3.0-29 - package moves to Fedora Extras, gcc4