]>
Commit | Line | Data |
---|---|---|
77e12e1d | 1 | Summary: Fast Fourier Transform C++ Header Class for FFTW3 Library |
ac6bc60e | 2 | Summary(pl.UTF-8): Biblioteka klas C++ z funkcjami szybkiej transformaty Fouriera |
77e12e1d | 3 | Name: fftw++ |
7aad1cef | 4 | Version: 1.03 |
77e12e1d | 5 | Release: 0.1 |
6 | License: GPL | |
7 | Group: Libraries | |
8 | Source0: http://www.math.ualberta.ca/imaging/fftw++/%{name}-%{version}.tar.gz | |
7aad1cef | 9 | # Source0-md5: 334630830d055016cd4079349c166cbc |
77b67993 | 10 | Source1: http://www.math.ualberta.ca/~bowman/Array.h |
77e12e1d | 11 | URL: http://www.math.ualberta.ca/imaging/fftw++/ |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
dbf21b80 | 14 | BuildRequires: fftw3-devel |
77b67993 | 15 | BuildRequires: libstdc++-devel |
dbf21b80 | 16 | BuildRequires: libtool |
77e12e1d | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
77b67993 | 20 | FFTW++ is a C++ header class for version 3 of the highly optimized |
dbf21b80 | 21 | FFTW Fast Fourier Transform library. |
77e12e1d | 22 | |
508c1b65 JR |
23 | %description -l pl.UTF-8 |
24 | FFTW++ jest biblioteką klas napisaną w C++ dla wersji 3 biblioteki | |
77b67993 | 25 | szybkiej transformaty Fouriera FFTW. |
77e12e1d | 26 | |
27 | %package devel | |
28 | Summary: Development files for fftw++ | |
ac6bc60e | 29 | Summary(pl.UTF-8): Pliki programistyczne do fftw++ |
77e12e1d | 30 | Group: Development/Libraries |
31 | Requires: %{name} = %{version}-%{release} | |
dbf21b80 JB |
32 | Requires: fftw3-devel |
33 | Requires: libstdc++-devel | |
77e12e1d | 34 | |
77e12e1d | 35 | %description devel |
36 | This package contains the files you need to develop programs using the | |
dbf21b80 | 37 | FFTW++ (Fast Fourier Transform library). |
77e12e1d | 38 | |
508c1b65 JR |
39 | %description devel -l pl.UTF-8 |
40 | Ten pakiet zawiera pliki potrzebne do tworzenia programów używających | |
41 | biblioteki FFTW++ (wykonującej szybką transformatę Fouriera). | |
77e12e1d | 42 | |
dbf21b80 JB |
43 | %package static |
44 | Summary: Static fftw++ library | |
ac6bc60e | 45 | Summary(pl.UTF-8): Statyczna biblioteka fftw++ |
dbf21b80 JB |
46 | Group: Development/Libraries |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static fftw++ library. | |
51 | ||
508c1b65 | 52 | %description static -l pl.UTF-8 |
dbf21b80 JB |
53 | Statyczna biblioteka fftw++. |
54 | ||
77b67993 JB |
55 | %package examples |
56 | Summary: Example files for fftw++ | |
ac6bc60e | 57 | Summary(pl.UTF-8): Przykłady programistyczne do fftw++ |
77b67993 | 58 | Group: Development/Libraries |
dbf21b80 | 59 | Requires: %{name}-devel = %{version}-%{release} |
77e12e1d | 60 | |
61 | %description examples | |
77b67993 | 62 | Examples how to use fftw++. |
77e12e1d | 63 | |
508c1b65 JR |
64 | %description examples -l pl.UTF-8 |
65 | Przykłady do fftw++. | |
77e12e1d | 66 | |
67 | %prep | |
77b67993 | 68 | %setup -q |
77e12e1d | 69 | |
dbf21b80 JB |
70 | %build |
71 | libtool --mode=compile --tag CXX %{__cxx} %{rpmcxxflags} -fPIC -o fftw++.lo -c fftw++.cc | |
72 | libtool --mode=link --tag CXX %{__cxx} -o libfftw++.la -rpath %{_libdir} fftw++.lo -lfftw3 | |
73 | ||
77e12e1d | 74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
dbf21b80 JB |
76 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/fftw++,%{_examplesdir}/%{name}-%{version}} |
77 | ||
78 | libtool --mode=install install libfftw++.la $RPM_BUILD_ROOT%{_libdir} | |
77e12e1d | 79 | |
dbf21b80 | 80 | install fftw++.h $RPM_BUILD_ROOT%{_includedir}/fftw++ |
77e12e1d | 81 | install %{SOURCE1} $RPM_BUILD_ROOT%{_includedir}/fftw++ |
dbf21b80 | 82 | install example*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
77e12e1d | 83 | |
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
dbf21b80 JB |
87 | %post -p /sbin/ldconfig |
88 | %postun -p /sbin/ldconfig | |
89 | ||
77e12e1d | 90 | %files |
91 | %defattr(644,root,root,755) | |
dbf21b80 JB |
92 | %doc README |
93 | %attr(755,root,root) %{_libdir}/libfftw++.so.*.*.* | |
77e12e1d | 94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
dbf21b80 JB |
97 | %attr(755,root,root) %{_libdir}/libfftw++.so |
98 | %{_libdir}/libfftw++.la | |
77e12e1d | 99 | %{_includedir}/fftw++ |
100 | ||
dbf21b80 JB |
101 | %files static |
102 | %defattr(644,root,root,755) | |
103 | %{_libdir}/libfftw++.a | |
104 | ||
77e12e1d | 105 | %files examples |
106 | %defattr(644,root,root,755) | |
77b67993 | 107 | %{_examplesdir}/%{name}-%{version} |