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