]> git.pld-linux.org Git - packages/fftw.git/blob - fftw.spec
- updated to 2.1.3,
[packages/fftw.git] / fftw.spec
1 Summary:        fast fourier transform library
2 Name:           fftw
3 Version:        2.1.3
4 Release:        1
5 Copyright:      GPL
6 Group:          Libraries
7 Source:         ftp://ftp.fftw.org/pub/fftw/%{name}-%{version}.tar.gz
8 Patch:          fftw-info.patch
9 Icon:           fftw-logo-thumb.gif
10 URL:            http://www.fftw.org/
11 Prereq:         /usr/sbin/fix-info-dir
12 BuildRoot:      /tmp/%{name}-%{version}-root
13
14 %description
15 FFTW is a collection of fast C routines for computing the Discrete Fourier
16 Transform in one or more dimensions. It includes complex, real, and
17 parallel transforms, and can handle arbitrary array sizes efficiently. This
18 RPM package includes both the double- and single-precision FFTW uniprocessor
19 and threads libraries.
20
21 %package devel
22 Summary:        headers, libraries, & docs for fftw
23 Group:          Development/Libraries
24 Requires:       %{name} = %{version}
25
26 %description devel
27 This package contains the additional header files, documentation, and
28 libraries you need to develop programs using the FFTW fast fourier transform
29 library.
30
31 %package static
32 Summary:        Static fftw libraries
33 Group:          Development/Libraries
34 Requires:       %{name}-devel = %{version}
35
36 %description static
37 Static fftw libraries.
38
39 %prep
40 %setup -q
41 %patch -p1
42
43 %build
44 LDFLAGS="-s"; export LDFLAGS
45 %configure \
46 %ifarch i386 i486 i586 i686
47         --enable-i386-hacks \
48 %endif
49         --enable-shared \
50         --enable-type-prefix \
51         --enable-threads
52
53 make
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 make install DESTDIR=$RPM_BUILD_ROOT
59
60 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
61
62 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/fftw.info*
63
64 %post devel
65 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
66
67 %postun devel
68 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %attr(755,root,root) %{_libdir}/lib*.so.*.*
75
76 %files devel
77 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_libdir}/lib*.la
79 %attr(755,root,root) %{_libdir}/lib*.so
80 %{_includedir}/*
81 %{_infodir}/fftw.info*
82
83 %files static
84 %defattr(644,root,root,755)
85 %{_libdir}/lib*.a
This page took 0.039831 seconds and 3 git commands to generate.