b380bd8
%global	module	anfft
b380bd8
b380bd8
Summary:	ANFFT is an FFT package for Python, based on FFTW
b380bd8
Name:		python-%{module}
b380bd8
Version:	0.1
b380bd8
Release:	3%{?dist}
b380bd8
Source0:	http://anfft.googlecode.com/files/%{module}-%{version}.tar.gz
b380bd8
License:	GPLv3+
b380bd8
Group:		Development/Languages
b380bd8
URL:		http://anfft.googlecode.com/
b380bd8
b380bd8
BuildRequires:	numpy fftw-libs fftw-libs-threads python2
b380bd8
Requires:	numpy fftw-libs fftw-libs-threads python2
b380bd8
BuildArch:	noarch
b380bd8
b380bd8
b380bd8
%description
b380bd8
ANFFT is intended to be used in situations where large numbers
b380bd8
of expensive FFTs must be performed, and for which the speed 
b380bd8
of the built-in NumPy or SciPy functions has been found insufficient.
b380bd8
b380bd8
By default, ANFFT provides immediate results by using FFTW's 
b380bd8
"estimate" mode, which does not require tuning and is still very fast. 
b380bd8
However, each high-level function provides a keyword named "measure" 
b380bd8
which will invoke the full FFTW planning machinery. 
b380bd8
FFTW will investigate which implementations are fastest on your 
b380bd8
hardware for the given problem size, and ANFFT will transparently 
b380bd8
cache this information to speed up later transforms on arrays of 
b380bd8
the same size and type. Accumulated FFTW "wisdom" about which 
b380bd8
methods work best is stored across Python sessions in a configuration
b380bd8
file in ~/.anfft
b380bd8
b380bd8
%prep
b380bd8
%setup -q -n %{module}-%{version}
b380bd8
b380bd8
%build
b380bd8
python setup.py build 
b380bd8
b380bd8
%check
b380bd8
libdir=build/lib
b380bd8
export PYTHONPATH=`pwd`/build/$libdir
b380bd8
echo "import anfft; anfft.test()" > test.py
b380bd8
python test.py
b380bd8
b380bd8
%install
b380bd8
b380bd8
python setup.py install -O1 --skip-build  --root=%{buildroot}
b380bd8
b380bd8
%files
b380bd8
%doc COPYING.txt README.txt
b380bd8
%{python_sitelib}/anfft/
b380bd8
%{python_sitelib}/anfft-%{version}-py*.egg-info
b380bd8
b380bd8
%changelog
b380bd8
* Thu Feb 2 2012 Thibault North <tnorth@fedoraproject.org> - 0.1-3
b380bd8
- Fix requires again (thanks oget)
b380bd8
b380bd8
* Mon Jan 30 2012 Thibault North <tnorth@fedoraproject.org> - 0.1-2
b380bd8
- Various fixes (requires, cleaning) 
b380bd8
b380bd8
* Sun Jan 8 2012  Thibault North <tnorth@fedoraproject.org> - 0.1-1
b380bd8
- Initial import