# stoat.spec — Copr-ready RPM spec for Stoat Desktop Name: stoat Version: 1 # single token; overridden by git tag/commit if needed Release: 1%{?dist} Summary: Stoat — official desktop client for Stoat chat License: AGPL-3.0 URL: https://github.com/stoatchat/for-desktop Source0: git+https://github.com/stoatchat/for-desktop.git BuildRequires: nodejs >= 18 BuildRequires: npm 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 upstream Git repository. %prep # Clone the repository at the latest commit %autosetup -n for-desktop-%{commit} %build npm ci npm run build %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications # Install the built binary (adjust path if necessary) install -Dm755 dist/linux-unpacked/stoat %{buildroot}%{_bindir}/stoat # Install desktop entry if available 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 * $(date +%Y-%m-%d) Copr Auto Build - 1-1 - Automated build from latest upstream commit