File timeshift.spec of Package timeshift
#
# spec file for package timeshift
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: timeshift
Version: 20.03
Release: 0
Summary: A system restore tool for Linux
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-3.0-only
Url: https://github.com/teejee2008/timeshift
Source: %{name}-%{version}.tar.gz
BuildRequires: rsync
BuildRequires: json-glib-devel
BuildRequires: libgee-devel
BuildRequires: vala
BuildRequires: vte-devel
BuildRequires: update-desktop-files
%description
Timeshift for Linux is an application that provides functionality similar to
the System Restore feature in Windows and the Time Machine tool in Mac OS.
Timeshift protects your system by taking incremental snapshots of the file
system at regular intervals. These snapshots can be restored at a later date to
undo all changes to the system.
%prep
%setup -q -c %{name}-%{version}
# move source file to builddir
pushd %{_builddir}/%{name}-%{version}/
mv teejee2008-%{name}-*/* .
rm -r teejee2008-%{name}-*
popd
%build
%make_build
%install
%make_install
%suse_update_desktop_file -r timeshift-gtk Utility Archiving
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-gtk
%{_bindir}/%{name}-launcher
%{_datadir}/%{name}/*
%config %{_sysconfdir}/default/%{name}.json
%{_datadir}/applications/%{name}-gtk.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_datadir}/polkit-1/actions/in.teejeetech.pkexec.%{name}.policy
%{_mandir}/man1/%{name}.1%{?ext_man}
%dir %{_datadir}/%{name}
%dir %{_datadir}/locale/*
%dir %{_datadir}/locale/*/LC_MESSAGES
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%changelog