|
@@ -1,6 +1,9 @@
|
|
|
|
+%global shortver 3
|
|
|
|
+%global mediumver %{shortver}.3
|
|
|
|
+
|
|
Summary: The LAPACK libraries for numerical linear algebra.
|
|
Summary: The LAPACK libraries for numerical linear algebra.
|
|
Name: lapack
|
|
Name: lapack
|
|
-Version: 3.2.1
|
|
+Version: %{mediumver}.1
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: Freely distributable
|
|
License: Freely distributable
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
@@ -11,26 +14,16 @@ Source2: Makefile.blas
|
|
Source3: Makefile.lapack
|
|
Source3: Makefile.lapack
|
|
Source4: http://www.netlib.org/lapack/lapackqref.ps
|
|
Source4: http://www.netlib.org/lapack/lapackqref.ps
|
|
Source5: http://www.netlib.org/blas/blasqr.ps
|
|
Source5: http://www.netlib.org/blas/blasqr.ps
|
|
-# for g77
|
|
|
|
-Source102: Makefile.blas.g77
|
|
|
|
-Source103: Makefile.lapack.g77
|
|
|
|
-
|
|
|
|
Patch3: lapack-3.1.1-make.inc.patch
|
|
Patch3: lapack-3.1.1-make.inc.patch
|
|
-# for g77
|
|
|
|
-Patch4: lapack-3.1.1-make.inc.g77.patch
|
|
|
|
-
|
|
|
|
Obsoletes: lapack-man
|
|
Obsoletes: lapack-man
|
|
-%if %{?_dist_release} != "vl4"
|
|
|
|
BuildRequires: gcc-gfortran
|
|
BuildRequires: gcc-gfortran
|
|
-%else
|
|
|
|
-BuildRequires: gcc-g77
|
|
|
|
-%endif
|
|
|
|
BuildRequires: coreutils findutils
|
|
BuildRequires: coreutils findutils
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
+Packager: inagaki, kenta
|
|
|
|
|
|
%description
|
|
%description
|
|
LAPACK (Linear Algebra PACKage) is a standard library for numerical
|
|
LAPACK (Linear Algebra PACKage) is a standard library for numerical
|
|
@@ -62,7 +55,7 @@ Requires: %{name} = %{version}-%{release}
|
|
Requires: blas-devel = %{version}-%{release}
|
|
Requires: blas-devel = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
-LAPACK development libraries for applications that link statically.
|
|
+LAPACK development libraries (shared).
|
|
|
|
|
|
%package static
|
|
%package static
|
|
Summary: LAPACK static libraries
|
|
Summary: LAPACK static libraries
|
|
@@ -82,25 +75,20 @@ provides a number of basic algorithms for numerical algebra. Man
|
|
pages for blas are available in the blas-man package.
|
|
pages for blas are available in the blas-man package.
|
|
|
|
|
|
%description -n blas -l ja
|
|
%description -n blas -l ja
|
|
-BLAS(Basic Linear Algebra Subprograms)は数値代数計算の標準ライブラリです。BLASでは、線形代数計算における多くの基本アルゴリズムを利用できます。Blasの計算は高速で十分テストされているFORTRAN 77のプログラムで、gccでビルドされています。Blasのマニュアルページはblas-manパッケージにあります。
|
|
+BLAS(Basic Linear Algebra Subprograms)は数値代数計算の標準ライブラリです。BLASでは、線形代数計算における多くの基本アルゴリズムを利用できます。Blasの計算は高速で十分テストされているFORTRAN 77のプログラムで、gccでビルドされています。
|
|
|
|
|
|
%description -n blas
|
|
%description -n blas
|
|
BLAS (Basic Linear Algebra Subprograms) is a standard library which
|
|
BLAS (Basic Linear Algebra Subprograms) is a standard library which
|
|
-provides a number of basic algorithms for numerical algebra. Man
|
|
+provides a number of basic algorithms for numerical algebra.
|
|
-pages for blas are available in the blas-man package.
|
|
|
|
|
|
|
|
%package -n blas-devel
|
|
%package -n blas-devel
|
|
Summary: LAPACK development libraries
|
|
Summary: LAPACK development libraries
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: blas = %{version}-%{release}
|
|
Requires: blas = %{version}-%{release}
|
|
-%if %{?_dist_release} != "vl4"
|
|
|
|
Requires: gcc-gfortran
|
|
Requires: gcc-gfortran
|
|
-%else
|
|
|
|
-Requires: gcc-g77
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%description -n blas-devel
|
|
%description -n blas-devel
|
|
-BLAS development libraries for applications that link statically.
|
|
+BLAS development libraries (shared).
|
|
|
|
|
|
%package -n blas-static
|
|
%package -n blas-static
|
|
Summary: BLAS static libraries
|
|
Summary: BLAS static libraries
|
|
@@ -109,59 +97,28 @@ Group: Development/Libraries
|
|
%description -n blas-static
|
|
%description -n blas-static
|
|
BLAS static libraries.
|
|
BLAS static libraries.
|
|
|
|
|
|
-#package -n blas-man
|
|
|
|
-#Summary: Man pages for BLAS (Basic Linear Algebra Subprograms) routines.
|
|
|
|
-#Group: Applications/Documentation
|
|
|
|
-#Obsoletes: lapack-blas-man
|
|
|
|
-
|
|
|
|
-#description -n blas-man
|
|
|
|
-#The blas-man package contains documentation for BLAS (Basic Linear
|
|
|
|
-#Algebra Subprograms) routines in the form of man pages.
|
|
|
|
-
|
|
|
|
-#description -n blas-man -l ja
|
|
|
|
-#blas-manパッケージは、man ページ形式のBLAS (Basic Linear Algebra Subprograms)ルーチンのマニュアルです。
|
|
|
|
-
|
|
|
|
-#package man
|
|
|
|
-#Summary: Documentation for the LAPACK numerical linear algebra libraries.
|
|
|
|
-#Group: Applications/Documentation
|
|
|
|
-
|
|
|
|
-#description man
|
|
|
|
-#Documentation, in the form of man pages, for the LAPACK numerical
|
|
|
|
-#linear algebra libraries.
|
|
|
|
-
|
|
|
|
-#description man -l ja
|
|
|
|
-#Manページ形式の線型代数用数値計算ライブラリLAPACKのマニュアルです。
|
|
|
|
-
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%setup -q -D -T -a1
|
|
%setup -q -D -T -a1
|
|
-%if %{?_dist_release} != "vl4"
|
|
|
|
# using gfortran
|
|
# using gfortran
|
|
%patch3 -p1
|
|
%patch3 -p1
|
|
cp -f INSTALL/make.inc.gfortran make.inc
|
|
cp -f INSTALL/make.inc.gfortran make.inc
|
|
cp -f %{SOURCE2} BLAS/SRC/Makefile
|
|
cp -f %{SOURCE2} BLAS/SRC/Makefile
|
|
cp -f %{SOURCE3} SRC/Makefile
|
|
cp -f %{SOURCE3} SRC/Makefile
|
|
-%else
|
|
|
|
-# using g77
|
|
|
|
-%patch4 -p1
|
|
|
|
-cp -f %{SOURCE102} BLAS/SRC/Makefile
|
|
|
|
-cp -f %{SOURCE103} SRC/Makefile
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
-mv lapack-3.2.0/manpages/ manpages/
|
|
+sed -i "s|@SHORTVER@|%{shortver}|g" BLAS/SRC/Makefile
|
|
|
|
+sed -i "s|@SHORTVER@|%{shortver}|g" SRC/Makefile
|
|
|
|
+sed -i "s|@LONGVER@|%{version}|g" BLAS/SRC/Makefile
|
|
|
|
+sed -i "s|@LONGVER@|%{version}|g" SRC/Makefile
|
|
|
|
|
|
#Empty
|
|
#Empty
|
|
rm -f manpages/man/manl/zbcon.l
|
|
rm -f manpages/man/manl/zbcon.l
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
+
|
|
RPM_OPT_O_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's|-O2|-O0|')
|
|
RPM_OPT_O_FLAGS=$(echo $RPM_OPT_FLAGS | sed 's|-O2|-O0|')
|
|
-%if %{?_dist_release} != "vl4"
|
|
|
|
# using gfortran
|
|
# using gfortran
|
|
export FC=gfortran
|
|
export FC=gfortran
|
|
-%else
|
|
|
|
-# using g77
|
|
|
|
-export FC=g77
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
# Build BLAS
|
|
# Build BLAS
|
|
pushd BLAS/SRC
|
|
pushd BLAS/SRC
|
|
@@ -217,9 +174,10 @@ cp -p %{SOURCE4} lapackqref.ps
|
|
cp -p %{SOURCE5} blasqr.ps
|
|
cp -p %{SOURCE5} blasqr.ps
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -fr $RPM_BUILD_ROOT
|
|
+rm -fr ${RPM_BUILD_ROOT}
|
|
-mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
+mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/manl
|
|
+mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/manl
|
|
|
|
+chmod 755 ${RPM_BUILD_ROOT}%{_mandir}/manl
|
|
|
|
|
|
for f in liblapack.so.%{version} libblas.so.%{version} libblas.a liblapack.a liblapack_pic.a; do
|
|
for f in liblapack.so.%{version} libblas.so.%{version} libblas.a liblapack.a liblapack_pic.a; do
|
|
cp -f $f ${RPM_BUILD_ROOT}%{_libdir}/$f
|
|
cp -f $f ${RPM_BUILD_ROOT}%{_libdir}/$f
|
|
@@ -237,11 +195,11 @@ cp -f manpages/man/manl/* ${RPM_BUILD_ROOT}%{_mandir}/manl
|
|
|
|
|
|
cd ${RPM_BUILD_ROOT}%{_libdir}
|
|
cd ${RPM_BUILD_ROOT}%{_libdir}
|
|
ln -sf liblapack.so.%{version} liblapack.so
|
|
ln -sf liblapack.so.%{version} liblapack.so
|
|
-ln -sf liblapack.so.%{version} liblapack.so.3
|
|
+ln -sf liblapack.so.%{version} liblapack.so.%{shortver}
|
|
-ln -sf liblapack.so.%{version} liblapack.so.3.2
|
|
+ln -sf liblapack.so.%{version} liblapack.so.%{mediumver}
|
|
ln -sf libblas.so.%{version} libblas.so
|
|
ln -sf libblas.so.%{version} libblas.so
|
|
-ln -sf libblas.so.%{version} libblas.so.3
|
|
+ln -sf libblas.so.%{version} libblas.so.%{shortver}
|
|
-ln -sf libblas.so.%{version} libblas.so.3.2
|
|
+ln -sf libblas.so.%{version} libblas.so.%{mediumver}
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
@@ -252,11 +210,12 @@ ln -sf libblas.so.%{version} libblas.so.3.2
|
|
%postun -n blas -p /sbin/ldconfig
|
|
%postun -n blas -p /sbin/ldconfig
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -fr $RPM_BUILD_ROOT
|
|
+rm -fr ${RPM_BUILD_ROOT}
|
|
|
|
|
|
%files -f lapackmans
|
|
%files -f lapackmans
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc README lapackqref.ps
|
|
+%doc README LICENSE lapackqref.ps
|
|
|
|
+%dir %{_mandir}/manl/
|
|
%{_libdir}/liblapack.so.*
|
|
%{_libdir}/liblapack.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
@@ -269,7 +228,8 @@ rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
|
%files -n blas -f blasmans
|
|
%files -n blas -f blasmans
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc blasqr.ps
|
|
+%doc blasqr.ps LICENSE
|
|
|
|
+%dir %{_mandir}/manl/
|
|
%{_libdir}/libblas.so.*
|
|
%{_libdir}/libblas.so.*
|
|
|
|
|
|
%files -n blas-devel
|
|
%files -n blas-devel
|
|
@@ -280,13 +240,11 @@ rm -fr $RPM_BUILD_ROOT
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libblas*.a
|
|
%{_libdir}/libblas*.a
|
|
|
|
|
|
-#%files -n blas-man -f blasmans
|
|
|
|
-#%defattr(-,root,root)
|
|
|
|
-
|
|
|
|
-#%files man -f lapackmans
|
|
|
|
-#%defattr(-,root,root)
|
|
|
|
-
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Nov 26 2011 NAKAMURA Kenta <kenta@vinelinux.org> 3.3.1-1
|
|
|
|
+- new upstream release
|
|
|
|
+- update package descriptions
|
|
|
|
+
|
|
* Fri Feb 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.1-1
|
|
* Fri Feb 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.1-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- built with new toolchain
|
|
- built with new toolchain
|