Add: piclone (#6010) (#6012)

(cherry picked from commit 821a77cec8)

Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-08-07 16:05:40 -07:00
committed by GitHub
parent 40487d2e88
commit 991f0e7df6
3 changed files with 70 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "piclone.spec"
}
}
+60
View File
@@ -0,0 +1,60 @@
%global commit 2d0d97cd76d9e570c14cf18ef3d6369d2513d13a
%global commit_date 20250327
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: piclone
Version: %commit_date.git~%shortcommit
Release: 1%?dist
Summary: Utility to back up Pi to an SD card reader
License: BSD-3-Clause
URL: https://github.com/raspberrypi-ui/piclone
Source0: %url/archive/%commit.tar.gz
BuildRequires: meson
BuildRequires: ninja-build
BuildRequires: gtk3-devel
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: vala
BuildRequires: pkgconfig
BuildRequires: gcc
Requires: parted dosfstools e2fsprogs coreutils util-linux-core uuid dbus-x11 gtk3
%description
SD Card backup program for Raspberry Pi.
This is a GTK application to copy the contents of SD cards and other USB
drives. It mirrors the partition layout of the source device onto the
target device, with the exception of the last partition, which is created
to be the largest which will fit onto the target device.
Files are then copied between all partitions - the result should be a
bootable card with an image of the source device.
%prep
%autosetup -n piclone-%commit
%build
%meson
%meson_build
%install
%meson_install
%files
%doc README
%license debian/copyright
%{_bindir}/piclone
%{_datadir}/applications/piclone.desktop
%{_datadir}/locale/de/LC_MESSAGES/piclone.mo
%{_datadir}/locale/en_GB/LC_MESSAGES/piclone.mo
%{_datadir}/locale/hy/LC_MESSAGES/piclone.mo
%{_datadir}/locale/it/LC_MESSAGES/piclone.mo
%{_datadir}/locale/ko/LC_MESSAGES/piclone.mo
%{_datadir}/locale/nb/LC_MESSAGES/piclone.mo
%{_datadir}/locale/sk/LC_MESSAGES/piclone.mo
%{_datadir}/locale/zh_CN/LC_MESSAGES/piclone.mo
%{_datadir}/piclone/piclone.ui
%changelog
* Thu Aug 07 2025 Owen Zimmerman <owen@fyralabs.com>
- Package piclone
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("raspberrypi-ui/piclone"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}