%bcond_with 32bit Name: c-ares Version: 1.34.6 Release: 1%{?dist} Summary: Asynchronous DNS request library Summary(ru): Библиотека для асинхронных DNS-запросов License: MIT URL: http://c-ares.haxx.se/ Source0: https://github.com/c-ares/c-ares/releases/download/v%{version}/%{name}-%{version}.tar.gz 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: libtool BuildRequires: cmake %if %{with 32bit} BuildRequires: lib32-gcc %endif %description c-ares is a C library for asynchronous DNS requests. It provides an API to perform non-blocking DNS lookups, which is useful for applications that require high performance and responsiveness. The library supports many DNS record types and is portable across multiple operating systems. %description -l ru c-ares — библиотека на языке C для асинхронных DNS-запросов. Она предоставляет API для выполнения DNS-резолвинга без блокировки, что полезно для приложений, которым важны производительность и отзывчивость. Библиотека поддерживает множество типов DNS-записей и совместима с различными операционными системами. %package devel Summary: Development files for the c-ares library Summary(ru): Файлы для разработки для библиотеки c-ares Requires: %{name} = %{version}-%{release} Requires: pkg-config %description -n %{name}-devel The %{name}-devel package contains header files, pkg-config metadata and development files needed to build applications that use %{name}. %description -l ru -n %{name}-devel Пакет %{name}-devel содержит заголовочные файлы, метаданные pkg-config и файлы разработки, необходимые для сборки приложений, использующих %{name}. %if %{with 32bit} %package_32bit %endif %prep %autosetup -p1 %build mkdir -pv build64 pushd build64 %if %{with bootstrap} %cmake %else cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR:PATH=/usr/lib \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON %endif %make_build popd %if %{with 32bit} mkdir -pv NiceSOFT-linux-build32 pushd NiceSOFT-linux-build32 CC="gcc -m32" CXX="g++ -m32" \ PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib32 %make_build popd %endif %install pushd build64 %make_install popd %if %{with 32bit} %cmake32_install %endif %ldconfig_scriptlets %files %defattr(-,root,root) %doc README.md README.msvc %{_bindir}/* %attr(0755,root,root) %{_libdir}/*.so.* %{_mandir}/man1/* %files -n %{name}-devel %defattr(-,root,root) %{_includedir}/ares.h %{_includedir}/ares_build.h %{_includedir}/ares_dns.h %{_includedir}/ares_dns_record.h %{_includedir}/ares_nameser.h %{_includedir}/ares_version.h %{_libdir}/*.so %{_libdir}/pkgconfig/libcares.pc %{_libdir}/cmake/* %{_mandir}/man3/ares_* %if %{with 32bit} %files_32bit %endif %changelog * Tue Apr 28 2026 NiceOS Team - 1.34.6-1 - EN: - security update to 1.34.6 fixing CVE-2025-62408 (use-after-free in read_answers()) and various bugfixes - RU: - обновление безопасности до версии 1.34.6 с исправлением CVE-2025-62408 (use-after-free в read_answers()) и другими исправлениями ошибок * Wed Jan 07 2026 NiceOS Team - 1.34.5-1 - Initial build for NiceOS (Первая сборка для НАЙС.ОС)