From 5aa17fe4b97b087d8f7d437ef2383571ac759cca Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 18:18:15 +0000 Subject: automatic import of python-pyfftw --- .gitignore | 1 + python-pyfftw.spec | 171 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 173 insertions(+) create mode 100644 python-pyfftw.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..587e250 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pyFFTW-0.13.1.tar.gz diff --git a/python-pyfftw.spec b/python-pyfftw.spec new file mode 100644 index 0000000..0cdd7da --- /dev/null +++ b/python-pyfftw.spec @@ -0,0 +1,171 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyFFTW +Version: 0.13.1 +Release: 1 +Summary: A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms. +License: BSD License +URL: https://github.com/pyFFTW/pyFFTW +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/9f/bc/7376df0393e816b60bdc627fc8f653706f4caa95bcf79d07302a672f893e/pyFFTW-0.13.1.tar.gz + +Requires: python3-numpy +Requires: python3-numpy +Requires: python3-dask[array] +Requires: python3-scipy + +%description + +pyFFTW is a pythonic wrapper around `FFTW `_, the +speedy FFT library. The ultimate aim is to present a unified interface for all +the possible transforms that FFTW can perform. + +Both the complex DFT and the real DFT are supported, as well as arbitrary +axes of arbitrary shaped and strided arrays, which makes it almost +feature equivalent to standard and real FFT functions of ``numpy.fft`` +(indeed, it supports the ``clongdouble`` dtype which ``numpy.fft`` does not). + +Operating FFTW in multithreaded mode is supported. + +A comprehensive unittest suite can be found with the source on the github +repository. + +To build for windows from source, download the fftw dlls for your system +and the header file from here (they're in a zip file): +http://www.fftw.org/install/windows.html and place them in the pyfftw +directory. The files are libfftw3-3.dll, libfftw3l-3.dll, libfftw3f-3.dll +and libfftw3.h. + +Under linux, to build from source, the FFTW library must be installed already. +This should probably work for OSX, though I've not tried it. + +Numpy is a dependency for both. + +The documentation can be found +`here `_, and the source +is on `github `_. + + + + +%package -n python3-pyFFTW +Summary: A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms. +Provides: python-pyFFTW +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pyFFTW + +pyFFTW is a pythonic wrapper around `FFTW `_, the +speedy FFT library. The ultimate aim is to present a unified interface for all +the possible transforms that FFTW can perform. + +Both the complex DFT and the real DFT are supported, as well as arbitrary +axes of arbitrary shaped and strided arrays, which makes it almost +feature equivalent to standard and real FFT functions of ``numpy.fft`` +(indeed, it supports the ``clongdouble`` dtype which ``numpy.fft`` does not). + +Operating FFTW in multithreaded mode is supported. + +A comprehensive unittest suite can be found with the source on the github +repository. + +To build for windows from source, download the fftw dlls for your system +and the header file from here (they're in a zip file): +http://www.fftw.org/install/windows.html and place them in the pyfftw +directory. The files are libfftw3-3.dll, libfftw3l-3.dll, libfftw3f-3.dll +and libfftw3.h. + +Under linux, to build from source, the FFTW library must be installed already. +This should probably work for OSX, though I've not tried it. + +Numpy is a dependency for both. + +The documentation can be found +`here `_, and the source +is on `github `_. + + + + +%package help +Summary: Development documents and examples for pyFFTW +Provides: python3-pyFFTW-doc +%description help + +pyFFTW is a pythonic wrapper around `FFTW `_, the +speedy FFT library. The ultimate aim is to present a unified interface for all +the possible transforms that FFTW can perform. + +Both the complex DFT and the real DFT are supported, as well as arbitrary +axes of arbitrary shaped and strided arrays, which makes it almost +feature equivalent to standard and real FFT functions of ``numpy.fft`` +(indeed, it supports the ``clongdouble`` dtype which ``numpy.fft`` does not). + +Operating FFTW in multithreaded mode is supported. + +A comprehensive unittest suite can be found with the source on the github +repository. + +To build for windows from source, download the fftw dlls for your system +and the header file from here (they're in a zip file): +http://www.fftw.org/install/windows.html and place them in the pyfftw +directory. The files are libfftw3-3.dll, libfftw3l-3.dll, libfftw3f-3.dll +and libfftw3.h. + +Under linux, to build from source, the FFTW library must be installed already. +This should probably work for OSX, though I've not tried it. + +Numpy is a dependency for both. + +The documentation can be found +`here `_, and the source +is on `github `_. + + + + +%prep +%autosetup -n pyFFTW-0.13.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pyFFTW -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 0.13.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..ded0ce8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +4ec672c53ae63593b284369a8bbf4a3b pyFFTW-0.13.1.tar.gz -- cgit v1.2.3