Name: nceplibs-sigio Version: 2.3.3 Release: 1%{?dist} Summary: This library provides an Application Program Interface for performing I/O on the sigma restart file of the global spectral model. License: LGPL-3.0-only URL: https://github.com/NOAA-EMC/NCEPLIBS-sigio Source0: https://github.com/NOAA-EMC/NCEPLIBS-sigio/archive/refs/tags/v%{version}.tar.gz Source1: sigio.pc.in Patch1: 001-fortran-module-location-option.patch Patch2: 002-build-shared-libraries.patch BuildRequires: cmake BuildRequires: gcc-gfortran %description This library provides an Application Program Interface for performing I/O on the sigma restart file of the global spectral model. Functions include opening, reading, writing, and closing as well as allocating and deallocating data buffers used in the transfers. The I/O performed here is sequential. The transfers are limited to header records or data records. %package devel Summary: Development files for NCEPLIBS-sigio 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-sigio. %prep %autosetup -n NCEPLIBS-sigio-%{version} -p0 %build %cmake \ -DFMODDIR=%{_fmoddir} \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF %cmake_build sed \ -e "s|FMODDIR|%{_fmoddir}|g" \ -e "s|VERSION|%{version}|g" \ %{SOURCE1} > sigio.pc %install %cmake_install install -Dpm 0644 sigio.pc %{buildroot}%{_libdir}/pkgconfig/sigio.pc %files %license LICENSE.md %doc README.md %{_libdir}/libsigio.so.* %files devel %{_fmoddir}/*.mod %dir %{_libdir}/cmake/sigio/ %{_libdir}/cmake/sigio/*.cmake %{_libdir}/libsigio.so %{_libdir}/pkgconfig/sigio.pc %changelog * Thu Jan 15 2026 Benjamin Cook - 2.3.3-1 - Initial package