%global gitdate 20250307 %global commit 304f073752fd25c854e1bcf05d8e7f925b1f4e14 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global version 1.33 %global release 0.1 # set this to "1" if building a git/beta/rc release %global beta_or_rc 1 #============================================================================= # general #----------------------------------------------------------------------------- Name: rkdeveloptool Version: %{version} %if %{beta_or_rc} Release: %{release}.%{gitdate}.git%{shortcommit}%{?dist} %else Release: %{release}%{?dist} %endif Summary: Tools for working with Rockchip processors License: GPL-2.0-only URL: https://github.com/rockchip-linux/rkdeveloptool %if %{beta_or_rc} Source0: https://github.com/rockchip-linux/rkdeveloptool/archive/%{commit}/%{name}-%{version}-git%{shortcommit}.tar.gz %else Source0: https://github.com/rockchip-linux/rkdeveloptool/archive/%{version}/%{name}-%{version}.tar.gz %endif Source1: rkdeveloptool.udev Patch0: rkdeveloptool-PR48.patch Patch1: rkdeveloptool-PR110.patch # BuildRequires: autoconf automake BuildRequires: make BuildRequires: gcc-c++ BuildRequires: libusbx-devel BuildRequires: systemd-devel %description This package provides tools to communicate with various Rockchip processors which support the RockUSB protocol (e.g rk3288, rk3328, rk3399, rk356x). The tool includes support to interact with the processors' low-level bootrom (known as MaskROM) as well as interact with the recovery or firmware-download protocol rockusb. This makes it possible to upload firmware to flash, download firmware from flash, erase flash, reset the device, read manufacturing information from the processor as well as various other commands. Also see: https://github.com/martinSusz/rkdeveloptool/wiki/Generating--quasi-reproducible-BootROM-firmware-for-Rock-Chips-SoC #============================================================================= # prep #----------------------------------------------------------------------------- %prep %if %{beta_or_rc} %autosetup -p1 -n %{name} %else %autosetup -p1 -n %{name}-%{version} %endif #============================================================================= # build #----------------------------------------------------------------------------- %build NOCONFIGURE=1 autoreconf -vif %configure %make_build #============================================================================= # install #----------------------------------------------------------------------------- %install %make_install # install udev rules install -D -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/99-rkdeveloptool.rules #============================================================================= # files #----------------------------------------------------------------------------- %files %license license.txt %doc Readme.txt %{_bindir}/rkdeveloptool %{_udevrulesdir}/99-rkdeveloptool.rules #============================================================================= # changelog #----------------------------------------------------------------------------- %changelog * Sun Aug 10 2025 Patrick Laimbock - 1.33-0.1 - update to git rev 304f073752fd25c854e1bcf05d8e7f925b1f4e14 - add rkdeveloptool-PR110.patch * Wed Jul 24 2024 Patrick Laimbock - 1.32-20 - sync with fedora spec - push release well past the fedora one (currently 9) - add RK3568 to udev rules - add rkdeveloptool-PR48.patch * Wed Jul 24 2024 Patrick Laimbock - 1.32-0.1 - initial release for F40 - patch from the debian package