Группа :: Науки/Математика
Пакет: random
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define somver 0
%define sover %somver.0.0
Name: random
Version: 20080825
Release: alt1
Summary: Fortran-90 pseudo-random number generator
License: BSD
Group: Sciences/Mathematics
Url: http://crd.lbl.gov/~dhbailey/mpdist/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
Source: http://crd.lbl.gov/~dhbailey/mpdist/random-20080825.tar.gz
Source1: http://crd.lbl.gov/~dhbailey/mpdist/BSD-LBNL-License.doc
BuildPreReq: gcc-fortran libgfortran-devel-static
%description
RANDOM (Fortran-90 pseudo-random number generator based on provably normal
number theory), based on the recently discovered class of provably normal
numbers -- see paper "Random Generators and Normal Numbers", by DHB and Richard
Crandall, in the papers directory. In particular, subroutine bcnrand generates a
sequence of IEEE 64-bit floating-point numbers uniformly in (0,1), with period
(if parameters are properly selected) = 2x3^32 = 3.7060404e15. It is completely
self-contained -- the required double-double arithmetic subroutines are included
in the Fortran-90 source file. The bcnrand routine is designed for simple
parallelization, yielding the same overall sequence as with a one-processor
program. Also included here is a memory-testing program based on the bcnrand
generator.
%package -n lib%name-devel
Summary: Static libraries of RANDOM
Group: Development/Other
%description -n lib%name-devel
RANDOM (Fortran-90 pseudo-random number generator based on provably normal
number theory), based on the recently discovered class of provably normal
numbers -- see paper "Random Generators and Normal Numbers", by DHB and Richard
Crandall, in the papers directory. In particular, subroutine bcnrand generates a
sequence of IEEE 64-bit floating-point numbers uniformly in (0,1), with period
(if parameters are properly selected) = 2x3^32 = 3.7060404e15. It is completely
self-contained -- the required double-double arithmetic subroutines are included
in the Fortran-90 source file. The bcnrand routine is designed for simple
parallelization, yielding the same overall sequence as with a one-processor
program. Also included here is a memory-testing program based on the bcnrand
generator.
This package contains static libraries of RANDOM.
%prep
%setup
install -m644 %SOURCE1 .
%build
mkdir orig
cp *.f90 orig/
mv memtest.f90 bcn_memtest.f90
cp bcnrand.f90 lbcnrand.f90
cp bcnrandx.f90 lbcnrandx.f90
sed -i -e '56,$d' bcnrand.f90
sed -i -e '89,$d' bcnrandx.f90
sed -i -e '123,$d' lbcnrandx.f90
sed -i -e '1,93d' lbcnrandx.f90
sed -i -e '123rlbcnrandx.f90' lbcnrand.f90
rm -f lbcnrandx.f90
sed -i -e '1,61d' lbcnrand.f90
sed -i -e '50,$d' bcn_memtest.f90
f95 %optflags -c *.f90
ar r libbcnrand.a lbcnrand.o
ranlib libbcnrand.a
for i in bcnrand bcnrandx bcn_memtest
do
f95 -static $i.o -o $i -L. -lbcnrand
done
./bcnrand
echo
./bcnrandx
%install
install -d %buildroot%_bindir
install -d %buildroot%_libdir
install -m755 bcnrand bcnrandx bcn_memtest %buildroot%_bindir
install -m644 *.a %buildroot%_libdir
%files
%doc *.doc
%_bindir/*
%files -n lib%name-devel
%doc orig/*.f90
%_libdir/*.a
%changelog
…
Полный changelog можно просмотреть здесь
%define sover %somver.0.0
Name: random
Version: 20080825
Release: alt1
Summary: Fortran-90 pseudo-random number generator
License: BSD
Group: Sciences/Mathematics
Url: http://crd.lbl.gov/~dhbailey/mpdist/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
Source: http://crd.lbl.gov/~dhbailey/mpdist/random-20080825.tar.gz
Source1: http://crd.lbl.gov/~dhbailey/mpdist/BSD-LBNL-License.doc
BuildPreReq: gcc-fortran libgfortran-devel-static
%description
RANDOM (Fortran-90 pseudo-random number generator based on provably normal
number theory), based on the recently discovered class of provably normal
numbers -- see paper "Random Generators and Normal Numbers", by DHB and Richard
Crandall, in the papers directory. In particular, subroutine bcnrand generates a
sequence of IEEE 64-bit floating-point numbers uniformly in (0,1), with period
(if parameters are properly selected) = 2x3^32 = 3.7060404e15. It is completely
self-contained -- the required double-double arithmetic subroutines are included
in the Fortran-90 source file. The bcnrand routine is designed for simple
parallelization, yielding the same overall sequence as with a one-processor
program. Also included here is a memory-testing program based on the bcnrand
generator.
%package -n lib%name-devel
Summary: Static libraries of RANDOM
Group: Development/Other
%description -n lib%name-devel
RANDOM (Fortran-90 pseudo-random number generator based on provably normal
number theory), based on the recently discovered class of provably normal
numbers -- see paper "Random Generators and Normal Numbers", by DHB and Richard
Crandall, in the papers directory. In particular, subroutine bcnrand generates a
sequence of IEEE 64-bit floating-point numbers uniformly in (0,1), with period
(if parameters are properly selected) = 2x3^32 = 3.7060404e15. It is completely
self-contained -- the required double-double arithmetic subroutines are included
in the Fortran-90 source file. The bcnrand routine is designed for simple
parallelization, yielding the same overall sequence as with a one-processor
program. Also included here is a memory-testing program based on the bcnrand
generator.
This package contains static libraries of RANDOM.
%prep
%setup
install -m644 %SOURCE1 .
%build
mkdir orig
cp *.f90 orig/
mv memtest.f90 bcn_memtest.f90
cp bcnrand.f90 lbcnrand.f90
cp bcnrandx.f90 lbcnrandx.f90
sed -i -e '56,$d' bcnrand.f90
sed -i -e '89,$d' bcnrandx.f90
sed -i -e '123,$d' lbcnrandx.f90
sed -i -e '1,93d' lbcnrandx.f90
sed -i -e '123rlbcnrandx.f90' lbcnrand.f90
rm -f lbcnrandx.f90
sed -i -e '1,61d' lbcnrand.f90
sed -i -e '50,$d' bcn_memtest.f90
f95 %optflags -c *.f90
ar r libbcnrand.a lbcnrand.o
ranlib libbcnrand.a
for i in bcnrand bcnrandx bcn_memtest
do
f95 -static $i.o -o $i -L. -lbcnrand
done
./bcnrand
echo
./bcnrandx
%install
install -d %buildroot%_bindir
install -d %buildroot%_libdir
install -m755 bcnrand bcnrandx bcn_memtest %buildroot%_bindir
install -m644 *.a %buildroot%_libdir
%files
%doc *.doc
%_bindir/*
%files -n lib%name-devel
%doc orig/*.f90
%_libdir/*.a
%changelog
…
Полный changelog можно просмотреть здесь