%define build_timestamp %{lua: print(os.date("%Y%m%d"))} Name: stoat Version: 1.0.0 Release: %{build_timestamp} Summary: Stoat — official desktop client for Stoat chat License: AGPL-3.0 URL: https://github.com/stoatchat/for-desktop Source0: https://github.com/stoatchat/for-desktop/archive/main.tar.gz 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. This package builds automatically from the latest upstream master branch. %prep rm -rf stoat-build git clone --depth 1 --recursive https://github.com/stoatchat/for-desktop.git stoat-build cd stoat-build 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 - 1.0.0 - Automated build from latest upstream master