Name: nceplibs-g2tmpl Version: 1.17.0 Release: 1%{?dist} Summary: GRIB2 codes and templates. License: LGPL-3.0-only URL: https://github.com/NOAA-EMC/NCEPLIBS-g2tmpl Source0: https://github.com/NOAA-EMC/NCEPLIBS-g2tmpl/archive/refs/tags/v%{version}.tar.gz Source1: g2tmpl.pc.in Patch1: 001-fortran-module-location-option.patch Patch2: 002-standard-grib2-table-location.patch BuildRequires: cmake BuildRequires: gcc-gfortran %description This library contains functions which serve up the GRIB2 codes and template information. %package devel Summary: Development files for NCEPLIBS-g2tmpl Requires: %{name}%{?_isa} = %{version}-%{release} Requires: gcc-gfortran%{?_isa} Requires: pkgconfig %description devel Headers and CMake configuration files needed to develop software against NCEPLIBS-g2tmpl. %prep %autosetup -n NCEPLIBS-g2tmpl-%{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} > g2tmpl.pc %install %cmake_install install -Dpm 0644 g2tmpl.pc %{buildroot}%{_libdir}/pkgconfig/g2tmpl.pc %files %license LICENSE.md %doc README.md %{_libdir}/libg2tmpl.so.* %dir %{_datadir}/g2tmpl/ %{_datadir}/g2tmpl/* %files devel %{_fmoddir}/*.mod %dir %{_libdir}/cmake/g2tmpl/ %{_libdir}/cmake/g2tmpl/*.cmake %{_libdir}/libg2tmpl.so %{_libdir}/pkgconfig/g2tmpl.pc %changelog * Fri Jan 09 2026 Benjamin Cook - 1.17.0-1 - Initial package