Hello community,

here is the log from the commit of package fwupd for openSUSE:Factory checked 
in at 2018-12-11 15:46:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fwupd (Old)
 and      /work/SRC/openSUSE:Factory/.fwupd.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fwupd"

Tue Dec 11 15:46:07 2018 rev:12 rq:657067 version:1.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/fwupd/fwupd.changes      2018-11-26 
10:12:16.642297027 +0100
+++ /work/SRC/openSUSE:Factory/.fwupd.new.19453/fwupd.changes   2018-12-11 
15:46:37.478286228 +0100
@@ -1,0 +2,15 @@
+Mon Dec 10 10:17:50 UTC 2018 - [email protected]
+
+- Use gnu-efi only if %{with efi_fw_update}, always use pkgconfig(efivar)
+- Fix file list
+
+-------------------------------------------------------------------
+Thu Dec  6 07:22:17 UTC 2018 - Gary Ching-Pang Lin <[email protected]>
+
+- Amend %post and %postun to install/uninstall fwupd*.efi to the
+  EFI system partition
+  + Also add shim to Requires for fwupdx64.efi
+- Mark fwupdate as obsolete
+  + fwupdate has been merged into fwupd since fwupd 1.1.0.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fwupd.spec ++++++
--- /var/tmp/diff_new_pack.qs6rnj/_old  2018-12-11 15:46:38.122285519 +0100
+++ /var/tmp/diff_new_pack.qs6rnj/_new  2018-12-11 15:46:38.122285519 +0100
@@ -21,6 +21,11 @@
 %else
 %bcond_with efi_fw_update
 %endif
+%if 0%{?is_opensuse}
+%global efidir opensuse
+%else
+%global efidir sles
+%endif
 Name:           fwupd
 Version:        1.1.2
 Release:        0
@@ -32,7 +37,6 @@
 BuildRequires:  dejavu-fonts
 BuildRequires:  docbook-utils-minimal
 BuildRequires:  gcab
-BuildRequires:  gnu-efi
 # for certtool
 BuildRequires:  gnutls
 BuildRequires:  gobject-introspection
@@ -53,6 +57,7 @@
 BuildRequires:  pkgconfig(bash-completion)
 BuildRequires:  pkgconfig(cairo)
 BuildRequires:  pkgconfig(colorhug) >= 1.2.12
+BuildRequires:  pkgconfig(efivar)
 BuildRequires:  pkgconfig(gio-2.0) >= 2.25.9
 BuildRequires:  pkgconfig(gio-unix-2.0)
 BuildRequires:  pkgconfig(glib-2.0) >= 2.45.8
@@ -74,13 +79,19 @@
 BuildRequires:  pkgconfig(udev)
 BuildRequires:  pkgconfig(valgrind)
 %if %{with efi_fw_update}
+BuildRequires:  gnu-efi
 BuildRequires:  pkgconfig(efiboot)
-BuildRequires:  pkgconfig(efivar)
 BuildRequires:  pkgconfig(fwup) >= 10
 %endif
 %ifarch %{ix86} x86_64
 BuildRequires:  pkgconfig(libsmbios_c) >= 2.3.0
 %endif
+%if %{with efi_fw_update}
+%ifarch x86_64
+Requires:       shim >= 11
+%endif
+Obsoletes:      fwupdate
+%endif
 
 %description
 fwupd is a daemon to allows session software to update device firmware on
@@ -168,9 +179,25 @@
 %post
 %udev_rules_update
 %service_add_post %{name}.service fwupd-offline-update.service
+%if %{with efi_fw_update}
+if [ -d "/boot/efi/EFI/%{efidir}" ]; then
+       # Create the directory for firwmare update capsules
+       mkdir -p /boot/efi/EFI/%{efidir}/fw
+       # Install the UEFI firmware update program
+       cp %{_libexecdir}/fwupd/efi/fwupd*.efi /boot/efi/EFI/%{efidir}
+fi
+%endif
 
 %postun
 %service_del_postun %{name}.service fwupd-offline-update.service
+%if %{with efi_fw_update}
+if [ "$1" = 0 && -d "/boot/efi/EFI/%{efidir}" ] ; then
+       # Remove all capsule files
+       rm -rf /boot/efi/EFI/%{efidir}/fw
+       # Remove the UEFI firmware update program
+       rm -f /boot/efi/EFI/%{efidir}/fwupd*.efi
+fi
+%endif
 
 %files
 %license COPYING
@@ -220,7 +247,9 @@
 %{_libdir}/girepository-1.0/Fwupd-2.0.typelib
 
 %files lang -f %{name}.lang
+%if %{with efi_fw_update}
 %{_datadir}/locale/*/LC_IMAGES/
+%endif
 
 %files devel
 %doc %{_datadir}/gtk-doc/html/libfwupd/


Reply via email to