Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37046159
en ru br
Репозитории ALT
5.1: 2.1.5-alt4
4.1: 2.1.5-alt3
4.0: 2.1.5-alt2
3.0: 2.1.5-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: fftw

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

%set_verify_elf_method unresolved=relaxed

Name: fftw
Version: 2.1.5
Release: alt2

Summary: Fast fourier transform library
License: GPL
Group: System/Libraries
Url: http://www.fftw.org

Source: %name-%version.tar
Patch: %name-2.1.5-pentium.patch
Patch1: %name-2.1.5-alt-texinfo.patch

# Automatically added by buildreq on Sat Nov 24 2001

BuildRequires: gcc-g77

%description
FFTW is a collection of fast C routines for computing the Discrete Fourier
Transform in one or more dimensions.  It includes complex, real, and
parallel transforms, and can handle arbitrary array sizes efficiently.
This RPM package includes both the double- and single-precision FFTW
uniprocessor and threads libraries.  (The single-precision files have
an "s" prefix.)

%package -n lib%name
Summary: Dynamic libraries for FFTW fast fourier transform library
Group: System/Libraries

%description -n lib%name
FFTW is a collection of fast C routines for computing the Discrete Fourier
Transform in one or more dimensions.  It includes complex, real, and
parallel transforms, and can handle arbitrary array sizes efficiently.
This RPM package includes both the double- and single-precision FFTW
uniprocessor and threads libraries.  (The single-precision files have
an "s" prefix.)

%package -n lib%name-devel
Summary: Headers, libraries, & docs for FFTW fast fourier transform library
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains the additional header files, documentation, and
libraries you need to develop programs using the FFTW fast fourier
transform library.

%package -n lib%name-devel-static
Summary: Static libraries for FFTW fast fourier transform library
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains static libraries you need to develop programs using
the FFTW fast fourier transform library.

%prep
# We will be compiling two copies of FFTW, one for double precision and
# one for single precision.  During the build process, these copies
# will be stored in fftw-%version/double and fftw-%version/single

# Unpack the tar archive, first (-c) creating a fftw-%version

# directory and then unpacking in there.

%setup -c %name-%version

# Apply patch to enable pentium optimizations

%patch -p0
%patch1 -p0

# Now, rename the unpacked and patched FFTW directory to "double":

mv %name-%version double
# Last, make a copy of this directory in "single":
cp -r double single

%build
export LIBS=-lpthread
# Configure and build the double and single precision versions.
# Notes:
#  (1) We install into buildroot, which is set either
#      by the BuildRoot option above or by --buildroot at build-time.
#      This allows you to build the RPM without blowing away your existing
#      FFTW installation, and even without being root.
#  (2) The double-precision version is installed with the normal library
#      names, while the single-precision version is installed with an "s"
#      prefix.

pushd double
%ifarch %ix86
%configure --enable-shared --enable-threads --infodir=%buildroot%_infodir \
   --enable-i386-hacks
%else
%configure --enable-shared --enable-threads --infodir=%buildroot%_infodir
%endif
%make
popd

pushd single
%ifarch %ix86
%configure --enable-shared --enable-threads --infodir=%buildroot%_infodir \
   --enable-i386-hacks --enable-float --enable-type-prefix
%else
%configure --enable-shared --enable-threads --infodir=%buildroot%_infodir \
   --enable-float --enable-type-prefix
%endif
%make
popd

%install
%makeinstall -C single
%makeinstall -C double

# Reorganize docs

%__mkdir_p html
%__mkdir_p FAQ
%__mkdir_p doc
mv single/doc/*.html single/doc/*.gif html/
cp -a single/FAQ/fftw-faq.html/* FAQ/
cp -a single/doc/{*ps,*fig,*tex} doc/
cp single/{AUTHORS,ChangeLog,NEWS,README*,TODO} .

# remove non-packaged files

rm -f %buildroot%_libdir/*.la

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%post -n lib%name-devel
%install_info %name.info

%postun -n lib%name-devel
%uninstall_info %name.info

%files -n lib%name
%doc doc/ html/ FAQ/ AUTHORS ChangeLog NEWS README* TODO
%_libdir/*.so.*

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

%files -n lib%name-devel-static
%_libdir/*.a

%changelog

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

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