timeshift/timeshift.spec

98 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package timeshift
#
# Copyright (c) 2023 SUSE LLC
Accepting request 1002517 from home:malcolmlewis:branches:Archiving:Backup - Updated to version 22.06.5: * Translation updates. - Changes from version 22.06.4: * Disable selection of the btrfs backend when there are no btrfs filesystems found. - Changes from version 22.06.3: * settings: Clear the initial snapshot size and file count when all snapshots are deleted. * rsync: Calculate required space before attempting to perform an incremental snapshot, (gh#/linuxmint/timeshift#19). * Translation updates. - Changes from version 22.06.2: * Fix various typos in the source. * Removes lines about paypal account. * Remove donation window. * About: Update info and use a Gtk.AboutDialog. * Translation updates. - Changes from version 22.06.1: * Fix unmount devices that were mounted by Timeshift before exit, (gh#/linuxmint/timeshift#895, gh#/linuxmint/timeshift#809, gh#/linuxmint/timeshift#689, gh#/linuxmint/timeshift#653 and gh#/linuxmint/timeshift#10). * Fix do not create or remove Qgroups when snapshots are created or removed, (gh#/linuxmint/timeshift#865, gh#/linuxmint/timeshift#839 and gh#/linuxmint/timeshift#680). * Fix force C locale for Rsync, (gh#/linuxmint/timeshift#900 and gh#/linuxmint/timeshift#891) * Install app icon in /usr/share/pixmaps directory. * Remove columns 'Size' and 'Unshared Size' for BTRFS snapshots. * Rsync: Restore: Delete files using --delete-before instead of --delete-after. * Fix no text on Summary page under 'Warning' and 'Disclaimer' heading, (gh#/linuxmint/timeshift#260). * Rsync: Restore: Improve UI for the device selection page. * Code cleanup: Remove unused functions and code. * Update donation windo. * Update translations. * Fix a build failure. - Update URL abd sources as maintenance has now moved to LinuxMint. - Disable parallel building. OBS-URL: https://build.opensuse.org/request/show/1002517 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=9
2022-09-14 09:16:32 +02:00
# Copyright (c) 2017-2022 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
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
Version: 23.07.1
Release: 0
Summary: System restore utility
License: GPL-3.0-only
Accepting request 1002517 from home:malcolmlewis:branches:Archiving:Backup - Updated to version 22.06.5: * Translation updates. - Changes from version 22.06.4: * Disable selection of the btrfs backend when there are no btrfs filesystems found. - Changes from version 22.06.3: * settings: Clear the initial snapshot size and file count when all snapshots are deleted. * rsync: Calculate required space before attempting to perform an incremental snapshot, (gh#/linuxmint/timeshift#19). * Translation updates. - Changes from version 22.06.2: * Fix various typos in the source. * Removes lines about paypal account. * Remove donation window. * About: Update info and use a Gtk.AboutDialog. * Translation updates. - Changes from version 22.06.1: * Fix unmount devices that were mounted by Timeshift before exit, (gh#/linuxmint/timeshift#895, gh#/linuxmint/timeshift#809, gh#/linuxmint/timeshift#689, gh#/linuxmint/timeshift#653 and gh#/linuxmint/timeshift#10). * Fix do not create or remove Qgroups when snapshots are created or removed, (gh#/linuxmint/timeshift#865, gh#/linuxmint/timeshift#839 and gh#/linuxmint/timeshift#680). * Fix force C locale for Rsync, (gh#/linuxmint/timeshift#900 and gh#/linuxmint/timeshift#891) * Install app icon in /usr/share/pixmaps directory. * Remove columns 'Size' and 'Unshared Size' for BTRFS snapshots. * Rsync: Restore: Delete files using --delete-before instead of --delete-after. * Fix no text on Summary page under 'Warning' and 'Disclaimer' heading, (gh#/linuxmint/timeshift#260). * Rsync: Restore: Improve UI for the device selection page. * Code cleanup: Remove unused functions and code. * Update donation windo. * Update translations. * Fix a build failure. - Update URL abd sources as maintenance has now moved to LinuxMint. - Disable parallel building. OBS-URL: https://build.opensuse.org/request/show/1002517 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=9
2022-09-14 09:16:32 +02:00
URL: https://github.com/linuxmint/timeshift
Source0: https://codeload.github.com/linuxmint/timeshift/tar.gz/refs/tags/%{version}#/%{name}-%{version}.tar.gz
BuildRequires: chrpath
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
BuildRequires: help2man
BuildRequires: meson
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)
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
BuildRequires: pkgconfig(xapp)
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
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
# rpmlint
sed -i -e 's|/usr/bin/env bash|/usr/bin/bash|g' src/timeshift-launcher
%build
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
%meson -Dxapp=false
%meson_build
%install
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
%meson_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}
%files
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
%license LICENSES/*
%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}
Accepting request 1108831 from home:ecsos:Backup - Update to 23.07.1: * build: allow installing default.json to sysconfdir (#208) * treewide: use /usr/bin/env bash for shebang (#209) * Update translations - Changes from 23.06.2: * Fix the desktop file name + project license in appdata (#204) * Update translations - Changes from 23.06.1: * Update Device.vala * Update URLs to HTTPS * README.md: fix a typo * Added extra constraints to BTRFS mode in Supported System Configurations (#103) * src/Utility: fix deprecated Thread.create usage (#151) * AsyncTask: Use a mutex to guard access to AsyncTask.status_line. * Fix printf format warnings (#162) * Don't use deprecated from_timeval_utc function * Fix deprecated Thread.create usage * Fix segmentation fault (#169) * Added missing documentation regarding tags abbrevation which was difficult to find (#168) * Console: add --version option (#175) * Development documentation for easier accessibility (#170) * Remove timeshift-uninstall binary (#176) * Debian clean up (#180) * Console: add --version option description to the help massages (#181) * src/makefile: remove VTE_291_OLD and VTE_291 symbols (#183) * Fix project's license (#189) * Use help2man utility to create a man page. (#178) * meson support (#173) * Fix deprecated Gtk.Widget.margin_left and Gtk.Widget.margin_right properties * Use get_hadjustment via casting TreeView to Gtk.Scrollable * meson: add project's license definition * Don't use the deprecated Gtk.TreeView.rules_hint feature (#201) * docs: automatically generate timeshift-gtk manpage (#194) * Use an unsafe cast (#200) * l10n: Update POT OBS-URL: https://build.opensuse.org/request/show/1108831 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=16
2023-09-06 19:18:36 +02:00
%{_mandir}/man1/timeshift-gtk.1%{?ext_man}
%{_datadir}/metainfo/timeshift.appdata.xml
%{_datadir}/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy
Accepting request 1002517 from home:malcolmlewis:branches:Archiving:Backup - Updated to version 22.06.5: * Translation updates. - Changes from version 22.06.4: * Disable selection of the btrfs backend when there are no btrfs filesystems found. - Changes from version 22.06.3: * settings: Clear the initial snapshot size and file count when all snapshots are deleted. * rsync: Calculate required space before attempting to perform an incremental snapshot, (gh#/linuxmint/timeshift#19). * Translation updates. - Changes from version 22.06.2: * Fix various typos in the source. * Removes lines about paypal account. * Remove donation window. * About: Update info and use a Gtk.AboutDialog. * Translation updates. - Changes from version 22.06.1: * Fix unmount devices that were mounted by Timeshift before exit, (gh#/linuxmint/timeshift#895, gh#/linuxmint/timeshift#809, gh#/linuxmint/timeshift#689, gh#/linuxmint/timeshift#653 and gh#/linuxmint/timeshift#10). * Fix do not create or remove Qgroups when snapshots are created or removed, (gh#/linuxmint/timeshift#865, gh#/linuxmint/timeshift#839 and gh#/linuxmint/timeshift#680). * Fix force C locale for Rsync, (gh#/linuxmint/timeshift#900 and gh#/linuxmint/timeshift#891) * Install app icon in /usr/share/pixmaps directory. * Remove columns 'Size' and 'Unshared Size' for BTRFS snapshots. * Rsync: Restore: Delete files using --delete-before instead of --delete-after. * Fix no text on Summary page under 'Warning' and 'Disclaimer' heading, (gh#/linuxmint/timeshift#260). * Rsync: Restore: Improve UI for the device selection page. * Code cleanup: Remove unused functions and code. * Update donation windo. * Update translations. * Fix a build failure. - Update URL abd sources as maintenance has now moved to LinuxMint. - Disable parallel building. OBS-URL: https://build.opensuse.org/request/show/1002517 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/timeshift?expand=0&rev=9
2022-09-14 09:16:32 +02:00
%{_datadir}/pixmaps/timeshift.png
%{_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