]> git.pld-linux.org Git - packages/fftw.git/blobdiff - fftw.spec
- kill Icon: field (support for these is obsolete says jbj)
[packages/fftw.git] / fftw.spec
index 304a913ba158f27ab21f8adced4b1536a1e711be..c22351146a648f2d661e37f333627ebf22219995 100644 (file)
--- a/fftw.spec
+++ b/fftw.spec
@@ -1,15 +1,18 @@
+#
+# 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.5
-Release:       1
+Release:       3
 License:       GPL
 Group:         Libraries
 Source0:       ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz
 # Source0-md5: 8d16a84f3ca02a785ef9eb36249ba433
 Patch0:                %{name}-info.patch
-Icon:          fftw-logo-thumb.gif
 URL:           http://www.fftw.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -21,15 +24,15 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 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 double precision FFTW
-uniprocessor and threads libraries.
+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 podwójnej precyzji dla architektur
+zawiera wersje FFTW o pojedyñczej i podwójnej precyzji dla architektur
 jednoprocesorowych oraz z obs³ug± w±tków.
 
 %description -l pt_BR
@@ -41,32 +44,32 @@ suporte a threads, normal e dupla precis
 normal tem um prefixo "s").
 
 %package devel
-Summary:       Headers, libraries & docs for fftw
-Summary(pl):   Nag³ówki, biblioteki oraz dokumentacja do fftw
-Summary(pt_BR):        headers, bibliotecas e documentação do pacote 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, dokumentacjê oraz
-biblioteki niezbêdne do tworzenia programów u¿ywaj±cych biblioteki
-FFTW (fast Fourier transform library).
+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, headers e bibliotecas adicionais para
-desenvolver programas usando a FFTW.
+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.
@@ -86,6 +89,23 @@ Este pacote cont
 %{__aclocal}
 %{__autoconf}
 %{__automake}
+
+%if %{with single}
+%configure \
+%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 \
@@ -99,9 +119,14 @@ Este pacote cont
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%{?with_single:cp -ar single $RPM_BUILD_ROOT}
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
@@ -111,17 +136,14 @@ rm -rf $RPM_BUILD_ROOT
 %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
-
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/lib*.la
 %attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
 %{_includedir}/*
 %{_infodir}/fftw.info*
 
This page took 0.069252 seconds and 4 git commands to generate.