]> git.pld-linux.org Git - packages/lapack.git/blobdiff - lapack.spec
- Groups fixed for shared libs
[packages/lapack.git] / lapack.spec
index f0276a43ad41a6a3926ffbb49c2907e656fa3420..fdf4ab0ffda59c0d831514727254648695fb2164 100644 (file)
@@ -1,22 +1,27 @@
 Summary:       The LAPACK libraries for numerical linear algebra
-Summary(pl):   Biblioteki numeryczne LAPACK do algebry liniowej
+Summary(pl.UTF-8):     Biblioteki numeryczne LAPACK do algebry liniowej
 Name:          lapack
-Version:       3.0
-Release:       13
+Version:       3.1.1
+Release:       4
 License:       freely distributable
-Group:         Development/Libraries
-Source0:       http://www.netlib.org/lapack/%{name}.tgz
-Source1:       http://www.netlib.org/lapack/manpages.tgz
+Group:         Libraries
+Source0:       http://www.netlib.org/lapack/%{name}-%{version}.tgz
+# Source0-md5: 00b21551a899bcfbaa7b8443e1faeef9
+Source1:       http://www.netlib.org/lapack/manpages-%{version}.tgz
+# Source1-md5: e5b46d8915f7cc8a1e50aa3e70c9f86e
 Patch0:                %{name}-automake_support.patch
-Patch1:                %{name}-20010525.patch
 URL:           http://www.netlib.org/lapack/
-BuildRequires: gcc-g77
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libtool
-BuildRequires: ed
+BuildRequires: gcc-fortran
+BuildRequires: libtool >= 2:1.5
+Requires:      blas = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Requires:      blas
+
+# see http://www.netlib.org/lapack/faq.html#1.13 (2nd note from top)
+# and http://www.netlib.org/lapack/faq.html#1.25
+# anybody to prepare appropriate fix?
+%define       rpmcflags -O0
 
 %description
 LAPACK (Linear Algebra PACKage) is a standard library for numerical
@@ -31,47 +36,48 @@ not general sparse matrices. Similar functionality is provided for
 real and complex matrices in both single and double precision. LAPACK
 is coded in Fortran77.
 
-%description -l pl
-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
+%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:       LAPACK header files
-Summary(pl):   Pliki nag³ówkowe LAPACK
+Summary(pl.UTF-8):     Pliki nagłówkowe LAPACK
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
+Requires:      blas-devel = %{version}-%{release}
 Obsoletes:     lapack-man
 
 %description devel
 LAPACK header files.
 
-%description devel -l pl
-Pliki nag³ówkowe LAPACK.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe LAPACK.
 
 %package static
 Summary:       Static LAPACK libraries
-Summary(pl):   Biblioteki statyczne LAPACK
+Summary(pl.UTF-8):     Biblioteki statyczne LAPACK
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static LAPACK libraries.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Biblioteki statyczne LAPACK.
 
 %package -n blas
 Summary:       The BLAS (Basic Linear Algebra Subprograms) library for Linux
-Summary(pl):   Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa
-Group:         Development/Libraries
+Summary(pl.UTF-8):     Biblioteka BLAS (Basic Linear Algebra Subprograms) dla Linuksa
+Group:         Libraries
 Obsoletes:     lapack-blas
 
 %description -n blas
@@ -80,99 +86,100 @@ numerical algebra. BLAS provides a number of basic algorithms for
 linear algebra. BLAS is fast and well-tested, was written in FORTRAN
 77.
 
-%description -n blas -l pl
-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
+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:       BLAS header files
-Summary(pl):   Pliki nag³ówkowe BLAS
+Summary(pl.UTF-8):     Pliki nagłówkowe BLAS
 Group:         Development/Libraries
-Requires:      blas = %{version}
+Requires:      blas = %{version}-%{release}
 Obsoletes:     blas-man
 
 %description -n blas-devel
 BLAS header files.
 
-%description -n blas-devel -l pl
-Pliki nag³ówkowe BLAS.
+%description -n blas-devel -l pl.UTF-8
+Pliki nagłówkowe BLAS.
 
 %package -n blas-static
 Summary:       Static BLAS libraries
-Summary(pl):   Biblioteki statyczne BLAS
+Summary(pl.UTF-8):     Biblioteki statyczne BLAS
 Group:         Development/Libraries
-Requires:      blas-devel = %{version}
+Requires:      blas-devel = %{version}-%{release}
 
 %description -n blas-static
 Static BLAS libraries.
 
-%description -n blas-static -l pl
+%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
+# or maybe it should fail while trying to overwrite a file?
+cp -f install/*.f SRC/
 
 %build
-rm -f ltmain.sh
-libtoolize --copy --force
-aclocal
-autoheader
-automake --add-missing
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
 %{__autoconf}
+%{__automake}
 %configure
-%{__make}
+
+%{__make} \
+       LTTAG="--tag=F77"
 
 %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
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# present both in blas and lapack
+rm -f man/manl/{lsame,xerbla}.l
 
 install -d $RPM_BUILD_ROOT%{_mandir}/man3
-for d in man/manl/*.l blas/man/manl/*.l ; do
+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 blas/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> 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 man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> mans.list
-
-gzip -9nf README
+find manpages/man/manl -name "*.l" -printf "%{_mandir}/man3/%%f\n" | sed 's/\.l/.3*/' >> mans.list
 
 %clean
 rm -fr $RPM_BUILD_ROOT
 
-%post           -p /sbin/ldconfig
-%postun         -p /sbin/ldconfig
+%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.*.*.*
 
 %files devel -f mans.list
 %defattr(644,root,root,755)
-%{_libdir}/liblapack.so
+%attr(755,root,root) %{_libdir}/liblapack.so
+%{_libdir}/liblapack.la
 
 %files static
 %defattr(644,root,root,755)
@@ -184,7 +191,8 @@ rm -fr $RPM_BUILD_ROOT
 
 %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
 
 %files -n blas-static
 %defattr(644,root,root,755)
This page took 0.049685 seconds and 4 git commands to generate.