Репозиторий Sisyphus
Последнее обновление: 18 января 2020 | Пакетов: 17489 | Посещений: 16562494
en ru br
Репозитории ALT
S:1.4-alt10
5.1: 1.4-alt3
www.altlinux.org/Changes

Группа :: Науки/Математика
Пакет: icfs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: icfs
Version: 1.4
Release: alt10
Summary: An Incomplete Cholesky Factorization with Limited Memory
License: BSD
Group: Sciences/Mathematics
Url: http://www.mcs.anl.gov/~more/icfs/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

Source: http://www.mcs.anl.gov/~more/icfs/icfs-1.4.tar.gz

Requires: lib%name = %version-%release
BuildPreReq: gcc-fortran liblapack-devel

%description
ICFS  is an incomplete Cholesky factorization for the solution of large-scale
trust region subproblems and positive definite systems of linear equations. This
factorization depends on a parameter p that specifies the amount of additional
memory that is available; there is no need to specify a drop tolerance.

Before use example program `icf', extract data files from archive:
`tar -xzf %_datadir/%name/tprobs.tar.gz'.

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

%description -n lib%name
ICFS  is an incomplete Cholesky factorization for the solution of large-scale
trust region subproblems and positive definite systems of linear equations. This
factorization depends on a parameter p that specifies the amount of additional
memory that is available; there is no need to specify a drop tolerance.

This package contains shared library of ICFS.

%package -n lib%name-devel
Summary: Development files of ICFS
Group: Development/Other
Requires: libgfortran-devel lib%name = %version-%release
Conflicts: lib%name-devel < %version-%release
Obsoletes: lib%name-devel < %version-%release

%description -n lib%name-devel
ICFS  is an incomplete Cholesky factorization for the solution of large-scale
trust region subproblems and positive definite systems of linear equations. This
factorization depends on a parameter p that specifies the amount of additional
memory that is available; there is no need to specify a drop tolerance.

This package contains development files of ICFS.

%prep
%setup

%build
export ARCH=linux
%make install
./icf

%install
install -d %buildroot%_bindir
install -d %buildroot%_datadir/%name
install -d %buildroot%_libdir

install -m755 icf src/utils/Fpp %buildroot%_bindir
mv driver.f icf.f
tar -czf tprobs.tar.gz tprobs
install -m644 tprobs.tar.gz icf.dat icf.linux \
%buildroot%_datadir/%name

mkdir lib
pushd lib
ar x ../src/utils/*.a
cp ../src/icf/lib%name.a ./
ar r lib%name.a *.o
ranlib lib%name.a
rm -f *.o
ar x lib%name.a
install -m644 lib%name.a %buildroot%_libdir
f77 -shared  *.o -Wl,-soname,lib%name.so.0 \
-o %buildroot%_libdir/lib%name.so.0.0.0 -llapack -lopenblas
ln -s lib%name.so.0.0.0 %buildroot%_libdir/lib%name.so.0
ln -s lib%name.so.0 %buildroot%_libdir/lib%name.so
rm -f *.o
popd

%files
%doc README icf.f
%_bindir/*
%_datadir/%name

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

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

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin