File qdl.spec of Package qdl
#
# spec file for package qdl
#
Name: qdl
Version: 2.4
Release: 2
Summary: Qualcomm Download tool
License: BSD-3-Clause
Group: Development/Tools/Other
URL: https://github.com/andersson/qdl
Source0: https://deb.debian.org/debian/pool/main/q/qdl/qdl_%{version}.orig.tar.gz
BuildRequires: libudev-devel
BuildRequires: libxml2-devel
BuildRequires: libusb-devel
BuildRequires: pkgconfig
# Install all helper tools by default (openSUSE behavior)
Recommends: %{name}-ramdump
Recommends: %{name}-ks
%description
qdl is a tool to communicate with Qualcomm devices in EDL mode
(USB id 05c6:9008) to upload programmers and flash images.
# ============================================================
%package ramdump
Summary: Qualcomm RAM dump utility
Group: Development/Tools/Other
Requires: %{name} = %{version}-%{release}
Provides: qdl-ramdump = %{version}-%{release}
Conflicts: qdl < 2.4
%description ramdump
qdl-ramdump is a helper utility for dumping RAM from Qualcomm
devices in EDL mode.
# ============================================================
%package ks
Summary: Qualcomm key-store utility
Group: Development/Tools/Other
Requires: %{name} = %{version}-%{release}
Provides: ks = %{version}-%{release}
Provides: qdl-ks = %{version}-%{release}
Conflicts: qdl < 2.4
%description ks
ks is a helper utility used for interacting with Qualcomm secure
loaders and key-store related operations.
# ============================================================
%prep
%autosetup -n qdl-%{version}
%build
# Ensure installation under /usr instead of /usr/local
sed -i 's|^prefix *= */usr/local|prefix = /usr|' Makefile
%make_build
%install
%make_install prefix=%{_prefix}
# ============================================================
%files
%license LICENSE
%{_bindir}/qdl
%files ramdump
%{_bindir}/qdl-ramdump
%files ks
%{_bindir}/ks
# ============================================================
%changelog
* Thu Jan 22 2026 Krzysztof Demir Kuźniak <krzysztofdemirkuzniak@gmail.com> - 2.4-2
- add debuginfo
* Mon Jan 19 2026 Krzysztof Demir Kuźniak <krzysztofdemirkuzniak@gmail.com> - 2.4-1
- Update to qdl 2.4 (Debian orig tarball)
- Split qdl-ramdump and ks into subpackages
- Add Provides/Conflicts for compatibility
- Add Recommends so `zypper install qdl` installs all tools