Name: stoat Version: 1 Release: 1%{?dist} Summary: Stoat — official Stoat desktop client License: AGPL-3.0 URL: https://github.com/stoatchat/for-desktop Source0: https://codeload.github.com/stoatchat/for-desktop/tar.gz/refs/heads/main BuildRequires: nodejs >= 18 BuildRequires: pnpm BuildRequires: git BuildRequires: desktop-file-utils Requires: electron Requires: gtk3 Requires: libXScrnSaver Requires: libnotify %description Stoat is the official Electron-based desktop client for the Stoat chat platform. %prep # remove the placeholder extraction rm -rf %{_tmppath}/stoat # clone upstream repository with assets git clone --depth 1 --recursive https://github.com/stoatchat/for-desktop.git stoat cd stoat git -c submodule."assets".update=checkout submodule update --init assets %build pnpm i --frozen-lockfile pnpm package %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps install -Dm755 dist/linux-unpacked/stoat %{buildroot}%{_bindir}/stoat install -Dm644 dist/linux-unpacked/resources/app/desktop/stoat.desktop %{buildroot}%{_datadir}/applications/stoat.desktop install -Dm644 dist/linux-unpacked/resources/app/icons/256x256/stoat.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/stoat.png %files %license LICENSE %doc README.md %{_bindir}/stoat %{_datadir}/applications/stoat.desktop %{_datadir}/icons/hicolor/256x256/apps/stoat.png %changelog * Sat Nov 09 2024 Copr Auto Build - Automated build from latest upstream master