Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[el10] Add: rpi-update (#2634) #2642

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions anda/tools/rpi-update/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
project pkg {
arches = ["aarch64"]
rpm {
spec = "rpi-update.spec"
}
labels {
nightly = 1
}
}
35 changes: 35 additions & 0 deletions anda/tools/rpi-update/rpi-update.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
%define debug_package %nil

%global commit 7ce981c2125b2dd780f4e88dc320e1570dc4c51e
%global commit_date 20240910
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name: rpi-update
Version: %commit_date.git~%shortcommit
Release: 1%?dist
Summary: An easier way to update the firmware of your Raspberry Pi.
License: MIT
URL: https://github.com/raspberrypi/rpi-update
Source0: %url/archive/%commit.tar.gz
Requires: bash
ExclusiveArch: aarch64

%description
%summary

%prep
%autosetup -n rpi-update-%commit

%build

%install
install -Dm755 rpi-update %buildroot%_bindir/rpi-update

%files
%doc README.md
%license LICENSE
%_bindir/rpi-update

%changelog
* Sat Dec 14 2024 Owen Zimmerman <[email protected]>
- Package rpi-update
5 changes: 5 additions & 0 deletions anda/tools/rpi-update/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("raspberrypi/rpi-update"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}
Loading