%global debug_package %{nil} Name: wa-sync Version: 0.1.0 Release: 1%{?dist} Summary: WhatsApp linked-device daemon with continuous Markdown chat export License: MIT AND MPL-2.0 AND GPL-3.0-only URL: https://github.com/lacamar/%{name} Source0: %{name}-%{version}.tar.gz BuildRequires: golang >= 1.26 BuildRequires: gcc BuildRequires: whisper-cpp-devel >= 1.9.5 BuildRequires: systemd-rpm-macros BuildRequires: desktop-file-utils Requires: /usr/bin/ffmpeg Recommends: chromium %description Exports every WhatsApp chat to Markdown with attachments and voice note transcripts. Includes a Chromium app launcher for WhatsApp Web. %prep %autosetup %build export GOTOOLCHAIN=local GOWORK=off CGO_ENABLED=1 go build -mod=vendor -trimpath -buildmode=pie -ldflags "-s -w" -o %{name} . %install install -Dm755 %{name} %{buildroot}%{_bindir}/%{name} install -Dm644 data/%{name}.service %{buildroot}%{_userunitdir}/%{name}.service desktop-file-install --dir=%{buildroot}%{_datadir}/applications data/%{name}-web.desktop install -Dm644 data/icon.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png %check export GOTOOLCHAIN=local GOWORK=off go test -mod=vendor ./... desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-web.desktop %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %postun %systemd_user_postun_with_restart %{name}.service %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_userunitdir}/%{name}.service %{_datadir}/applications/%{name}-web.desktop %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %changelog * Tue Oct 27 2026 Lachlan Marie - 0.1.0-1 - Initial package