# Default toolchain macro %{!?toolchain:%global toolchain gcc} Name: nceplibs-ip Version: 5.4.0 Release: 1%{?dist} Summary: The NCEP general interpolation library contains Fortran 90 subprograms to be used for interpolating between nearly all grids used at NCEP. License: LGPL-3.0-only URL: https://github.com/NOAA-EMC/NCEPLIBS-ip Source0: https://github.com/NOAA-EMC/NCEPLIBS-ip/archive/refs/tags/v%{version}.tar.gz Source1: nceplibs-ip.pc Patch0: 0001-use-standard-include-directory.patch BuildRequires: cmake %if "%{toolchain}" == "clang" BuildRequires: clang BuildRequires: flang %elif "%{toolchain}" == "gcc" BuildRequires: gcc BuildRequires: gfortran %else BuildRequires: gcc BuildRequires: gfortran %endif BuildRequires: pkgconfig(flexiblas) %description The NCEP general interpolation library contains Fortran 90 subprograms to be used for interpolating between nearly all grids used at NCEP. The library is particularly efficient when interpolating many fields at one time. It also contains routines for spectral transforms and other processing, including those previously contained in the NCEPLIBS-sp library. This is part of the NCEPLIBS project. There are currently six interpolation methods available in the library: - bilinear - bicubic - neighbor - budget - spectral - neighbor-budget %package devel Summary: Development files for NCEPLIBS-ip Requires: %{name} = %{version}-%{release} %description devel Headers, Fortran module files, and CMake configuration files needed to develop software against NCEPLIBS-ip. %prep %autosetup -n NCEPLIBS-ip-%{version} -p0 %build %if "%{toolchain}" == "clang" FC='flang' %elif "%{toolchain}" == "gcc" FC='gfortran' %else FC='gfortran' %endif %cmake %cmake_build %install %cmake_install install -Dpm 0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/nceplibs-ip.pc %files %license LICENSE.md %doc README.md %{_libdir}/libip_*.so.* %files devel %{_includedir}/ip4 %{_includedir}/ipd %{_libdir}/cmake/ip %{_libdir}/libip_*.so %{_libdir}/pkgconfig/nceplibs-ip.pc %changelog * Tue Jul 22 2025 Benjamin Cook - Initial package