fix (picotool): version (#9393) (#9402)

* fix (picotool): version



* update script



---------


(cherry picked from commit 8440761ec2)

Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2026-01-20 17:45:03 -08:00
committed by GitHub
parent a8f4063da0
commit 7c5c0a4e35
2 changed files with 11 additions and 6 deletions
+10 -5
View File
@@ -1,11 +1,14 @@
%define sdk_version 2.2.0
%global ver 2.2.0-a4
%global sanitized_ver %(echo %{ver} | sed 's/-//g')
Name: picotool
Version: 2.2.0.a4
Version: %sanitized_ver
Release: 1%?dist
Summary: Tool to inspect RP2040 binaries
License: BSD-3-Clause
URL: https://github.com/raspberrypi/picotool
Source0: https://github.com/raspberrypi/picotool/archive/%version.tar.gz#/picotool-%version.tar.gz
Source0: https://github.com/raspberrypi/picotool/archive/refs/tags/%ver.tar.gz
Source1: https://github.com/raspberrypi/pico-sdk/archive/%sdk_version.tar.gz#/pico-sdk-%sdk_version.tar.gz
BuildRequires: cmake g++ libusb1-devel
@@ -13,7 +16,7 @@ BuildRequires: cmake g++ libusb1-devel
Picotool is a tool for inspecting RP2040 binaries, and interacting with RP2040 devices when they are in BOOTSEL mode.
%prep
%autosetup -a 1
%autosetup -a 1 -n %name-%ver
%build
%cmake -DPICO_SDK_PATH="../pico-sdk-%sdk_version"
@@ -28,8 +31,10 @@ mv %buildroot{%_prefix/lib,%_libdir}
%doc README.md
%license LICENSE.TXT
%_bindir/picotool
%_libdir/cmake/picotool
%_datadir/picotool
%dir %_libdir/cmake/picotool
%_libdir/cmake/picotool/*
%dir %_datadir/picotool
%_datadir/picotool/*
%changelog
* Mon Nov 18 2024 Owen-sz <owen@fyralabs.com>
+1 -1
View File
@@ -1,2 +1,2 @@
rpm.version(gh("raspberrypi/picotool"));
rpm.global("ver", gh("raspberrypi/picotool"));
rpm.define("sdk_version", gh("raspberrypi/pico-sdk"));