]> git.pld-linux.org Git - packages/fftw.git/blobdiff - fftw.spec
- use ix86 macro
[packages/fftw.git] / fftw.spec
index ab58496b69ca45bd02ad7136e0fe428828bdfcc5..76a9d2c9a83a1e7628798fceb1f598250bee6023 100644 (file)
--- a/fftw.spec
+++ b/fftw.spec
-# RPM spec file for FFTW.
-# This file is used to build Redhat Package Manager packages for the
-# FFTW library.  Such packages make it easy to install and uninstall
-# the library and related files from binaries or source.
-#
-# This spec file is for version 2.1.2 of FFTW, and will need to be
-# modified for future releases.  First, the string "2.1.2" should
-# be replaced everywhere in this file with the new version number.
-# Second, the shared library version numbers (in the %files list)
-# will need to be updated.  Any other changes in the installed files
-# list, build commands, etcetera will of course also require changes.
-#
-# The icon associated with this package can be downloaded from:
-#     http://theory.lcs.mit.edu/~fftw/fftw-logo-thumb.gif
-# and will need to be placed in the SOURCES directory to build the RPM.
-#
-Name: fftw
-Summary: fast fourier transform library
-Version: 2.1.2
-Release: 3
-Copyright: GPL
-Icon: fftw-logo-thumb.gif
-Group: Libraries
-Prefix: /usr
-Source: ftp://theory.lcs.mit.edu/pub/fftw/fftw-2.1.2.tar.gz
-URL: http://theory.lcs.mit.edu/~fftw
-BuildRoot: /var/tmp/fftw-%{PACKAGE_VERSION}-root
+Summary:       Fast Fourier transform library
+Summary(pl):   biblioteka z funkacjami szybkiej transformaty Fouriera
+Name:          fftw
+Version:       2.1.3
+Release:       7
+License:       GPL
+Group:         Libraries
+Group(de):     Libraries
+Group(es):     Bibliotecas
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Group(pt_BR):  Bibliotecas
+Group(ru):     âÉÂÌÉÏÔÅËÉ
+Group(uk):     â¦Â̦ÏÔÅËÉ
+Source0:       ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz
+Patch0:                %{name}-info.patch
+Icon:          fftw-logo-thumb.gif
+URL:           http://www.fftw.org/
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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.
+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.
+
+%description -l pl
+FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych
+transformacji Fouriera w jedym lub wiêcej wymiarach. Zawiera równie¿
+z³o¿one, rzeczywiste oraz równoleg³e transformacje i potrafi wydajnie
+radziæ sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM
+zawiera zarówno uniprocesor FFTW o pojedynczej i podwójnej precyzji
+jak i biblioteki w±tków.
+
 %package devel
-Summary: headers, libraries, & docs for FFTW fast fourier transform library
-Group: Development/Libraries
-Prefix: /usr
-Requires: fftw = 2.1.2
+Summary:       headers, libraries, & docs for fftw
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(es):     Desarrollo/Bibliotecas
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Group(pt_BR):  Desenvolvimento/Bibliotecas
+Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+Requires:      %{name} = %{version}
+
 %description devel
 This package contains the additional header files, documentation, and
 libraries you need to develop programs using the FFTW fast fourier
 transform library.
 
-%prep
-%setup
+%package static
+Summary:       Static fftw libraries
+Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
+Group(es):     Desarrollo/Bibliotecas
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
+Group(pt_BR):  Desenvolvimento/Bibliotecas
+Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+Requires:      %{name}-devel = %{version}
 
-%ifarch i386
-./configure --enable-shared --enable-type-prefix --enable-i386-hacks --enable-threads --prefix=%prefix
-%else
-./configure --enable-shared --enable-type-prefix --enable-threads --prefix=%prefix
-%endif
+%description static
+Static fftw libraries.
+
+%prep
+%setup -q
+%patch -p1
 
 %build
+%configure2_13 \
+%ifarch %{ix86}
+       --enable-i386-hacks \
+%endif
+       --enable-shared \
+       --enable-threads \
+       --%{!?debug:disable}%{?debug:enable}-debug
 
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-# hack to also compile/install single-precision version:
-make distclean
-%ifarch i386
-./configure --enable-shared --enable-type-prefix --enable-threads --enable-float --prefix=%prefix --enable-i386-hacks
-%else
-./configure --enable-shared --enable-type-prefix --enable-threads --enable-float --prefix=%prefix
-%endif
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
-%files
-/usr/lib/libdfftw.so.2.0.4
-/usr/lib/libdfftw_threads.so.2.0.4
-/usr/lib/libdrfftw.so.2.0.4
-/usr/lib/libdrfftw_threads.so.2.0.4
-/usr/lib/libsfftw.so.2.0.4
-/usr/lib/libsfftw_threads.so.2.0.4
-/usr/lib/libsrfftw.so.2.0.4
-/usr/lib/libsrfftw_threads.so.2.0.4
-/usr/lib/libdfftw.so.2
-/usr/lib/libdfftw_threads.so.2
-/usr/lib/libdrfftw.so.2
-/usr/lib/libdrfftw_threads.so.2
-/usr/lib/libsfftw.so.2
-/usr/lib/libsfftw_threads.so.2
-/usr/lib/libsrfftw.so.2
-/usr/lib/libsrfftw_threads.so.2
-%files devel
-/usr/info/fftw.info
-/usr/info/fftw.info-1
-/usr/info/fftw.info-2
-/usr/info/fftw.info-3
-/usr/info/fftw.info-4
-/usr/info/fftw.info-5
-/usr/include/dfftw.h
-/usr/include/dfftw_threads.h
-/usr/include/drfftw.h
-/usr/include/drfftw_threads.h
-/usr/include/sfftw.h
-/usr/include/sfftw_threads.h
-/usr/include/srfftw.h
-/usr/include/srfftw_threads.h
-/usr/lib/libdfftw.a
-/usr/lib/libdfftw.la
-/usr/lib/libdfftw.so
-/usr/lib/libdfftw_threads.a
-/usr/lib/libdfftw_threads.la
-/usr/lib/libdfftw_threads.so
-/usr/lib/libdrfftw.a
-/usr/lib/libdrfftw.la
-/usr/lib/libdrfftw.so
-/usr/lib/libdrfftw_threads.a
-/usr/lib/libdrfftw_threads.la
-/usr/lib/libdrfftw_threads.so
-/usr/lib/libsfftw.a
-/usr/lib/libsfftw.la
-/usr/lib/libsfftw.so
-/usr/lib/libsfftw_threads.a
-/usr/lib/libsfftw_threads.la
-/usr/lib/libsfftw_threads.so
-/usr/lib/libsrfftw.a
-/usr/lib/libsrfftw.la
-/usr/lib/libsrfftw.so
-/usr/lib/libsrfftw_threads.a
-/usr/lib/libsrfftw_threads.la
-/usr/lib/libsrfftw_threads.so
+%post devel
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun devel
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%changelog
-* Tue Aug 03  1999 Dax Kelson <dax@gurulabs.com>
-- Set prefix to /usr so there is no need to futz with ldconfig
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*
+%{_infodir}/fftw.info*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.056925 seconds and 4 git commands to generate.