#4 Use %set_build_flags instead of passing build flags individually
Opened 3 years ago by tbaeder. Modified 3 years ago
rpms/ tbaeder/dwz rawhide  into  rawhide

file modified
+7 -4
@@ -1,7 +1,7 @@ 

  Summary: DWARF optimization and duplicate removal tool

  Name: dwz

  Version: 0.14

- Release: 1%{?dist}

+ Release: 2%{?dist}

  License: GPLv2+ and GPLv3+

  Source: %{name}-0.14.tar.xz

  BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu
@@ -20,12 +20,12 @@ 

  %setup -q -n dwz

  

  %build

- %make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \

-   prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}

+ %set_build_flags

+ %make_build

  

  %install

  rm -rf %{buildroot}

- %make_install prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}

+ %make_install

  

  %check

  make check
@@ -36,6 +36,9 @@ 

  %{_mandir}/man1/dwz.1*

  

  %changelog

+ * Wed Apr 14 2021 Timm Bäder <tbaeder@redhat.com> 0.14-2

+ - Use set_build_flags macro

+ 

  * Tue Mar 09 2021 Jakub Jelinek <jakub@redhat.com> 0.14-1

  - update to a new upstream release

  

no initial comment
Metadata