8320bf6
Name:           fftw2
8320bf6
Version:        2.1.5
92a007d
Release:        19%{?dist}
8320bf6
Summary:        Fast Fourier Transform library
8320bf6
%define 	real_name fftw
8320bf6
8320bf6
Group:          System Environment/Libraries
e9aec5e
License:        GPLv2+
8320bf6
URL:            http://www.fftw.org/
8320bf6
Source0:        ftp://ftp.fftw.org/pub/fftw/fftw-%{version}.tar.gz
8320bf6
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8320bf6
8320bf6
BuildRequires:  gcc-gfortran
8320bf6
8320bf6
%description
8320bf6
FFTW is a C subroutine library for computing the Discrete Fourier Transform
8320bf6
(DFT) in one or more dimensions, of both real and complex data, and of
8320bf6
arbitrary input size. We believe that FFTW, which is free software, should
8320bf6
become the FFT library of choice for most applications. Our benchmarks,
8320bf6
performed on on a variety of platforms, show that FFTW's performance is
8320bf6
typically superior to that of other publicly available FFT software.
8320bf6
8320bf6
8320bf6
%package        devel
8320bf6
Summary:        Headers, libraries and docs for the FFTW library
8320bf6
Group:          Development/Libraries
8320bf6
Requires:       %{name} = %{version}-%{release}
8320bf6
8320bf6
%description    devel
8320bf6
FFTW is a C subroutine library for computing the Discrete Fourier Transform
8320bf6
(DFT) in one or more dimensions, of both real and complex data, and of
8320bf6
arbitrary input size. We believe that FFTW, which is free software, should
8320bf6
become the FFT library of choice for most applications. Our benchmarks,
8320bf6
performed on on a variety of platforms, show that FFTW's performance is
8320bf6
typically superior to that of other publicly available FFT software.
8320bf6
8320bf6
This package contains header files and development libraries needed to
8320bf6
develop programs using the FFTW fast Fourier transform library.
8320bf6
8320bf6
8320bf6
8320bf6
%prep
8320bf6
%setup -q -c %{real_name}-%{version}
1b31053
mv %{real_name}-%{version} single
8320bf6
cp -a single double
8320bf6
8320bf6
8320bf6
8320bf6
%build
8320bf6
pushd double
8320bf6
	%ifarch i386
8320bf6
		%configure \
8320bf6
			--enable-shared \
8320bf6
			--enable-threads \
8320bf6
			--enable-i386-hacks
8320bf6
	%else
8320bf6
		%configure \
8320bf6
			--enable-shared \
8320bf6
			--enable-threads
8320bf6
	%endif
8320bf6
	make %{?_smp_mflags}
8320bf6
popd
8320bf6
pushd single
8320bf6
	%configure \
8320bf6
		--enable-shared \
8320bf6
		--enable-type-prefix \
8320bf6
		--enable-threads \
8320bf6
		--enable-float
8320bf6
	make %{?_smp_mflags}
8320bf6
popd
8320bf6
8320bf6
8320bf6
8320bf6
%install
8320bf6
rm -rf ${RPM_BUILD_ROOT}
8320bf6
pushd double
8320bf6
	make install DESTDIR=${RPM_BUILD_ROOT}
8320bf6
	cp -a AUTHORS COPYING COPYRIGHT ChangeLog NEWS README* TODO ../
8320bf6
	cp -a FAQ/fftw-faq.html/ doc/ ../
8320bf6
popd
8320bf6
pushd single
8320bf6
	make install DESTDIR=${RPM_BUILD_ROOT}
