Name: nceplibs-g2c Version: 2.2.0 Release: 2%{?dist} Summary: This library contains C decoder/encoder routines for GRIB edition 2. License: LGPL-3.0-only URL: https://github.com/NOAA-EMC/NCEPLIBS-g2c Source0: https://github.com/NOAA-EMC/NCEPLIBS-g2c/archive/refs/tags/v%{version}.tar.gz Source1: nceplibs-g2c.pc BuildRequires: cmake BuildRequires: cmake(libaec) BuildRequires: gcc BuildRequires: pkgconfig(libopenjp2) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(zlib-ng) %description GRIdded Binary or General Regularly-distributed Information in Binary form (GRIB) is a data format for meteorological and forecast data, standardized by the World Meteorological Organization (WMO). GRIB edition 2 (GRIB2) was approved by the WMO is 2003. %package devel Summary: Development files for NCEPLIBS-g2c Requires: %{name} = %{version}-%{release} %description devel Headers and CMake configuration files needed to develop software against NCEPLIBS-g2c. %prep %autosetup -n NCEPLIBS-g2c-%{version} -p0 %build %cmake \ -DUSE_PNG=ON \ -DUSE_Jasper=OFF \ -DUSE_OpenJPEG=ON \ -DUSE_AEC=ON \ -DPTHREADS=ON \ -DBUILD_STATIC_LIBS=OFF %cmake_build %install %cmake_install install -Dpm 0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/nceplibs-g2c.pc %files %license LICENSE.md %doc README.md %{_bindir}/* %{_libdir}/libg2c.so.* %{_datarootdir}/g2c %files devel %{_includedir}/* %{_libdir}/cmake/g2c %{_libdir}/libg2c.so %{_libdir}/pkgconfig/nceplibs-g2c.pc %changelog * Mon Jul 28 2025 Benjamin Cook - Fix missing cmake build dependency - Build g2c with PNG enabled * Thu Jul 24 2025 Benjamin Cook - Initial package