Clean up buildrequires, fix update path.

epel9
Jussi Lehtola 15 years ago
parent 2709729a61
commit 2132a34ee2

@ -1,9 +1,7 @@
%bcond_without gfortran
Summary: Fortran77 subroutines for solving large scale eigenvalue problems Summary: Fortran77 subroutines for solving large scale eigenvalue problems
Name: arpack Name: arpack
Version: 2.1 Version: 2.1
Release: 11%{?dist} Release: 13%{?dist}
License: BSD License: BSD
Group: Development/Libraries Group: Development/Libraries
URL: http://www.caam.rice.edu/software/ARPACK/ URL: http://www.caam.rice.edu/software/ARPACK/
@ -15,10 +13,8 @@ Patch0: arpack-2.1-redhat.patch
Patch1: arpack-second-bug.patch Patch1: arpack-second-bug.patch
Patch2: arpack-etime.patch Patch2: arpack-etime.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: %{?with_gfortran:gcc-gfortran}%{!?with_gfortran:/usr/bin/f77} BuildRequires: gcc-gfortran
# The correct dependency would be the following, but it doesn't exist on RHEL4/3 BuildRequires: lapack-devel
#BuildRequires: lapack-devel
BuildRequires: %{_libdir}/liblapack.so
%description %description
ARPACK is a collection of Fortran77 subroutines designed to solve large ARPACK is a collection of Fortran77 subroutines designed to solve large
@ -63,7 +59,7 @@ mkdir static shared
cd shared cd shared
for dir in ../SRC ../UTIL; do for dir in ../SRC ../UTIL; do
make -f $dir/Makefile VPATH=$dir srcdir=$dir \ make -f $dir/Makefile VPATH=$dir srcdir=$dir \
%{?with_gfortran:FC=gfortran} FFLAGS="%{optflags} -fPIC" \ FC=gfortran FFLAGS="%{optflags} -fPIC" \
single double complex complex16 single double complex complex16
done done
gcc -shared -llapack -Wl,-soname,libarpack.so.2 -o libarpack.so.2.1 *.o gcc -shared -llapack -Wl,-soname,libarpack.so.2 -o libarpack.so.2.1 *.o
@ -71,7 +67,7 @@ cd ..
cd static cd static
for dir in ../SRC ../UTIL; do for dir in ../SRC ../UTIL; do
make -f $dir/Makefile VPATH=$dir srcdir=$dir \ make -f $dir/Makefile VPATH=$dir srcdir=$dir \
%{?with_gfortran:FC=gfortran} FFLAGS="%{optflags}" LDFLAGS="-s" \ FC=gfortran FFLAGS="%{optflags}" LDFLAGS="-s" \
all all
done done
ar rv libarpack.a *.o ar rv libarpack.a *.o
@ -108,6 +104,11 @@ rm -rf %{buildroot}
%{_libdir}/libarpack.a %{_libdir}/libarpack.a
%changelog %changelog
* Wed Jul 7 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.1-13
- Get rid of build conditionals related to EPEL 3/4 for which have not been
branched.
- Bump spec to fix update path.
* Wed Apr 7 2010 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.1-11 * Wed Apr 7 2010 Axel Thimm <Axel.Thimm@ATrpms.net> - 2.1-11
- Change license to BSD (see RH bugs #234191 and #578873). - Change license to BSD (see RH bugs #234191 and #578873).

Loading…
Cancel
Save