8320bf6
popd
8320bf6
rm -f doc/Makefile*
8320bf6
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
e599b41
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
8320bf6
8320bf6
8320bf6
8320bf6
%clean
8320bf6
rm -rf ${RPM_BUILD_ROOT}
8320bf6
8320bf6
8320bf6
8320bf6
%post -p /sbin/ldconfig
8320bf6
8320bf6
8320bf6
8320bf6
%postun -p /sbin/ldconfig
8320bf6
8320bf6
8320bf6
8320bf6
%files
8320bf6
%defattr(-,root,root,-)
8320bf6
%doc AUTHORS COPYING COPYRIGHT ChangeLog NEWS README* TODO
8320bf6
%{_libdir}/*.so.*
8320bf6
8320bf6
%files devel
8320bf6
%defattr(-,root,root,-)
8320bf6
%doc  doc/
8320bf6
%{_includedir}/*
8320bf6
%{_libdir}/*.a
8320bf6
%{_libdir}/*.so
8320bf6
%{_infodir}/*
8320bf6
8320bf6
8320bf6
8320bf6
%changelog
92a007d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-19
92a007d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
92a007d
e599b41
* Sun Mar 01 2009 Robert Scheck <robert@fedoraproject.org> - 2.1.5-18
e599b41
- Removed the shipping and owning of %%{_infodir}/dir file
e599b41
3f74637
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-17
3f74637
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3f74637
6bba85c
* Thu Feb 14 2008 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-16
6bba85c
- Rebuild for gcc 4.3
6bba85c
e9aec5e
* Tue Aug 28 2007 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-15
e9aec5e
- License fix, rebuild for devel (F8).
e9aec5e
f610701
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-14
f610701
- Rebuild for F7.
f610701
b4a6df0
* Tue Aug 29 2006 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-13
b4a6df0
- Rebuild for FE6
b4a6df0
b4a6df0
* Sat Feb 18 2006 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-12
e7a2cda
- Rebuild for FC-5.
e7a2cda
b4a6df0
* Wed Feb  1 2006 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-11
1b31053
- Fix incomplete substitution
1b31053
b4a6df0
* Wed Feb  1 2006 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-10
616b390
- Add disttag to release.
616b390
b4a6df0
* Wed Feb  1 2006 José Matos <jamatos[AT]fc.up.pt> - 2.1.5-9
8320bf6
- Rename package to fftw2.
8320bf6
8320bf6
* Mon May 23 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.1.5-8
8320bf6
- BuildReq gcc-gfortran (#156490).
8320bf6
8320bf6
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 2.1.5-7
8320bf6
- rebuild on all arches
8320bf6
- buildrequire compat-gcc-32-g77
8320bf6
8320bf6
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
8320bf6
- rebuilt
8320bf6
8320bf6
* Wed Nov 10 2004 Matthias Saou <http://freshrpms.net/> 2.1.5-5
8320bf6
- Bump release to provide Extras upgrade path.
8320bf6
8320bf6
* Tue Apr 06 2004 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.5-0.fdr.4
8320bf6
- BuildReq gcc-g77.
8320bf6
8320bf6
* Mon Sep 22 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.5-0.fdr.3
8320bf6
- Dropped post/preun scripts for info.
8320bf6
8320bf6
* Wed Sep 17 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.5-0.fdr.2
8320bf6
- Remove aesthetic comments.
8320bf6
- buildroot -> RPM_BUILD_ROOT.
8320bf6
- post/preun for info files.
8320bf6
8320bf6
* Mon Apr 07 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.5-0.fdr.1
8320bf6
- Updated to 2.1.5.
8320bf6
8320bf6
* Tue Apr 01 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 0:2.1.4-0.fdr.2
8320bf6
- Added Epoch:0.
8320bf6
- Added ldconfig to post and postun.
8320bf6
8320bf6
* Sun Mar 22 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 2.1.4-0.fdr.1
8320bf6
- Updated to 2.1.4.
8320bf6
8320bf6
* Fri Mar 14 2003 Phillip Compton <pcompton[AT]proteinmedia.com> - 2.1.3-0.fdr.1
8320bf6
- Fedorafied.
8320bf6
8320bf6
* Mon Oct 21 2002 Matthias Saou <matthias.saou@est.une.marmotte.net>
8320bf6
- Initial RPM release.
8320bf6