Name: nceplibs-bacio Version: 2.6.0 Release: 1%{?dist} Summary: This library performs binary I/O for the NCEP models. License: LGPL-3.0-only URL: https://github.com/NOAA-EMC/NCEPLIBS-bacio Source0: https://github.com/NOAA-EMC/NCEPLIBS-bacio/archive/refs/tags/v%{version}.tar.gz Source1: bacio.pc.in Patch1: 001-fortran-module-location-option.patch BuildRequires: cmake BuildRequires: gcc-gfortran %description This library performs binary I/O for the NCEP models, processing unformatted byte-addressable data records, and transforming the little endian files and big endian files. %package devel Summary: Development files for NCEPLIBS-bacio Requires: %{name}%{?_isa} = %{version}-%{release} Requires: gcc-gfortran%{?_isa} Requires: pkgconfig %description devel Headers and CMake configuration files needed to develop software against NCEPLIBS-bacio. %prep %autosetup -n NCEPLIBS-bacio-%{version} -p0 %build %cmake \ -DFMODDIR=%{_fmoddir} \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF %cmake_build sed 's|FMODDIR|%{_fmoddir}|g' %{SOURCE1} \ | sed 's|VERSION|%{version}|g' \ > bacio.pc %install %cmake_install install -Dpm 0644 bacio.pc %{buildroot}%{_libdir}/pkgconfig/bacio.pc %files %license LICENSE.md %doc README.md %{_libdir}/libbacio.so.* %files devel %{_fmoddir}/*.mod %{_libdir}/cmake/bacio %{_libdir}/libbacio.so %{_libdir}/pkgconfig/bacio.pc %changelog * Sun Jan 04 2026 Benjamin Cook - 2.6.0-1 - Initial package