#2 Use standard Fedora build flags
Opened 6 years ago by rdossant. Modified 6 years ago
rpms/ rdossant/fwupdate master  into  rawhide

file modified
+8 -3
@@ -5,7 +5,7 @@ 

  

  Name:           fwupdate

  Version:        11

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        Tools to manage UEFI firmware updates

  License:        GPLv2+

  URL:            https://github.com/rhinstaller/fwupdate
@@ -97,7 +97,8 @@ 

  

  %build

  cd build-%{efiarch}

- make TOPDIR=.. -f ../Makefile OPT_FLAGS="$RPM_OPT_FLAGS" \

+ make TOPDIR=.. -f ../Makefile CFLAGS="%{build_cflags}" \

+      LDFLAGS="%{build_ldflags}" \

       libdir=%{_libdir} bindir=%{_bindir} \

       EFIDIR=%{efidir} %{?_smp_mflags}

  mv -v efi/fwup%{efiarch}.efi efi/fwup%{efiarch}.unsigned.efi
@@ -107,7 +108,8 @@ 

  %ifarch x86_64

  cd build-%{efialtarch}

  setarch linux32 -B make TOPDIR=.. -f ../Makefile ARCH=%{efialtarch} \

-                         OPT_FLAGS="$RPM_OPT_FLAGS" \

+                         CFLAGS="%{build_cflags}"  \

+                         LDFLAGS="%{build_ldflags}" \

                          libdir=%{_libdir} bindir=%{_bindir} \

                          EFIDIR=%{efidir} %{?_smp_mflags}

  mv -v efi/fwup%{efialtarch}.efi efi/fwup%{efialtarch}.unsigned.efi
@@ -197,6 +199,9 @@ 

  %defattr(-,root,root)

  

  %changelog

+ * Fri Apr 20 2018 Rafael dos Santos <rdossant@redhat.com> - 11-2

+ - Use standard Fedora build flags (bug #1539099)

+ 

  * Mon Apr 09 2018 Peter Jones <pjones@redhat.com> - 11-1

  - Update to fwupdate 11

  

  • Resolves #1539099

Signed-off-by: Rafael dos Santos rdossant@redhat.com