Name: vorta Version: 0.8.7 Release: 1%{?dist} Summary: A GUI for Borg Backup License: GPL-3.0-only URL: https://vorta.borgbase.com/ Source0: https://github.com/borgbase/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: desktop-file-utils BuildRequires: libappstream-glib # for tests BuildRequires: pytest Requires: borgbackup Requires: hicolor-icon-theme BuildArch: noarch %description Vorta is a backup client for macOS and Linux desktops. It integrates the mighty BorgBackup with your desktop environment to protect your data from disk failure, ransomware and theft %prep %autosetup %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %check # all tests require a GUI (pyqt5) to complete # so they won't work in mock %install %pyproject_install %pyproject_save_files %{name} #%%py3_install install -D -p src/vorta/assets/icons/icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/com.borgbase.Vorta.svg install -D -p package/icon-symbolic.svg %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/com.borgbase.Vorta-symbolic.svg install -D -p src/vorta/assets/metadata/com.borgbase.Vorta.desktop -t %{buildroot}%{_datadir}/applications/ install -D -p src/vorta/assets/metadata/com.borgbase.Vorta.appdata.xml -t %{buildroot}/%{_metainfodir}/ desktop-file-validate %{buildroot}/%{_datadir}/applications/com.borgbase.Vorta.desktop appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml %files -f %{pyproject_files} %doc README.md CONTRIBUTORS.md %license LICENSE.txt %{_bindir}/vorta %{_datadir}/applications/com.borgbase.Vorta.desktop %{_metainfodir}/com.borgbase.Vorta.appdata.xml %{_datadir}/icons/hicolor/*/apps/com.borgbase.Vorta*.svg %changelog * Mon Aug 22 2022 Jonathan Wright - 0.8.7-1 - Initial package build - Thanks to luminoso for his work in COPR - rhbz#2120883