Blame vorta.spec

Jonathan ae1dad0
Name:           vorta
2f49ee9
Version:        0.8.12
ef21000
Release:        5%{?dist}
Jonathan ae1dad0
Summary:        A GUI for Borg Backup
Jonathan ae1dad0
License:        GPL-3.0-only AND BSD-2-Clause AND OFL-1.1
Jonathan ae1dad0
# src/vorta/qt_single_application.py if BSD-2-Clause
Jonathan ae1dad0
# src/vorta/assets/icons are OFL-1.1
Jonathan ae1dad0
URL:            https://vorta.borgbase.com/
Jonathan ae1dad0
Source0:        https://github.com/borgbase/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Jonathan ae1dad0
Jonathan ae1dad0
BuildRequires:  python3-devel
Jonathan ae1dad0
BuildRequires:  desktop-file-utils
Jonathan ae1dad0
BuildRequires:  libappstream-glib
Jonathan ae1dad0
Jonathan ae1dad0
Requires:       borgbackup
Jonathan ae1dad0
Requires:       hicolor-icon-theme
e56d27f
Requires:       qt5-qtsvg
Jonathan ae1dad0
Jonathan ae1dad0
BuildArch:      noarch
Jonathan ae1dad0
Jonathan ae1dad0
%description
Jonathan ae1dad0
Vorta is a backup client for macOS and Linux desktops.
Jonathan ae1dad0
It integrates the mighty BorgBackup with your desktop environment
Jonathan ae1dad0
to protect your data from disk failure, ransomware and theft
Jonathan ae1dad0
Jonathan ae1dad0
%prep
Jonathan ae1dad0
%autosetup
b3971a6
# https://github.com/borgbase/vorta/issues/1690
b3971a6
sed -i 's/platformdirs >=2.6.0/platformdirs >=2.3.0/g' setup.cfg
Jonathan ae1dad0
Jonathan ae1dad0
%generate_buildrequires
Jonathan ae1dad0
%pyproject_buildrequires
Jonathan ae1dad0
Jonathan ae1dad0
Jonathan ae1dad0
%build
Jonathan ae1dad0
%pyproject_wheel
Jonathan ae1dad0
Jonathan ae1dad0
Jonathan ae1dad0
%check
Jonathan ae1dad0
# all tests require a GUI (pyqt5) to complete
Jonathan ae1dad0
# so they won't work in mock
Jonathan ae1dad0
Jonathan ae1dad0
%install
Jonathan ae1dad0
%pyproject_install
Jonathan ae1dad0
%pyproject_save_files %{name}
Jonathan ae1dad0
#%%py3_install
Jonathan ae1dad0
install -D -p -m 644 src/vorta/assets/icons/icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/com.borgbase.Vorta.svg
Jonathan ae1dad0
install -D -p -m 644 package/icon-symbolic.svg %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/com.borgbase.Vorta-symbolic.svg
Jonathan ae1dad0
install -D -p src/vorta/assets/metadata/com.borgbase.Vorta.desktop -t %{buildroot}%{_datadir}/applications/
Jonathan ae1dad0
install -D -p src/vorta/assets/metadata/com.borgbase.Vorta.appdata.xml -t %{buildroot}/%{_metainfodir}/
Jonathan ae1dad0
Jonathan ae1dad0
desktop-file-validate %{buildroot}/%{_datadir}/applications/com.borgbase.Vorta.desktop
Jonathan ae1dad0
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
Jonathan ae1dad0
Jonathan ae1dad0
Jonathan ae1dad0
%files -f %{pyproject_files}
Jonathan ae1dad0
%doc README.md CONTRIBUTORS.md
Jonathan ae1dad0
%license LICENSE.txt
Jonathan ae1dad0
%{_bindir}/vorta
Jonathan ae1dad0
%{_datadir}/applications/com.borgbase.Vorta.desktop
Jonathan ae1dad0
%{_metainfodir}/com.borgbase.Vorta.appdata.xml
Jonathan ae1dad0
%{_datadir}/icons/hicolor/*/apps/com.borgbase.Vorta*.svg
Jonathan ae1dad0
Jonathan ae1dad0
Jonathan ae1dad0
%changelog
ef21000
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.12-5
ef21000
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
ef21000
89feb0e
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.12-4
89feb0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
89feb0e
8ac9c97
* Thu Jul 06 2023 Python Maint <python-maint@redhat.com> - 0.8.12-3
8ac9c97
- Rebuilt for Python 3.12
8ac9c97
42cf0f4
* Mon Apr 10 2023 Jonathan Wright <jonathan@almalinux.org> - 0.8.12-2
42cf0f4
- Override minimum platformdirs version
42cf0f4
2f49ee9
* Mon Apr 10 2023 Jonathan Wright <jonathan@almalinux.org> - 0.8.12-1
2f49ee9
- Update to 0.8.12
2f49ee9
478e1a2
* Sun Apr 09 2023 Jonathan Wright <jonathan@almalinux.org> - 0.8.11-1
478e1a2
- Update to 0.8.11 rhbz#2185461
478e1a2
e56d27f
* Mon Jan 23 2023 Jonathan Wright <jonathan@almalinux.org> - 0.8.10-2
e56d27f
- Add requires qt5-qtsvg rhbz#2162072
e56d27f
8d93e5f
* Sun Jan 22 2023 Jonathan Wright <jonathan@almalinux.org> - 0.8.10-1
8d93e5f
- Update to 0.8.10 rhbz#2163001
8d93e5f
d34cc87
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-2
d34cc87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d34cc87
Jonathan eeb237e
* Mon Nov 07 2022 Jonathan Wright <jonathan@almalinux.org> - 0.8.9-1
Jonathan eeb237e
- Update to 0.8.9 rhbz#2140355
Jonathan eeb237e
Jonathan ae1dad0
* Mon Aug 22 2022 Jonathan Wright <jonathan@almalinux.org> - 0.8.7-1
Jonathan ae1dad0
- Initial package build
Jonathan ae1dad0
- Thanks to luminoso for his work in COPR
Jonathan ae1dad0
- rhbz#2120883