From 725fd80b4a36c2869f38d6b7ebf1e2635ba9b543af28393177b11e370e2be25d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20=C3=87al=C4=B1=C5=9Fkan?= Date: Wed, 27 Jan 2021 19:48:05 +0000 Subject: [PATCH] Accepting request 867292 from home:pluskalm:branches:devel:tools - Polish spec file: * honor distribution flags * use more of macros OBS-URL: https://build.opensuse.org/request/show/867292 OBS-URL: https://build.opensuse.org/package/show/devel:tools/qdl?expand=0&rev=2 --- qdl.changes | 7 +++++++ qdl.spec | 35 ++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/qdl.changes b/qdl.changes index 3ee2ffb..4d33954 100644 --- a/qdl.changes +++ b/qdl.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 27 19:26:54 UTC 2021 - Martin Pluskal + +- Polish spec file: + * honor distribution flags + * use more of macros + ------------------------------------------------------------------- Wed Jan 27 18:01:59 UTC 2021 - mustug385@gmail.com diff --git a/qdl.spec b/qdl.spec index 890c9a5..e5c6c90 100644 --- a/qdl.spec +++ b/qdl.spec @@ -1,7 +1,7 @@ # # spec file for package qdl # -# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,35 +12,36 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: qdl -Version: 1.0+git.20190503 -Release: 0 -License: BSD-3-Clause -Group: Development/Tools/Other + +Name: qdl +Version: 1.0+git.20190503 +Release: 0 +Summary: A tool for flash images to Qualcomm based systems +License: BSD-3-Clause +Group: Development/Tools/Other +URL: https://github.com/andersson/qdl #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 +Source: %{name}-%{version}.tar.xz +BuildRequires: gcc +BuildRequires: libudev-devel +BuildRequires: libxml2-devel %description -This tool communicates with USB devices of id 05c6:9008 to upload a flash +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" +%make_build CFLAGS="%{optflags} -fpie -g -I/usr/include/libxml2" \ + LDFLAGS="-lxml2 -lz -llzma -lm -ldl -ludev -pie" %install -%make_install prefix="/usr" +%make_install prefix="%{_prefix}" %files %license LICENSE