Группа :: Науки/Математика
Пакет: hlzpack
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define somver 0
%define sover %somver.4.0
Name: hlzpack
Version: 04.00
Release: alt2
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: libatlas-devel 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
%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
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
…
Полный changelog можно просмотреть здесь
%define sover %somver.4.0
Name: hlzpack
Version: 04.00
Release: alt2
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: libatlas-devel 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
%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
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
…
Полный changelog можно просмотреть здесь