Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37044884
en ru br
ALT Linux repos
S:04.00-alt9

Group :: Sciences/Mathematics
RPM: hlzpack

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define somver 0
%define sover %somver.4.0

Name: hlzpack
Version: 04.00
Release: alt9

Summary: Hermitian LancZos PACKage
License: BSD
Group: Sciences/Mathematics

Url: http://crd.lbl.gov/~osni/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
Source: http://crd.lbl.gov/~osni/Codes/hlzpack.zip

BuildPreReq: liblapack-devel libparmetis-devel
BuildPreReq: gcc-fortran unzip

%description
The HLZPACK package corresponds to a set of subprograms written in
standard Fortran 77 intended for the computation of scalars eig
and vectors (x) for the problem (H)*(x)-eig*(x)=0, where (H) is
a complex Hermitian matrix of dimension N.

%package -n lib%name
Summary: Shared library of HLZPACK
Group: System/Libraries

%description -n lib%name
The HLZPACK package corresponds to a set of subprograms written in
standard Fortran 77 intended for the computation of scalars eig
and vectors (x) for the problem (H)*(x)-eig*(x)=0, where (H) is
a complex Hermitian matrix of dimension N.

This package contains shared library of HLZPACK.

%package -n lib%name-devel
Summary: Development library of HLZPACK
Group: Development/Other
Requires: lib%name = %version-%release

%description -n lib%name-devel
The HLZPACK package corresponds to a set of subprograms written in
standard Fortran 77 intended for the computation of scalars eig
and vectors (x) for the problem (H)*(x)-eig*(x)=0, where (H) is
a complex Hermitian matrix of dimension N.

This package contains development library of HLZPACK.

%package -n lib%name-devel-static
Summary: Static library of HLZPACK
Group: Development/Other
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
The HLZPACK package corresponds to a set of subprograms written in
standard Fortran 77 intended for the computation of scalars eig
and vectors (x) for the problem (H)*(x)-eig*(x)=0, where (H) is
a complex Hermitian matrix of dimension N.

This package contains static library of HLZPACK.

%package examples
Summary: Examples for HLZPACK
Group: Development/Documentation
Requires: lib%name = %version-%release

%description examples
The HLZPACK package corresponds to a set of subprograms written in
standard Fortran 77 intended for the computation of scalars eig
and vectors (x) for the problem (H)*(x)-eig*(x)=0, where (H) is
a complex Hermitian matrix of dimension N.

This package contains examples for HLZPACK.

%package -n lib%name-devel-doc
Summary: Documentation for HLZPACK
Group: Development/Documentation
BuildArch: noarch

%description -n lib%name-devel-doc
The HLZPACK package corresponds to a set of subprograms written in
standard Fortran 77 intended for the computation of scalars eig
and vectors (x) for the problem (H)*(x)-eig*(x)=0, where (H) is
a complex Hermitian matrix of dimension N.

This package contains development documentation for HLZPACK.

%prep
%setup
touch Makefile sys/Makefile src/double/Makefile

%ifarch %e2k
# as of lcc 1.26.16
sed -i 's/-fno-f2c//g' {,drv/}Makefile
%endif

%build
sed -i 's| at BUILDLIBS at |%buildroot%_libdir|g' \
Makefile drv/Makefile
sed -i 's| at SOMVER at |%somver|g' Makefile
sed -i 's| at SOVER at |%sover|g' Makefile

%install
%make_build g77.lib

sed -i 's|%buildroot||' drv/Makefile
install -d %buildroot%_libdir/%name/examples
cp -f drv/* %buildroot%_libdir/%name/examples/
rm -f %buildroot%_libdir/%name/examples/*.o

install -d %buildroot%_docdir/lib%name-devel/sources
install -p -m644 doc/* \
%buildroot%_docdir/lib%name-devel
install -p -m644 src/double/*.f \
%buildroot%_docdir/lib%name-devel/sources

%files -n lib%name
%doc license.txt README
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/*.so

#files -n lib%name-devel-static

#_libdir/*.a

%files -n lib%name-devel-doc
%_docdir/lib%name-devel

%files examples
%dir %_libdir/%name
%_libdir/%name/examples

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin