]> git.pld-linux.org Git - packages/lapack.git/blobdiff - lapack.spec
- updated to 3.3.1 (manpages too)
[packages/lapack.git] / lapack.spec
index 73b8c442ebe7b2d5562eaa565166f064683b091f..9a5c2a3ab094fcf06fd21e632bb799a32308de75 100644 (file)
@@ -1,20 +1,24 @@
-Summary:       The LAPACK libraries for numerical linear algebra.
+Summary:       The LAPACK libraries for numerical linear algebra
+Summary(pl.UTF-8):     Biblioteki numeryczne LAPACK do algebry liniowej
 Name:          lapack
-Version:       3.0
-Release:       2
-Copyright:     Freely distributable
-Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Source0:       http://www.netlib.org/lapack/%{name}.tgz
-Source1:       http://www.netlib.org/lapack/manpages.tgz
-#Source2:      Makefile.blas
-#Source3:      Makefile.lapack
+Version:       3.3.1
+%define        man_ver 3.3.1
+Release:       1
+License:       freely distributable
+Group:         Libraries
+Source0:       http://www.netlib.org/lapack/%{name}-%{version}.tgz
+# Source0-md5: d0d533ec9a5b74933c2a1e84eedc58b4
+Source1:       http://www.netlib.org/lapack/manpages-%{man_ver}.tgz
+# Source1-md5: 0f88dbcf41bb53ef98890ee834da913e
 Patch0:                %{name}-automake_support.patch
+Patch1:                blas-nan.patch
 URL:           http://www.netlib.org/lapack/
-BuildRequires: gcc-g77
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gcc-fortran
+BuildRequires: libtool >= 2:1.5
+Requires:      blas = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Requires:      blas
 
 %description
 LAPACK (Linear Algebra PACKage) is a standard library for numerical
@@ -27,179 +31,170 @@ reordering of Schur factorizations and estimating condition numbers)
 are also included. LAPACK can handle dense and banded matrices, but
 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 is built with egcs.
+is coded in Fortran77.
+
+%description -l pl.UTF-8
+LAPACK (Linear Algebra PACKage) jest standardową biblioteką numeryczną
+do algebry liniowej. Dostarcza funkcje rozwiązywania: układów równań
+liniowych, układów równań metodą najmniejszych kwadratów, problemów
+własnych. Zawiera algorytmy faktoryzacji macierzy (LU, Cholesky'ego,
+QR, SVD, Schura, uogólnioną Schura) i związanych z tym obliczeń (np.
+przenumerowywanie w faktoryzacji Schura i estymację uwarunkowania).
+LAPACK może obsługiwać macierze blokowe i pasmowe, ale nie rzadkie w
+ogólnym przypadku. Zapewnia funkcjonalność dla macierzy rzeczywistych
+i zespolonych, dla liczb pojedynczej i podwójnej precyzji. LAPACK jest
+napisany w Fortranie 77.
 
 %package devel
-Summary:       %{name} header files
-Summary(pl):   Pliki nag³ówkowe %{name}
+Summary:       LAPACK development files
+Summary(pl.UTF-8):     Pliki programistyczne LAPACK
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Requires:      blas-devel = %{version}-%{release}
+Obsoletes:     lapack-man
 
 %description devel
-%{name} header files.
+LAPACK development files.
 
-%description -l pl devel
-Pliki nag³ówkowe %{name}.
+%description devel -l pl.UTF-8
+Pliki programistyczne LAPACK.
 
 %package static
-Summary:       Static %{name} libraries
-Summary(pl):   Biblioteki statyczne %{name}
+Summary:       Static LAPACK libraries
+Summary(pl.UTF-8):     Biblioteki statyczne LAPACK
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
-Static %{name} libraries.
-
-%description -l pl static
-Biblioteki statyczne %{name}.
+Static LAPACK libraries.
 
+%description static -l pl.UTF-8
+Biblioteki statyczne LAPACK.
 
 %package -n blas
-Summary:       The BLAS (Basic Linear Algebra Subprograms) library for Linux.
-Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
+Summary:       The BLAS (Basic Linear Algebra Subprograms) library for Linux
+Summary(pl.UTF-8):     Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa
+Group:         Libraries
 Obsoletes:     lapack-blas
 
 %description -n blas
 BLAS (Basic Linear Algebra Subprograms) is a standard library for
 numerical algebra. BLAS provides a number of basic algorithms for
 linear algebra. BLAS is fast and well-tested, was written in FORTRAN
-77 and build with egcs. BLAS manual pages are available in the
-blas-man package.
+77.
+
+Warning: this is a reference implementation from Netlib. If possible,
+use version optimized for your architecture instead.
+
+%description -n blas -l pl.UTF-8
+BLAS (Basic Linear Algebra Subprograms) jest standardową biblioteką
+numeryczną algebry. Dostarcza wiele podstawowych algorytmów dla
+algebry liniowej. Jest szybka i dobrze przetestowana, została napisana
+w Fortranie 77.
+
+Ostrzeżenie: to jest implementacja przykładowa z repozytorium Netlib.
+Jeżeli to możliwe, należy używać zamiast niej wersji zoptymalizowanej
+pod daną architekturę.
 
 %package -n blas-devel
