%bcond_without check Name: jq Version: 1.8.1 Release: 2%{?dist} Summary: Command-line JSON processor Summary(ru): Командный процессор JSON License: MIT URL: https://github.com/stedolan/jq Source0: https://github.com/stedolan/jq/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz Patch100: CVE-2026-32316.patch Packager: NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 Vendor: NiceSOFT Distribution: NiceOS.Core BugURL: https://bugs.niceos.ru/ VCS: https://specs.niceos.ru/rmps/%{name} BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: libtool BuildRequires: make BuildRequires: oniguruma-devel BuildRequires: pkgconfig %if %{with check} BuildRequires: which %endif %description jq is a lightweight and flexible command-line JSON processor. It lets you filter, transform, and extract data from JSON, and is convenient for use in shell scripts and pipelines. %description -l ru jq — лёгкий и гибкий процессор JSON для командной строки. Он позволяет фильтровать, преобразовывать и извлекать данные из JSON и удобен для использования в скриптах и конвейерах. %package devel Summary: Development files for jq Summary(ru): Файлы разработки для jq Requires: %{name}%{?_isa} = %{version}-%{release} %description -n %{name}-devel The devel subpackage contains files needed to develop and build software using libjq, including headers and the pkg-config file. %description -l ru -n %{name}-devel Подпакет devel содержит файлы, необходимые для разработки и сборки программ, использующих libjq: заголовки и файл pkg-config. %prep %autosetup -n %{name}-%{version} -p1 %build autoreconf -fiv %configure --disable-static %make_build %check %make_build check %install %make_install # RU: Удаляем мусорные файлы, если они появились при установке. # EN: Remove trash files if they appeared during installation. find %{buildroot} -type f -name '*.la' -delete %{_fixperms} %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license COPYING* %doc README* AUTHORS* NEWS* %{_bindir}/jq %{_mandir}/man1/jq.1* %{_libdir}/libjq.so.* %files -n %{name}-devel %{_includedir}/jq.h %{_includedir}/jv.h %{_libdir}/libjq.so %{_libdir}/pkgconfig/libjq.pc %{_docdir}/%{name}/* %changelog * Tue May 26 2026 NiceOS Team - 1.8.1-2 - Backport upstream fix for CVE-2026-32316. - Address an integer overflow in jvp_string_append()/jvp_string_copy_replace_bad that can lead to a heap buffer overflow when jq handles very large string concatenations. - Add/extend regression coverage for large-string allocation and copy paths. - Bump Release for the security update. - RU: Выполнен backport исправления upstream для CVE-2026-32316. - Устранено целочисленное переполнение в jvp_string_append()/jvp_string_copy_replace_bad, которое может приводить к heap buffer overflow при обработке очень больших конкатенаций строк. - Добавлено/расширено регрессионное покрытие для путей выделения памяти и копирования больших строк. - Повышен Release для security-обновления. * Sat Jan 10 2026 NiceOS Team - 1.8.1-1 - Initial build for NiceOS (Первая сборка для НАЙС.ОС)