Search
SailfishOS Open Build Service
>
Projects
>
home:Wikiwide
:
OpenFOAM
>
fftw3-devel
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
fftw3.spec
@@ -0,0 +1,896 @@ +# +# spec file for package fftw3 +# +# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ +# + + +%global flavor standard%{nil} + +%define bname fftw +%define BNAME FFTW +%define pname fftw3 +%define vers 3.3.8 +%define _ver 3_3_8 + +#For non HPC builds only +%ifarch ppc ppc64 +%define mpi_implem openmpi +%else +%define mpi_implem openmpi2 +%endif + +%bcond_with ringdisabled + +%if 0%{?sle_version} >= 150200 +%define DisOMPI1 ExclusiveArch: do_not_build +%endif +%if !0%{?is_opensuse:1} && 0%{?sle_version:1} && 0%{?sle_version} < 150200 +%define DisOMPI3 ExclusiveArch: do_not_build +%endif + +%if "%flavor" == "" +ExclusiveArch: do_not_build +%define package_name %pname +%endif + +# Magic for OBS Staging. Only build the flavors required by +# other packages in the ring. +%if %{with ringdisabled} + %if "%flavor" != "standard" +ExclusiveArch: do_not_build + %endif +%endif + +%if "%{flavor}" == "standard" +%define mpi_flavor standard +%bcond_without mpi +%bcond_with hpc +%bcond_without system_packages +%endif + +%if "%flavor" == "gnu-hpc" +%define compiler_family gnu +%undefine c_f_ver +%bcond_with mpi +%bcond_without hpc +%endif + +%if "%{flavor}" == "gnu-openmpi-hpc" +%{?DisOMPI1} +%global compiler_family gnu +%undefine c_f_ver +%global mpi_flavor openmpi +%define mpi_vers 1 +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%{flavor}" == "gnu-openmpi2-hpc" +%{?DisOMPI2} +%global compiler_family gnu +%undefine c_f_ver +%global mpi_flavor openmpi +%define mpi_vers 2 +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%{flavor}" == "gnu-openmpi3-hpc" +%{?DisOMPI3} +%global compiler_family gnu +%undefine c_f_ver +%global mpi_flavor openmpi +%define mpi_vers 3 +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%{flavor}" == "gnu-mvapich2-hpc" +%global compiler_family gnu +%undefine c_f_ver +%define mpi_flavor mvapich2 +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%{flavor}" == "gnu-mpich-hpc" +%global compiler_family gnu +%undefine c_f_ver +%define mpi_flavor mpich +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%flavor" == "gnu7-hpc" +%define compiler_family gnu +%define c_f_ver 7 +%bcond_with mpi +%bcond_without hpc +%endif + +%if "%{flavor}" == "gnu7-openmpi-hpc" +%{?DisOMPI1} +%global compiler_family gnu +%define c_f_ver 7 +%global mpi_flavor openmpi +%define mpi_vers 1 +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%{flavor}" == "gnu7-openmpi3-hpc" +%{?DisOMPI3} +%global compiler_family gnu +%define c_f_ver 7 +%global mpi_flavor openmpi +%define mpi_vers 3 +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%{flavor}" == "gnu7-mvapich2-hpc" +%global compiler_family gnu +%define c_f_ver 7 +%define mpi_flavor mvapich2 +%bcond_without hpc +%bcond_without mpi +%endif + +%if "%{flavor}" == "gnu7-mpich-hpc" +%global compiler_family gnu +%define c_f_ver 7 +%define mpi_flavor mpich +%bcond_without hpc +%bcond_without mpi +%endif + +# now exchange the paths +%if %{with hpc} +%{?mpi_flavor:%{bcond_without mpi}}%{!?mpi_flavor:%{bcond_with mpi}} +%{?with_hpc:%{!?compiler_family:%global compiler_family gnu}} +%{?with_mpi:%{!?mpi_flavor:%global mpi_flavor openmpi}} +%{?with_mpi:%global hpc_module_pname p%{pname}} +# needed by the hpc tools +%{hpc_init -c %compiler_family %{?c_f_ver:-v %{c_f_ver}} %{?with_mpi:-m {%mpi_flavor}} %{?mpi_ver:-V %{mpi_ver}} %{?ext:-e %{ext}}} +%define package_base %{hpc_install_path_base} +%define package_prefix %hpc_prefix +%define package_bindir %hpc_bindir +%define package_libdir %hpc_libdir +%define package_datadir %hpc_datadir +%define package_includedir %hpc_includedir +%define package_mandir %hpc_mandir +%define package_docdir %hpc_docdir +%define package_infodir %hpc_infodir +%define package_name %{hpc_package_name %_ver} +%define package_libname lib%{package_name} +%else +%define package_base %{_prefix} +%define package_prefix %{_prefix} +%define package_bindir %{_bindir} +%define package_libdir %{_libdir} +%define package_datadir %{_datadir} +%define package_includedir %{_includedir} +%define package_mandir %{_mandir} +%define package_docdir %{_docdir} +%define package_infodir %{_infodir} +%define package_name %pname%{?my_suffix} +%define package_libname lib%{pname}-3 +%endif + +Name: %package_name +BuildRequires: fdupes +BuildRequires: pkgconfig +Version: %vers +Release: 3.1 +Summary: Discrete Fourier Transform (DFT) C Subroutine Library +License: GPL-2.0-or-later +Group: Productivity/Scientific/Math