Name: nceplibs-crtm Version: 2.3.0 Release: 1%{?dist} Summary: Fork of CRTM being used in UFS build. License: LGPL-3.0-only URL: https://github.com/NOAA-EMC/EMC_crtm Source0: https://github.com/NOAA-EMC/EMC_crtm/archive/refs/tags/v%{version}.tar.gz Source1: crtm.pc.in Patch1: 001-fortran-module-location-option.patch Patch2: 002-standard-libs-location.patch Patch3: 003-build-shared-libraries.patch BuildRequires: cmake BuildRequires: gcc-gfortran %description Fork of CRTM being used in UFS build. %package devel Summary: Development files for NCEPLIBS-crtm Requires: %{name}%{?_isa} = %{version}-%{release} Requires: gcc-gfortran%{?_isa} Requires: pkgconfig %description devel Headers and CMake configuration files needed to develop software against NCEPLIBS-crtm. %prep %autosetup -n EMC_crtm-%{version} -p0 %build %cmake \ -DFMODDIR=%{_fmoddir} \ -DBUILD_SHARED_LIBS=ON %cmake_build sed \ -e "s|FMODDIR|%{_fmoddir}/crtm|g" \ -e "s|VERSION|%{version}|g" \ %{SOURCE1} > crtm.pc %install %cmake_install install -Dpm 0644 crtm.pc %{buildroot}%{_libdir}/pkgconfig/crtm.pc %files %license LICENSE.md %doc README.md %{_libdir}/libcrtm.so.* %files devel %{_fmoddir}/crtm/*.mod %dir %{_libdir}/cmake/crtm/ %{_libdir}/cmake/crtm/*.cmake %{_libdir}/libcrtm.so %{_libdir}/pkgconfig/crtm.pc %changelog * Sat Jan 10 2026 Benjamin Cook - 2.3.0-1 - Initial package