--- /dev/null
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Math
+%define pnam FFT
+Summary: Math::FFT - Perl module to calculate Fast Fourier Transforms
+Summary(pl): Math::FFT - modu³ Perla do obliczania szybkiej transformaty Fouriera
+Name: perl-Math-FFT
+Version: 0.25
+Release: 1
+# same as perl
+License: GPL or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c44ab37a4d21ffa57ea49c01801106fe
+BuildRequires: perl-devel >= 5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module implements some algorithms for calculating Fast Fourier
+Transforms for one-dimensional data sets of size 2^n.
+
+%description -l pl
+Ten modu³ zawiera implementacje algorytmów do obliczania szybkiej
+transformaty Fouriera dla jednowymiarowych zbiorów danych rozmiaru
+2^n.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+
+%{__make} \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Math/FFT.pm
+%dir %{perl_vendorarch}/auto/Math/FFT
+%{perl_vendorarch}/auto/Math/FFT/FFT.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/FFT/FFT.so
+%{_mandir}/man3/*