X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffftw.git;a=blobdiff_plain;f=fftw.spec;h=c22351146a648f2d661e37f333627ebf22219995;hp=2c2f1fe5e4af3d77605461caef9b65a17125b5d3;hb=4130acaa08aa7760ba9e39fb72b3895f57e4096a;hpb=db97658a459a64d3c592885481c7d3587e35f25b;ds=sidebyside diff --git a/fftw.spec b/fftw.spec index 2c2f1fe..c223511 100644 --- a/fftw.spec +++ b/fftw.spec @@ -1,82 +1,149 @@ -Summary: fast fourier transform library +# +# Conditional build +%bcond_without single # without single precision library +# +Summary: Fast Fourier transform library +Summary(pl): Biblioteka z funkcjami szybkiej transformaty Fouriera +Summary(pt_BR): Biblioteca fast Fourier transform Name: fftw -Version: 2.1.3 -Release: 1 -Copyright: GPL +Version: 2.1.5 +Release: 3 +License: GPL Group: Libraries -Source: ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz -Patch: fftw-info.patch -Icon: fftw-logo-thumb.gif +Source0: ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz +# Source0-md5: 8d16a84f3ca02a785ef9eb36249ba433 +Patch0: %{name}-info.patch URL: http://www.fftw.org/ -Prereq: /usr/sbin/fix-info-dir -BuildRoot: /tmp/%{name}-%{version}-root +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: texinfo +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 the single and double precision +FFTW uniprocessor and threads libraries. + +%description -l pl +FFTW jest zbiorem szybkich funkcji C do obliczania dyskretnych +transformat Fouriera w jednym lub wiêcej wymiarach. Zawiera równie¿ +zespolone, rzeczywiste oraz równoleg³e transformaty i potrafi wydajnie +radziæ sobie z tablicami o dowolnych rozmiarach. Ten pakiet RPM +zawiera wersje FFTW o pojedyñczej i podwójnej precyzji dla architektur +jednoprocesorowych oraz z obs³ug± w±tków. + +%description -l pt_BR +FFTW é uma coleção de rotinas rápidas em C para computar a Discrete +Fourier Transform em uma ou mais dimensões. Incluindo transformações +complexas, reais e paralelas, também pode manipular vetores de tamanho +arbitrário eficientemente. Esse pacote RPM inclui bibliotecas FFTW com +suporte a threads, normal e dupla precisão (Os arquivos de precisão +normal tem um prefixo "s"). %package devel -Summary: headers, libraries, & docs for fftw +Summary: Header files and development documentation for FFTW library +Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do biblioteki FFTW +Summary(pt_BR): Headers e documentação do pacote FFTW Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} %description devel -This package contains the additional header files, documentation, and -libraries you need to develop programs using the FFTW fast fourier transform -library. +This package contains the additional header files and documentation +you need to develop programs using the FFTW (fast Fourier transform +library). + +%description devel -l pl +Ten pakiet zawiera dodatkowe pliki nag³ówkowe oraz dokumentacjê do +tworzenia programów u¿ywaj±cych biblioteki FFTW (fast Fourier +transform library). + +%description devel -l pt_BR +Este pacote contém documentação e headers adicionais para desenvolver +programas usando a FFTW. %package static Summary: Static fftw libraries +Summary(pl): Statyczne biblioteki fftw +Summary(pt_BR): bibliotecas estáticas do pacote FFTW Group: Development/Libraries -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{version}-%{release} %description static Static fftw libraries. +%description static -l pl +Statyczne biblioteki fftw. + +%description static -l pt_BR +Este pacote contém as bibliotecas estáticas do pacote FFTW. + %prep %setup -q %patch -p1 %build -LDFLAGS="-s"; export LDFLAGS +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__automake} + +%if %{with single} %configure \ -%ifarch i386 i486 i586 i686 +%ifarch %{ix86} + --enable-i386-hacks \ +%endif + --enable-shared \ + --enable-threads \ + --enable-float \ + --enable-type-prefix \ + --%{!?debug:dis}%{?debug:en}able-debug + +%{__make} +%{__make} install \ + DESTDIR=$(pwd)/single +%endif + +%configure \ +%ifarch %{ix86} --enable-i386-hacks \ %endif --enable-shared \ - --enable-type-prefix \ - --enable-threads + --enable-threads \ + --%{!?debug:dis}%{?debug:en}able-debug -make +%{__make} %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT +%{?with_single:cp -ar single $RPM_BUILD_ROOT} + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* +%clean +rm -rf $RPM_BUILD_ROOT -gzip -9nf $RPM_BUILD_ROOT%{_infodir}/fftw.info* +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %post devel -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %postun devel -/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 - -%clean -rm -rf $RPM_BUILD_ROOT +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %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 +%{_libdir}/lib*.la %{_includedir}/* %{_infodir}/fftw.info*