timeshift/timeshift.spec
Malcolm Lewis 59879e0dc7 Accepting request 933940 from home:malcolmlewis:branches:Archiving:Backup
- Updated to version 21.09.1:
  * Fix build fails with xapp 2.0.0, update references to
    GLib.Object, (gh#teejee2008/timeshift#676).
  * Fix timeshift will only start in "Live USB Mode",
    (gh#teejee2008/timeshift#425, gh#teejee2008/timeshift#753
    and gh#teejee2008/timeshift#755).
  * Fix not enough disk space, (gh#teejee2008/timeshift#589).
  * Fix browse Files is starting Audacious, not file browser,
    (gh#teejee2008/timeshift#186).
  * Fix compiler warnings.
  * Update README.
  * Translation updates.
- Changes from version 21.09:
  * Translation updates.

OBS-URL: https://build.opensuse.org/request/show/933940
OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=8
2021-11-25 23:17:44 +00:00

92 lines
3.1 KiB
RPMSpec

#
# spec file for package timeshift
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2017-2021 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: timeshift
Version: 21.09.1
Release: 0
Summary: System restore utility
License: GPL-3.0-only
URL: https://teejeetech.in/timeshift/
Source0: https://github.com/teejee2008/timeshift/archive/refs/tags/v%{version}.tar.gz
BuildRequires: chrpath
BuildRequires: fdupes
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)
Requires: rsync
#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
%autosetup -p1
%build
%make_build
%install
%make_install
#Cleanup rpath references
chrpath --delete %{buildroot}%{_bindir}/timeshift
chrpath --delete %{buildroot}%{_bindir}/timeshift-gtk
#Fix file permissions
chmod 0644 %{buildroot}%{_sysconfdir}/timeshift/default.json
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
#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
%suse_update_desktop_file -r timeshift-gtk Utility Archiving
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}
%files
%license LICENSE.md
%dir %{_sysconfdir}/timeshift
%config(noreplace) %{_sysconfdir}/timeshift/default.json
%{_bindir}/timeshift*
%{_datadir}/applications/timeshift-gtk.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/timeshift.1%{?ext_man}
%{_datadir}/metainfo/timeshift.appdata.xml
%{_datadir}/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy
%{_datadir}/timeshift/
%attr(0750,root,root) %dir %{_localstatedir}/log/timeshift
%attr(0750,root,root) %dir %{_localstatedir}/log/timeshift-btrfs
%files lang -f %{name}.lang
%changelog