(cherry picked from commit 53028ef003)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-11-22 22:49:43 -08:00
committed by GitHub
parent 4d87d167f9
commit 5fb826a9a6
3 changed files with 55 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
project pkg {
rpm {
spec = "qdl.spec"
}
labels {
nightly = 1
}
}
+42
View File
@@ -0,0 +1,42 @@
%global commit 661ca1cba2984d874effa5ee5864132b079fbba0
%global commit_date 20251120
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: qdl
Version: 0^%commit_date.%shortcommit
Release: 1%?dist
Summary: This tool communicates with USB devices of id 05c6:9008 to upload a flash loader and use this to flash images
URL: https://github.com/linux-msm/qdl
Source0: %{url}/archive/%{commit}/qdl-%{commit}.tar.gz
License: BSD-3-Clause
BuildRequires: make
BuildRequires: gcc
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libusb-1.0)
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%{summary}.
%prep
%autosetup -n qdl-%{commit}
%build
%make_build
%install
install -Dm755 qdl %{buildroot}%{_bindir}/qdl
install -Dm755 qdl %{buildroot}%{_bindir}/qdl-ramdump
install -Dm755 qdl %{buildroot}%{_bindir}/ks
%files
%{_bindir}/qdl
%{_bindir}/qdl-ramdump
%{_bindir}/ks
%license LICENSE
%doc README.md
%changelog
* Sun Nov 23 2025 Owen-sz <owen@fyralabs.com>
- Initial commit
+5
View File
@@ -0,0 +1,5 @@
rpm.global("commit", gh_commit("linux-msm/qdl"));
if rpm.changed() {
rpm.release();
rpm.global("commit_date", date());
}