Name: nceplibs-sfcio Version: 1.4.2 Release: 1%{?dist} Summary: This library provides an API to read the NCEP Spectral model surface files. License: LGPL-3.0-only URL: https://github.com/NOAA-EMC/NCEPLIBS-sfcio Source0: https://github.com/NOAA-EMC/NCEPLIBS-sfcio/archive/refs/tags/v%{version}.tar.gz Source1: sfcio.pc.in Patch1: 001-fortran-module-location-option.patch Patch2: 002-build-shared-libraries.patch BuildRequires: cmake BuildRequires: gcc-gfortran %description The spectral model is on a sunset track at NCEP and is not being further developed but is still used for climate forecasts and ensemble forecasts. The NCEPLIBS-sfcio library was originally part of the GFS source code and was extracted to allow development of utilities that read GFS surface files. %package devel Summary: Development files for NCEPLIBS-sfcio Requires: %{name}%{?_isa} = %{version}-%{release} Requires: cmake Requires: gcc-gfortran%{?_isa} Requires: pkgconfig %description devel Headers and CMake configuration files needed to develop software against NCEPLIBS-sfcio. %prep %autosetup -n NCEPLIBS-sfcio-%{version} -p0 %build %cmake \ -DFMODDIR=%{_fmoddir} \ -DBUILD_SHARED_LIBS=ON \ -DENABLE_TESTS=OFF %cmake_build sed \ -e "s|FMODDIR|%{_fmoddir}|g" \ -e "s|VERSION|%{version}|g" \ %{SOURCE1} > sfcio.pc %install %cmake_install install -Dpm 0644 sfcio.pc %{buildroot}%{_libdir}/pkgconfig/sfcio.pc %files %license LICENSE.md %doc README.md %{_libdir}/libsfcio.so.* %files devel %{_fmoddir}/*.mod %dir %{_libdir}/cmake/sfcio/ %{_libdir}/cmake/sfcio/*.cmake %{_libdir}/libsfcio.so %{_libdir}/pkgconfig/sfcio.pc %changelog * Thu Jan 15 2026 Benjamin Cook - 1.4.2-1 - Initial package