-Summary:       %{name} header files
-Summary(pl):   Pliki nag³ówkowe %{name}
+Summary:       BLAS development files
+Summary(pl.UTF-8):     Pliki programistyczne BLAS
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      blas = %{version}
+Requires:      blas = %{version}-%{release}
+Obsoletes:     blas-man
 
 %description -n blas-devel
-%{name} header files.
+BLAS development files.
 
-%description -l pl -n blas-devel
-Pliki nag³ówkowe %{name}.
+%description -n blas-devel -l pl.UTF-8
+Pliki programistyczne BLAS.
 
 %package -n blas-static
-Summary:       Static %{name} libraries
-Summary(pl):   Biblioteki statyczne %{name}
+Summary:       Static BLAS libraries
+Summary(pl.UTF-8):     Biblioteki statyczne BLAS
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Requires:      blas-devel = %{version}
+Requires:      blas-devel = %{version}-%{release}
 
 %description -n blas-static
-Static %{name} libraries.
-
-%description -l pl -n blas-static
-Biblioteki statyczne %{name}.
-
-%package -n blas-man
-Summary:       Man pages for BLAS (Basic Linear Algebra Subprograms) routines.
-Group:         Documentation
-Group(pl):     Dokumentacja
-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.
-
-%package man
-Summary:       Documentation for the LAPACK numerical linear algebra libraries.
-Group:         Documentation
-Group(pl):     Dokumentacja
-
-%description man
-Documentation, in the form of man pages, for the LAPACK numerical
-linear algebra libraries.
+Static BLAS libraries.
 
+%description -n blas-static -l pl.UTF-8
+Biblioteki statyczne BLAS.
 
 %prep
-%setup -q -a1 -n LAPACK
+%setup -q -a1
 %patch0 -p1
+%patch1 -p1
 # directory INSTALL conflicts with file INSTALL needed by automake
-mv -f INSTALL install
->INSTALL
->AUTHORS
->ChangeLog
->NEWS
->COPYING
-#>config.h.in
+mv -f INSTALL INSTALLSRC
+# copy selected routines; use INT_ETIME versions of second
+cp -f INSTALLSRC/{ilaver,slamch,dlamch,second_INT_ETIME,dsecnd_INT_ETIME}.f SRC
 
 %build
-rm -f ltmain.sh
-libtoolize --copy --force
-aclocal
-autoheader
-automake --add-missing
-autoconf
-%configure 
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+%configure
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-#workaround libtool
-ed SRC/liblapack.la <<EOF
-s/relink_command=.*/relink_command=''/
-w
-q
-EOF
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-install -d $RPM_BUILD_ROOT%{_mandir}/manl
-gzip -9nf blas/man/manl/*.l man/manl/*.l
-install blas/man/manl/* man/manl/* $RPM_BUILD_ROOT%{_mandir}/manl
-
-echo "%defattr(644, root, root, 755)" > blasmans.list
-find blas/man/manl -name "*.gz" -printf "%{_mandir}/manl/%%f\n" >> blasmans.list
-echo "%defattr(644, root, root, 755)" > mans.list
-find man/manl -name "*.gz" -printf "%{_mandir}/manl/%%f\n" >> mans.list
-
-gzip -9nf README
-
-%post           -p /sbin/ldconfig
-%postun         -p /sbin/ldconfig
-%post   -n blas -p /sbin/ldconfig
-%postun -n blas -p /sbin/ldconfig
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# present both in blas and lapack
+%{__rm} manpages/man/manl/{lsame,xerbla,xerbla_array}.l
+
+install -d $RPM_BUILD_ROOT%{_mandir}/man3
+for d in manpages/man/manl/*.l manpages/blas/man/manl/*.l ; do
+       install $d $RPM_BUILD_ROOT%{_mandir}/man3/`basename $d .l`.3
+done
+
+echo "%defattr(644,root,root,755)" > blasmans.list
+find manpages/blas/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> blasmans.list
+echo "%defattr(644,root,root,755)" > mans.list
+find manpages/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> mans.list
 
 %clean
-rm -fr $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%post   -n blas -p /sbin/ldconfig
+%postun -n blas -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc README*
+%doc README
 %attr(755,root,root) %{_libdir}/liblapack.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liblapack.so.2
 
-%files devel
+%files devel -f mans.list
 %defattr(644,root,root,755)
-%{_libdir}/liblapack.so
+%attr(755,root,root) %{_libdir}/liblapack.so
+%{_libdir}/liblapack.la
+%{_pkgconfigdir}/lapack.pc
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/liblapack.a
 
-%files -n blas 
+%files -n blas
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libblas.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libblas.so.2
 
-%files -n blas-devel
+%files -n blas-devel -f blasmans.list
 %defattr(644,root,root,755)
-%{_libdir}/libblas.so
+%attr(755,root,root) %{_libdir}/libblas.so
+%{_libdir}/libblas.la
+%{_pkgconfigdir}/blas.pc
 
 %files -n blas-static
 %defattr(644,root,root,755)
 %{_libdir}/libblas.a
-
-
-%files -n blas-man -f blasmans.list
-%defattr(644,root,root,755)
-
-%files man -f mans.list
-%defattr(644,root,root,755)
This page took 0.0405450000000001 seconds and 4 git commands to generate.