timeshift/timeshift.spec

83 lines
2.5 KiB
RPMSpec

Name: timeshift
Version: 24.06.3
Release: 1mamba
Summary: System restore tool for Linux
Group: System/
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/linuxmint/timeshift
Source: https://github.com/linuxmint/timeshift.git/%{version}/timeshift-%{version}.tar.bz2
Source1: timeshift-boot.service
Source2: timeshift-boot.timer
Source3: timeshift-hourly.service
Source4: timeshift-hourly.timer
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcairo-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libgee-devel
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libjson-glib-devel
BuildRequires: libvte-devel
BuildRequires: libxapp-devel
## AUTOBUILDREQ-END
BuildRequires: meson
Requires: rsync
%description
System restore tool for Linux. Creates filesystem snapshots using rsync+hardlinks, or BTRFS snapshots.
Supports scheduled snapshots, multiple backup levels, and exclude filters.
Snapshots can be restored while system is running or from Live CD/USB.
%debug_package
%prep
%setup -q
%build
%meson
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/timeshift-boot.service
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/timeshift-boot.timer
install -D -m0644 %{SOURCE3} %{buildroot}%{_unitdir}/timeshift-hourly.service
install -D -m0644 %{SOURCE4} %{buildroot}%{_unitdir}/timeshift-hourly.timer
%find_lang %{name} || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/timeshift/default.json
%{_bindir}/timeshift
%{_bindir}/timeshift-gtk
%{_bindir}/timeshift-launcher
%{_datadir}/applications/timeshift-gtk.desktop
%{_metainfodir}/timeshift.appdata.xml
%{_datadir}/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy
%{_unitdir}/timeshift-boot.service
%{_unitdir}/timeshift-boot.timer
%{_unitdir}/timeshift-hourly.service
%{_unitdir}/timeshift-hourly.timer
%{_datadir}/pixmaps/timeshift.png
%dir %{_datadir}/timeshift
%dir %{_datadir}/timeshift/images
%{_datadir}/timeshift/images/*
%{_datadir}/icons/hicolor/*/apps/timeshift.png
%{_mandir}/man1/timeshift-gtk.1*
%{_mandir}/man1/timeshift.1*
%doc AUTHORS LICENSES
%changelog
* Wed Nov 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 24.06.3-1mamba
- package created using the webbuild interface