%global commit 9a396579d0217e75ec3da555453145fb6e062177 %global gittag 1.7.2 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %define debug_package %nil Name: hdr10plus-tool Version: %{gittag} Release: 2.%{shortcommit}%{?dist} Summary: CLI utility to work with HDR10+ in HEVC files License: MIT URL: https://github.com/quietvoid/hdr10plus_tool Source0: https://github.com/quietvoid/hdr10plus_tool/archive/%{commit}/hdr10plus_tool-%{shortcommit}.tar.gz BuildRequires: cargo, gcc-c++, fontconfig-devel %description CLI utility to work with HDR10+ in HEVC files. %prep %setup -n hdr10plus_tool-%{commit} %build cargo build --profile release-deploy %install rm -rf $RPM_BUILD_ROOT install -D -m 0755 target/release-deploy/hdr10plus_tool $RPM_BUILD_ROOT/usr/bin/hdr10plus_tool %files %license LICENSE %doc README.md /usr/bin/hdr10plus_tool %changelog * Thu Jan 22 2026 System User for dev -