File tree 3 files changed +49
-0
lines changed
3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ project pkg {
2
+ arches = [" aarch64" ]
3
+ rpm {
4
+ spec = " rpi-update.spec"
5
+ }
6
+ labels {
7
+ nightly = 1
8
+ }
9
+ }
Original file line number Diff line number Diff line change
1
+ %define debug_package %nil
2
+
3
+ %global commit 7ce981c2125b2dd780f4e88dc320e1570dc4c51e
4
+ %global commit_date 20240910
5
+ %global shortcommit %(c= %{commit }; echo ${c:0:7})
6
+
7
+ Name: rpi-update
8
+ Version: %commit_date .git~%shortcommit
9
+ Release: 1%?dist
10
+ Summary: An easier way to update the firmware of your Raspberry Pi.
11
+ License: MIT
12
+ URL: https://github.com/raspberrypi/rpi-update
13
+ Source0: %url /archive/%commit .tar.gz
14
+ Requires: bash
15
+ ExclusiveArch: aarch64
16
+
17
+ %description
18
+ %summary
19
+
20
+ %prep
21
+ %autosetup -n rpi-update-%commit
22
+
23
+ %build
24
+
25
+ %install
26
+ install -Dm755 rpi-update %buildroot %_bindir /rpi-update
27
+
28
+ %files
29
+ %doc README.md
30
+ %license LICENSE
31
+ %_bindir /rpi-update
32
+
33
+ %changelog
34
+ *
Sat Dec 14 2024 Owen Zimmerman <[email protected] >
35
+ - Package rpi-update
Original file line number Diff line number Diff line change
1
+ rpm.global("commit", gh_commit("raspberrypi/rpi-update"));
2
+ if rpm.changed() {
3
+ rpm.release();
4
+ rpm.global("commit_date", date());
5
+ }
You can’t perform that action at this time.
0 commit comments