qdl/qdl.spec
Martin Pluskal 388ab4b61a Accepting request 867280 from home:musfay
A tool for flashing firmware to qualcomm based systems eg. Smartphones, dragonboard

OBS-URL: https://build.opensuse.org/request/show/867280
OBS-URL: https://build.opensuse.org/package/show/devel:tools/qdl?expand=0&rev=1
2021-01-27 19:24:36 +00:00

50 lines
1.5 KiB
RPMSpec

#
# spec file for package qdl
#
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: qdl
Version: 1.0+git.20190503
Release: 0
License: BSD-3-Clause
Group: Development/Tools/Other
#Source https://github.com/andersson/qdl/archive/master.tar.gz
Source: %{name}-%{version}.tar.xz
Url: https://github.com/andersson/qdl
BuildRequires: libxml2-devel
BuildRequires: libudev-devel
BuildRequires: gcc
Summary: A tool for flash images to Qualcomm based systems
%description
This tool communicates with USB devices of id 05c6:9008 to upload a flash
loader and use this to flash images. Mostly Qualcomm based systems.
%prep
%setup -q
%build
make CFLAGS="-O2 -Wall -fpie -g -I/usr/include/libxml2" \
LDFLAGS="-lxml2 -lz -llzma -lm -ldl -ludev -pie"
%install
%make_install prefix="/usr"
%files
%license LICENSE
%{_bindir}/%{name}
%changelog