2020-03-02 10:16:47 +01:00
|
|
|
#
|
2020-03-15 16:51:39 +01:00
|
|
|
# spec file for package timeshift
|
2020-03-02 10:16:47 +01:00
|
|
|
#
|
2023-01-17 13:35:35 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-09-14 09:16:32 +02:00
|
|
|
# Copyright (c) 2017-2022 Malcolm J Lewis <malcolmlewis@opensuse.org>
|
2020-03-02 10:16:47 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-03-15 16:51:39 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-03-02 10:16:47 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: timeshift
|
2023-09-06 19:18:36 +02:00
|
|
|
Version: 23.07.1
|
2020-03-02 10:16:47 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: System restore utility
|
2020-03-15 16:51:39 +01:00
|
|
|
License: GPL-3.0-only
|
2022-09-14 09:16:32 +02:00
|
|
|
URL: https://github.com/linuxmint/timeshift
|
2022-09-14 15:02:09 +02:00
|
|
|
Source0: https://codeload.github.com/linuxmint/timeshift/tar.gz/refs/tags/%{version}#/%{name}-%{version}.tar.gz
|
2020-03-02 10:16:47 +01:00
|
|
|
BuildRequires: chrpath
|
2023-09-06 19:18:36 +02:00
|
|
|
BuildRequires: help2man
|
|
|
|
BuildRequires: meson
|
2020-03-02 10:16:47 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: pkgconfig(gee-0.8)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0)
|
|
|
|
BuildRequires: pkgconfig(polkit-agent-1)
|
|
|
|
BuildRequires: pkgconfig(vte-2.91)
|
2023-09-06 19:18:36 +02:00
|
|
|
BuildRequires: pkgconfig(xapp)
|
2020-03-15 16:51:39 +01:00
|
|
|
Requires: rsync
|
2020-03-02 10:16:47 +01:00
|
|
|
#Lets just recommend for btrfs as more likely used with other filesystems
|
|
|
|
Recommends: btrfsprogs
|
|
|
|
|
|
|
|
%description
|
|
|
|
A system restore utility which takes snapshots of the system at regular
|
|
|
|
intervals. These snapshots can be restored at a later date to undo system
|
|
|
|
changes. Creates incremental snapshots using rsync or BTRFS snapshots
|
|
|
|
using BTRFS tools.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
2020-03-05 20:29:14 +01:00
|
|
|
%autosetup -p1
|
2023-09-06 19:18:36 +02:00
|
|
|
# rpmlint
|
|
|
|
sed -i -e 's|/usr/bin/env bash|/usr/bin/bash|g' src/timeshift-launcher
|
2020-03-02 10:16:47 +01:00
|
|
|
|
|
|
|
%build
|
2023-09-06 19:18:36 +02:00
|
|
|
%meson -Dxapp=false
|
|
|
|
%meson_build
|
2020-03-02 10:16:47 +01:00
|
|
|
|
|
|
|
%install
|
2023-09-06 19:18:36 +02:00
|
|
|
%meson_install
|
2020-03-02 10:16:47 +01:00
|
|
|
#Cleanup rpath references
|
|
|
|
chrpath --delete %{buildroot}%{_bindir}/timeshift
|
|
|
|
chrpath --delete %{buildroot}%{_bindir}/timeshift-gtk
|
|
|
|
#Fix file permissions
|
2021-05-14 04:25:39 +02:00
|
|
|
chmod 0644 %{buildroot}%{_sysconfdir}/timeshift/default.json
|
2020-03-02 10:16:47 +01:00
|
|
|
chmod 0644 %{buildroot}%{_datadir}/metainfo/timeshift.appdata.xml
|
|
|
|
chmod 0644 %{buildroot}%{_datadir}/timeshift/images/*.svg
|
|
|
|
#Remove as we use rpm/zypper
|
|
|
|
rm -f %{buildroot}%{_bindir}/timeshift-uninstall
|
|
|
|
#Remove appdata in preference to metadinfo
|
|
|
|
rm -rf %{buildroot}%{_datadir}/appdata
|
2020-03-05 20:29:14 +01:00
|
|
|
#Manually add log directories, set mode to 0750 and owned by root (boo#1165805)
|
|
|
|
install -d %{buildroot}%{_localstatedir}/log/timeshift
|
|
|
|
install -d %{buildroot}%{_localstatedir}/log/timeshift-btrfs
|
2020-03-02 10:16:47 +01:00
|
|
|
%suse_update_desktop_file -r timeshift-gtk Utility Archiving
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
|
|
|
|
%files
|
2023-09-06 19:18:36 +02:00
|
|
|
%license LICENSES/*
|
2021-05-14 04:25:39 +02:00
|
|
|
%dir %{_sysconfdir}/timeshift
|
|
|
|
%config(noreplace) %{_sysconfdir}/timeshift/default.json
|
2020-03-02 10:16:47 +01:00
|
|
|
%{_bindir}/timeshift*
|
|
|
|
%{_datadir}/applications/timeshift-gtk.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
%{_mandir}/man1/timeshift.1%{?ext_man}
|
2023-09-06 19:18:36 +02:00
|
|
|
%{_mandir}/man1/timeshift-gtk.1%{?ext_man}
|
2020-03-02 10:16:47 +01:00
|
|
|
%{_datadir}/metainfo/timeshift.appdata.xml
|
|
|
|
%{_datadir}/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy
|
2022-09-14 09:16:32 +02:00
|
|
|
%{_datadir}/pixmaps/timeshift.png
|
2020-03-02 10:16:47 +01:00
|
|
|
%{_datadir}/timeshift/
|
2020-03-05 20:29:14 +01:00
|
|
|
%attr(0750,root,root) %dir %{_localstatedir}/log/timeshift
|
|
|
|
%attr(0750,root,root) %dir %{_localstatedir}/log/timeshift-btrfs
|
2020-03-02 10:16:47 +01:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|