# Conditional build:
%bcond_with acml # With ACML version of BLAS instead of NETLIB implementation
#
+%define rel 13
Summary: Subroutines for solving large scale eigenvalue problems
Summary(pl.UTF-8): Rozwiązywanie zagadnienia własnego dla dużych macierzy
Name: arpack
Version: 2.1
-Release: 4%{?with_acml:ACML}
+Release: %{rel}%{?with_acml:ACML}
License: Freely distributable
Group: Libraries
Source0: http://www.caam.rice.edu/software/ARPACK/SRC/%{name}96.tar.gz
# Source3-md5: b86d77199f989fc438acaf7ac0433e76
Source4: http://www.caam.rice.edu/software/ARPACK/SRC/P61_62.ps.gz
# Source4-md5: d116887acb3d61fecf645c2d37d4d517
-Patch0: %{name}-automake_support.patch
-Patch1: %{name}-no_etime.patch
+# originally from http://mathema.tician.de/news.tiker.net/files/arpack-arscnd-3.patch.gz (dead now)
+Patch0: %{name}-arscnd-3.patch
+Patch1: %{name}-automake_support.patch
+Patch2: %{name}-no_etime.patch
URL: http://www.caam.rice.edu/software/ARPACK/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-g77
BuildRequires: libtool >= 2:1.5
-%{!?with_acml:BuildRequires: blas-devel}
+%{!?with_acml:BuildRequires: lapack-devel}
%{?with_acml:ExclusiveArch: %{x8664}}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%setup -q -n ARPACK -b1
%patch0 -p1
%patch1 -p1
+%patch2 -p1
cp %{SOURCE2} .
cp %{SOURCE3} .
cp %{SOURCE4} .
%{__autoheader}
%{__autoconf}
%{__automake}
-%configure \
- LDFLAGS=%{?with_acml:-lacml}%{!?with_acml:-lblas}
+%configure
%{__make}
DESTDIR=$RPM_BUILD_ROOT
%clean
-rm -fr $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_libdir}/libarpack.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libarpack.so.2
%files devel
%defattr(644,root,root,755)