Репозитории ALT
Последнее обновление в Сб, 06 июня 2020, 00:52:42 +0000 | Пакетов: 9547
en ru
Исходные пакеты в ветвях
свернуть окно
  • 2.1.5-alt7.qa2
  • 2.1.5-alt7.qa2
  • 2.1.5-alt7.qa1
  • 2.1.5-alt7.qa1
  • 2.1.5-alt7.qa1
Группа :: Система/Библиотеки
Исходный пакет: fftw
Необработанный spec-файл

Name: fftw
Version: 2.1.5
Release: alt4

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

Packager: Denis Smirnov <mithraen at altlinux.ru>

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

%define pkgdocdir %_docdir/%name-%version

# 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


%setup

# Apply patch to enable pentium optimizations

%patch -p1
%patch1 -p1
%patch2 -p1

# sources came with pre-generated config.h :-(

# remove it

rm -f fftw/config.h

# create two separate build directories within main dir

mkdir -p double single

%build
#probably unneeded

#export LIBS=-lpthread


# First re-generate (patched) automake and (outdated) libtool stuff

# Be careful with the latter, our libtool still may break things :-(

aclocal
automake
autoconf
libtoolize --copy --force

# 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.


# re-define configure script to support build directories

%global _configure_script ../configure

pushd double
%ifarch %ix86
%configure --enable-shared --enable-threads --enable-i386-hacks
%else
%configure --enable-shared --enable-threads
%endif
%make
popd

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

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

# instead of re-rearranging things in the source

# tree, let's put docs right into its buildroot destination

# AM: do we ACTUALLY need all these docs?

mkdir -p %buildroot%pkgdocdir/{html,FAQ,doc}
cp doc/*.html doc/*.gif %buildroot%pkgdocdir/html/
cp -a FAQ/fftw-faq.html/* %buildroot%pkgdocdir/FAQ/
cp -a doc/{*ps,*fig,*tex} %buildroot%pkgdocdir/doc/
cp AUTHORS ChangeLog NEWS README* TODO %buildroot%pkgdocdir/

# remove non-packaged files

#rm -f %buildroot%_libdir/*.la


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

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

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

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


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

%changelog
* Mon Dec 01 2008 Denis Smirnov <mithraen at altlinux.ru> 2.1.5-alt4
- cleanup spec

* Fri Nov 02 2007 Denis Smirnov <mithraen at altlinux.ru> 2.1.5-alt3
- rebuild

* Sun Sep 30 2007 Alexey Morozov <morozov at altlinux.org> 2.1.5-alt2.1
- NMU: fix build:
+ no more unresolved symbols in libraries
(patch fftw-2.1.5-alt-link_no_undefined.patch, #2)
+ build process slightly re-organized and optimized

* Wed Oct 18 2006 Denis Smirnov <mithraen at altlinux.ru> 2.1.5-alt2
- fix building with last toolchain

* Fri Nov 28 2003 Yuri N. Sedunov <aris at altlinux.ru> 2.1.5-alt1
- 2.1.5
- do not package .la files.

* Fri Feb 21 2003 Yuri N. Sedunov <aris at altlinux.ru> 2.1.3-alt3
- use %%{un}install_info macros in %%post{un}.

* Tue Sep 10 2002 Yuri N. Sedunov <aris at altlinux.ru> 2.1.3-alt2
- cleanups.

* Fri Nov 23 2001 Yuri N. Sedunov <aris at altlinux.ru> 2.1.3-alt1
- Adaptation and first build for Sisyphus.

* Thu Jun 14 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.1.3-8mdk
- fixed by Mika Korhonen <mikak@ee.oulu.fi> :
- removed broken ld.so.conf test (/usr/lib is not listed there anyways)
- made install-info work with RPM macros shipping with newer Mandrakes
and actually add an entry to the top dir file

* Tue Jan 09 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.1.3-7mdk
- rebuild

* Tue Aug 31 2000 Lenny Cartier <lenny@mandrakesoft.com> 2.1.3-6mdk
- add installinfo

* Wed Aug 30 2000 Alexander Skwar <ASkwar@DigitalProjects.com> 2.1.3-5mdk
- Actually used macros
- Added %%doc files
- Shortened %files section of the SPEC file a lot
- Provide libfftw as eXtace requires it
- Obsolote libfftw package
- Optimized for Pentium builds per README.hacks

* Wed Aug 30 2000 Lenny Cartier <lenny@mandrakesoft.com> 2.1.3-4mdk
- BM
- macros

* Wed Apr 26 2000 Lenny Cartier <lenny@mandrakesoft.com> 2.1.3-3mdk
- fix group
- spec helper fixes

* Tue Jan 25 2000 Lenny Cartier <lenny@mandrakesoft.com>
- updated, installs in /usr instead of /usr/local by Dara Hazeghi
<dara@pacbell.net>

* Thu Dec 16 1999 Lenny Cartier <lenny@mandrakesoft.com>
- new in contribs
- bz2 archive
- add defattr
 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT