Name: restic-desktop Version: 1.0.1 Release: 2%{?dist} Summary: GTK4 desktop GUI for restic backups on Fedora License: BSD-2-Clause URL: https://github.com/restic/restic/tree/master/contrib/restic-desktop # COPR: upload restic-desktop-%%{version}.tar.gz from `make srpm` (see packaging/copr/README.md) Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: libappstream-glib Requires: restic Requires: python3-gobject Requires: libadwaita Requires: python3-secretstorage Requires: hicolor-icon-theme Requires: adwaita-icon-theme %description Restic Desktop is a GNOME/libadwaita graphical interface for restic. It wraps the restic CLI (backup, snapshots, restore, repository setup) and stores passwords in the system keyring. %prep %autosetup -n %{name}-%{version} -p1 %build # Pure Python — no compile step %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_libdir}/restic-desktop cp -a restic_desktop %{buildroot}%{_libdir}/restic-desktop/ find %{buildroot}%{_libdir}/restic-desktop -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true find %{buildroot}%{_libdir}/restic-desktop -name '*.pyc' -delete 2>/dev/null || true install -Dpm 755 restic-desktop %{buildroot}%{_bindir}/restic-desktop install -Dpm 644 data/org.restic.ResticDesktop.desktop \ %{buildroot}%{_datadir}/applications/org.restic.ResticDesktop.desktop install -Dpm 644 data/org.restic.ResticDesktop.metainfo.xml \ %{buildroot}%{_metainfodir}/org.restic.ResticDesktop.metainfo.xml install -Dpm 644 data/org.restic.ResticDesktop.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/org.restic.ResticDesktop.svg install -Dpm 644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE desktop-file-validate %{buildroot}%{_datadir}/applications/org.restic.ResticDesktop.desktop appstream-util validate-relax --nonet \ %{buildroot}%{_metainfodir}/org.restic.ResticDesktop.metainfo.xml || true %files %license %{_datadir}/licenses/%{name}/LICENSE %doc README.md CHANGELOG.md %{_bindir}/restic-desktop %{_libdir}/restic-desktop/ %{_datadir}/applications/org.restic.ResticDesktop.desktop %{_metainfodir}/org.restic.ResticDesktop.metainfo.xml %{_datadir}/icons/hicolor/scalable/apps/org.restic.ResticDesktop.svg %changelog * Thu May 21 2026 Restic Desktop Packagers - 1.0.1-2 - Drop meson from RPM build; install Python files directly (fixes COPR %build) * Thu May 21 2026 Restic Desktop Packagers - 1.0.1-1 - Initial RPM release for COPR - Repository backend selection, test connection, local backup/restore