File mingw64-fftw3.spec of Package mingw64-fftw3

#
# spec file for package mingw64-fftw3
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw64-fftw3
Version:        3.3.10
Release:        0
Summary:        Discrete Fourier Transform (DFT) C Subroutine Library
License:        GPL-2.0-or-later
Group:          Productivity/Scientific/Math
Url:            https://www.fftw.org
Source:         https://www.fftw.org/fftw-%{version}.tar.gz
#!BuildIgnore:  post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
%_mingw64_package_header_debug
BuildArch:      noarch

%description
FFTW is a C subroutine library for computing the Discrete Fourier
Transform (DFT) in one or more dimensions, of both real and complex
data, and of arbitrary input size.

%package -n mingw64-libfftw3-3
Summary:        Discrete Fourier Transform (DFT) C Subroutine Library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libfftw3-3
FFTW is a C subroutine library for computing the Discrete Fourier
Transform (DFT) in one or more dimensions, of both real and complex
data, and of arbitrary input size.

%package devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%_mingw64_debug_package

%prep
%setup -q -n fftw-%{version}

%build
mkdir sse sse2
pushd sse2
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--disable-alloca \
--with-our-malloc16 \
--enable-threads --with-combined-threads \
--enable-portable-binary \
--enable-sse2
popd

pushd sse
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
--enable-shared --disable-static \
--disable-alloca \
--with-our-malloc16 \
--enable-threads --with-combined-threads \
--enable-portable-binary \
--enable-float \
--enable-sse
popd

for i in sse sse2; do (cd $i && make %{?_smp_mflags} || make); done

%install
for i in sse sse2; do (cd $i && make DESTDIR=%{buildroot} install); done

# remove unneeded files
rm -f %{buildroot}%{_mingw64_infodir}/dir
# remove Makefiles in doc directory at last
find doc -name 'Makefile*' | xargs rm

%files -n mingw64-libfftw3-3
%{_mingw64_bindir}/libfftw3-3.dll
%{_mingw64_bindir}/libfftw3f-3.dll

%files devel
%license COPYING COPYRIGHT
%doc ChangeLog NEWS README
%doc doc/*
%{_mingw64_mandir}/man1/fftw*
%{_mingw64_infodir}/fftw3.info*
%{_mingw64_bindir}/fftw-wisdom-to-conf
%{_mingw64_bindir}/fftw-wisdom.exe
%{_mingw64_bindir}/fftwf-wisdom.exe
%{_mingw64_includedir}/fftw*
%{_mingw64_libdir}/libfftw3*.dll.a
%{_mingw64_libdir}/pkgconfig/fftw3.pc
%{_mingw64_libdir}/pkgconfig/fftw3f.pc
%{_mingw64_libdir}/cmake/fftw3

%changelog
openSUSE Build Service is sponsored by