%define _pkgname nchat Name: %{_pkgname} Version: 5.8.4 Release: 1%{?dist} Summary: Console-based chat client with support for Telegram and WhatsApp License: MIT URL: https://github.com/d99kris/nchat Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildRequires: cmake BuildRequires: git-core BuildRequires: golang BuildRequires: gperf BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: sqlite-devel BuildRequires: zlib-devel BuildRequires: file-devel Requires: ncurses Requires: openssl Requires: sqlite Requires: zlib %description nchat is a terminal-based chat client with support for Telegram and WhatsApp. It features a text-based user interface with customizable colors and key bindings. %prep %setup -q -n %{_pkgname}-%{version} %build export GOFLAGS="-buildvcs=false" export GOPROXY="https://proxy.golang.org,direct" # Добавили флаг удаления RPATH, чтобы не было ошибки безопасности %cmake -G Ninja \ %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ -DCMAKE_C_FLAGS="%{optflags} -Wno-error -Wno-array-bounds" \ -DCMAKE_CXX_FLAGS="%{optflags} -Wno-error -Wno-array-bounds" \ -Wno-dev %cmake_build %install %cmake_install %files %license LICENSE # Бинарник %{_bindir}/%{_pkgname} # Общие библиотеки, которые собрал nchat (лежат в /usr/lib) /usr/lib/libncutil.so /usr/lib/libduchat.so /usr/lib/libtgchat.so /usr/lib/libtdclientshared.so /usr/lib/libwmchat.so # Путь к мануалу, куда его положил CMake /usr/man/man1/%{_pkgname}.1* # Темы оформления и конфиги %{_datadir}/%{_pkgname}/ %changelog * Sat Jun 06 2026 Your Name - 5.8.4-1 - Fixed RPATH issue and updated file paths for AlmaLinux 10