%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://git.corentinchoisy.xyz/corentinchoisy/stoat-desktop-upstream/archive/main.tar.gz BuildRequires: nodejs >= 18 BuildRequires: npm 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 # The archive unpacks into stoat-desktop-upstream-main, use -n to match %setup -q -n stoat-desktop-upstream-master %build npm ci npm run build %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications install -Dm755 dist/linux-unpacked/stoat %{buildroot}%{_bindir}/stoat if [ -f "build/linux/stoat.desktop" ]; then install -Dm644 build/linux/stoat.desktop %{buildroot}%{_datadir}/applications/stoat.desktop fi %files %license LICENSE %doc README.md %{_bindir}/stoat %{_datadir}/applications/stoat.desktop %changelog * Sat Nov 09 2024 Copr Auto Build - 1.0.0 - Automated build from latest upstream master