From f76e767ab0608352587f1d2d99fb10c9a9b436b3 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 8 Aug 2025 18:45:29 -0700 Subject: [PATCH] Add: rp-bookshelf (#6025) (#6030) (cherry picked from commit 3f4c4e1f29ca3f73012399aef35ef86592f9105a) Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/apps/rp-bookshelf/anda.hcl | 5 +++ anda/apps/rp-bookshelf/rp-bookshelf.spec | 50 ++++++++++++++++++++++++ anda/apps/rp-bookshelf/update.rhai | 5 +++ 3 files changed, 60 insertions(+) create mode 100644 anda/apps/rp-bookshelf/anda.hcl create mode 100644 anda/apps/rp-bookshelf/rp-bookshelf.spec create mode 100644 anda/apps/rp-bookshelf/update.rhai diff --git a/anda/apps/rp-bookshelf/anda.hcl b/anda/apps/rp-bookshelf/anda.hcl new file mode 100644 index 0000000000..c17d264801 --- /dev/null +++ b/anda/apps/rp-bookshelf/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rp-bookshelf.spec" + } +} diff --git a/anda/apps/rp-bookshelf/rp-bookshelf.spec b/anda/apps/rp-bookshelf/rp-bookshelf.spec new file mode 100644 index 0000000000..1a52bd980e --- /dev/null +++ b/anda/apps/rp-bookshelf/rp-bookshelf.spec @@ -0,0 +1,50 @@ +%global commit 53102fb6f4b0324cc89635f0ef58966c6b847a74 +%global commit_date 20250327 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: rp-bookshelf +Version: 0~%commit_date.git~%shortcommit +Release: 1%?dist +Summary: Browser for Raspberry Pi Press publications in PDF format +License: BSD-3-Clause +URL: https://github.com/raspberrypi-ui/bookshelf +Source0: %url/archive/%commit.tar.gz +Packager: Owen Zimmerman + +BuildRequires: meson +BuildRequires: ninja-build +BuildRequires: gtk3-devel +BuildRequires: libcurl-devel +BuildRequires: intltool +BuildRequires: gcc + +Requires: libcurl gtk3 + +%description +%summary. + +%prep +%autosetup -n bookshelf-%commit + +%build +%meson +%meson_build + +%install +%meson_install +%find_lang %{name} + +%files -f %{name}.lang +%doc README +%license debian/copyright +%{_bindir}/rp-bookshelf +%{_datadir}/icons/hicolor/16x16/apps/bookshelf.png +%{_datadir}/icons/hicolor/24x24/apps/bookshelf.png +%{_datadir}/icons/hicolor/32x32/apps/bookshelf.png +%{_datadir}/icons/hicolor/48x48/apps/bookshelf.png +%{_datadir}/applications/rp-bookshelf.desktop +%{_datadir}/rp-bookshelf/* + +%changelog +* Fri Aug 08 2025 Owen Zimmerman +- Package bookshelf diff --git a/anda/apps/rp-bookshelf/update.rhai b/anda/apps/rp-bookshelf/update.rhai new file mode 100644 index 0000000000..40506e0928 --- /dev/null +++ b/anda/apps/rp-bookshelf/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("raspberrypi-ui/bookshelf")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}