|
|
@ -53,13 +53,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Firmware update daemon
|
|
|
|
Summary: Firmware update daemon
|
|
|
|
Name: fwupd
|
|
|
|
Name: fwupd
|
|
|
|
Version: 1.8.16
|
|
|
|
Version: 1.8.10
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}.inferit
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/fwupd/fwupd
|
|
|
|
URL: https://github.com/fwupd/fwupd
|
|
|
|
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
|
|
|
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
|
|
|
Source2: http://people.freedesktop.org/~hughsient/releases/fwupd-efi-1.4.tar.xz
|
|
|
|
Source2: http://people.freedesktop.org/~hughsient/releases/fwupd-efi-1.4.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Patch1: 0001-trivial-Fix-build-fix-when-using-ppc64le-system.patch
|
|
|
|
|
|
|
|
Patch2: 0001-Only-include-the-attribute-not-exported-warning-on-d.patch
|
|
|
|
|
|
|
|
Patch3: 0001-Do-not-make-any-of-the-HWIDs-setup-failures-fatal.patch
|
|
|
|
|
|
|
|
Patch4: 0001-modem-manager-remove-improper-use-of-assert.patch
|
|
|
|
|
|
|
|
Patch5: 0001-wacom-usb-Retry-set_report-on-failure.patch
|
|
|
|
|
|
|
|
|
|
|
|
Patch101: 0001-generate_binary-Add-NX-COMPAT-flag-manually-when-gen.patch
|
|
|
|
Patch101: 0001-generate_binary-Add-NX-COMPAT-flag-manually-when-gen.patch
|
|
|
|
|
|
|
|
|
|
|
|
Source10: http://people.redhat.com/rhughes/dbx/DBXUpdate-20100307-x64.cab
|
|
|
|
Source10: http://people.redhat.com/rhughes/dbx/DBXUpdate-20100307-x64.cab
|
|
|
@ -72,16 +78,10 @@ Source16: http://people.redhat.com/rhughes/dbx/DBXUpdate-20210429-x64.cab
|
|
|
|
Source17: http://people.redhat.com/rhughes/dbx/DBXUpdate-20220812-aa64.cab
|
|
|
|
Source17: http://people.redhat.com/rhughes/dbx/DBXUpdate-20220812-aa64.cab
|
|
|
|
Source18: http://people.redhat.com/rhughes/dbx/DBXUpdate-20220812-ia32.cab
|
|
|
|
Source18: http://people.redhat.com/rhughes/dbx/DBXUpdate-20220812-ia32.cab
|
|
|
|
Source19: http://people.redhat.com/rhughes/dbx/DBXUpdate-20220812-x64.cab
|
|
|
|
Source19: http://people.redhat.com/rhughes/dbx/DBXUpdate-20220812-x64.cab
|
|
|
|
Source20: http://people.redhat.com/rhughes/dbx/DBXUpdate-20230509-aa64.cab
|
|
|
|
|
|
|
|
Source21: http://people.redhat.com/rhughes/dbx/DBXUpdate-20230509-ia32.cab
|
|
|
|
|
|
|
|
Source22: http://people.redhat.com/rhughes/dbx/DBXUpdate-20230509-x64.cab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# these are numbered high just to keep them wildly away from colliding with
|
|
|
|
# MSVSphere secureboot certificates
|
|
|
|
# the real package sources, in order to reduce churn.
|
|
|
|
Source1000: spheresecurebootca.cer
|
|
|
|
Source300: redhatsecurebootca3.cer
|
|
|
|
Source1001: spheresecureboot001.cer
|
|
|
|
Source301: redhatsecureboot301.cer
|
|
|
|
|
|
|
|
Source500: redhatsecurebootca5.cer
|
|
|
|
|
|
|
|
Source503: redhatsecureboot503.cer
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
@ -205,6 +205,11 @@ can be flashed using flashrom. It is probably not required on servers.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p subprojects/fwupd-efi
|
|
|
|
mkdir -p subprojects/fwupd-efi
|
|
|
|
tar xfvs %{SOURCE2} -C subprojects/fwupd-efi --strip-components=1
|
|
|
|
tar xfvs %{SOURCE2} -C subprojects/fwupd-efi --strip-components=1
|
|
|
@ -248,11 +253,11 @@ cd -
|
|
|
|
-Dplugin_tpm=enabled \
|
|
|
|
-Dplugin_tpm=enabled \
|
|
|
|
-Defi_os_dir=%{efi_vendor} \
|
|
|
|
-Defi_os_dir=%{efi_vendor} \
|
|
|
|
%ifarch x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_id="rhel" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_id="msvsphere" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_summary="Red Hat Enterprise Linux" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_summary="MSVSphere" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_pkgname="%{name}" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_pkgname="%{name}" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_version="%{version}" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_version="%{version}" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_url="mail:secalert@redhat.com" \
|
|
|
|
-Dfwupd-efi:efi_sbat_distro_url="mailto:security@msvsphere.ru" \
|
|
|
|
-Dfwupd-efi:efi-libdir="/usr/lib64" \
|
|
|
|
-Dfwupd-efi:efi-libdir="/usr/lib64" \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -271,7 +276,6 @@ cd -
|
|
|
|
-Dplugin_modem_manager=disabled \
|
|
|
|
-Dplugin_modem_manager=disabled \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
-Dman=true \
|
|
|
|
-Dman=true \
|
|
|
|
-Dcompat_cli=true \
|
|
|
|
|
|
|
|
-Dbluez=disabled \
|
|
|
|
-Dbluez=disabled \
|
|
|
|
-Dcbor=disabled \
|
|
|
|
-Dcbor=disabled \
|
|
|
|
-Dplugin_android_boot=disabled \
|
|
|
|
-Dplugin_android_boot=disabled \
|
|
|
@ -297,18 +301,13 @@ cd -
|
|
|
|
|
|
|
|
|
|
|
|
# on RHEL the LVFS is disabled by default
|
|
|
|
# on RHEL the LVFS is disabled by default
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/dbxtool
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/dbxtool
|
|
|
|
install \
|
|
|
|
install %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} %{buildroot}/%{_datadir}/dbxtool
|
|
|
|
%{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} \
|
|
|
|
|
|
|
|
%{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} %{SOURCE20} %{SOURCE21} %{SOURCE22} \
|
|
|
|
|
|
|
|
%{buildroot}/%{_datadir}/dbxtool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# sign fwupd.efi loader
|
|
|
|
# sign fwupd.efi loader
|
|
|
|
%ifarch x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
%global efiarch x64
|
|
|
|
%global efiarch x64
|
|
|
|
%global fwup_efi_fn $RPM_BUILD_ROOT%{_libexecdir}/fwupd/efi/fwupd%{efiarch}.efi
|
|
|
|
%global fwup_efi_fn $RPM_BUILD_ROOT%{_libexecdir}/fwupd/efi/fwupd%{efiarch}.efi
|
|
|
|
%pesign -s -i %{fwup_efi_fn} -o %{fwup_efi_fn}.tmp -a %{SOURCE300} -c %{SOURCE301} -n redhatsecureboot301
|
|
|
|
%pesign -s -i %{fwup_efi_fn} -o %{fwup_efi_fn}.signed -a %{SOURCE1000} -c %{SOURCE1001} -n spheresecureboot001
|
|
|
|
%pesign -s -i %{fwup_efi_fn}.tmp -o %{fwup_efi_fn}.signed -a %{SOURCE500} -c %{SOURCE503} -n redhatsecureboot503
|
|
|
|
|
|
|
|
rm -fv %{fwup_efi_fn}.tmp
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
|
|
|
|
mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
|
|
|
@ -336,7 +335,7 @@ done
|
|
|
|
%systemd_postun_with_restart pesign.service
|
|
|
|
%systemd_postun_with_restart pesign.service
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md AUTHORS
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%config(noreplace)%{_sysconfdir}/fwupd/daemon.conf
|
|
|
|
%config(noreplace)%{_sysconfdir}/fwupd/daemon.conf
|
|
|
|
%if 0%{?have_uefi}
|
|
|
|
%if 0%{?have_uefi}
|
|
|
@ -386,6 +385,7 @@ done
|
|
|
|
%{_datadir}/dbus-1/system.d/org.freedesktop.fwupd.conf
|
|
|
|
%{_datadir}/dbus-1/system.d/org.freedesktop.fwupd.conf
|
|
|
|
%{_datadir}/bash-completion/completions/fwupdmgr
|
|
|
|
%{_datadir}/bash-completion/completions/fwupdmgr
|
|
|
|
%{_datadir}/bash-completion/completions/fwupdtool
|
|
|
|
%{_datadir}/bash-completion/completions/fwupdtool
|
|
|
|
|
|
|
|
%{_datadir}/bash-completion/completions/fwupdagent
|
|
|
|
%{_datadir}/fish/vendor_completions.d/fwupdmgr.fish
|
|
|
|
%{_datadir}/fish/vendor_completions.d/fwupdmgr.fish
|
|
|
|
%{_datadir}/fwupd/metainfo/org.freedesktop.fwupd*.metainfo.xml
|
|
|
|
%{_datadir}/fwupd/metainfo/org.freedesktop.fwupd*.metainfo.xml
|
|
|
|
%if 0%{?have_dell}
|
|
|
|
%if 0%{?have_dell}
|
|
|
@ -407,9 +407,6 @@ done
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20220812-aa64.cab
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20220812-aa64.cab
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20220812-ia32.cab
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20220812-ia32.cab
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20220812-x64.cab
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20220812-x64.cab
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20230509-aa64.cab
|
|
|
|
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20230509-ia32.cab
|
|
|
|
|
|
|
|
%{_datadir}/dbxtool/DBXUpdate-20230509-x64.cab
|
|
|
|
|
|
|
|
%{_mandir}/man1/fwupdtool.1*
|
|
|
|
%{_mandir}/man1/fwupdtool.1*
|
|
|
|
%{_mandir}/man1/fwupdagent.1*
|
|
|
|
%{_mandir}/man1/fwupdagent.1*
|
|
|
|
%{_mandir}/man1/dfu-tool.1*
|
|
|
|
%{_mandir}/man1/dfu-tool.1*
|
|
|
@ -437,7 +434,7 @@ done
|
|
|
|
%dir %{_datadir}/fwupd/quirks.d
|
|
|
|
%dir %{_datadir}/fwupd/quirks.d
|
|
|
|
%{_datadir}/fwupd/quirks.d/builtin.quirk.gz
|
|
|
|
%{_datadir}/fwupd/quirks.d/builtin.quirk.gz
|
|
|
|
%if 0%{?have_uefi}
|
|
|
|
%if 0%{?have_uefi}
|
|
|
|
%config(noreplace)%{_sysconfdir}/grub.d/35_fwupd
|
|
|
|
%{_sysconfdir}/grub.d/35_fwupd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{_libdir}/libfwupd.so.2*
|
|
|
|
%{_libdir}/libfwupd.so.2*
|
|
|
|
%{_libdir}/girepository-1.0/Fwupd-2.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/Fwupd-2.0.typelib
|
|
|
@ -484,15 +481,16 @@ done
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{_datadir}/installed-tests/fwupd/chassis_type
|
|
|
|
%{_datadir}/installed-tests/fwupd/chassis_type
|
|
|
|
%{_datadir}/installed-tests/fwupd/sys_vendor
|
|
|
|
%{_datadir}/installed-tests/fwupd/sys_vendor
|
|
|
|
|
|
|
|
%{_datadir}/fwupd/device-tests/*.json
|
|
|
|
%{_libexecdir}/installed-tests/fwupd/*
|
|
|
|
%{_libexecdir}/installed-tests/fwupd/*
|
|
|
|
%dir %{_sysconfdir}/fwupd/remotes.d
|
|
|
|
%dir %{_sysconfdir}/fwupd/remotes.d
|
|
|
|
%config(noreplace)%{_sysconfdir}/fwupd/remotes.d/fwupd-tests.conf
|
|
|
|
%config(noreplace)%{_sysconfdir}/fwupd/remotes.d/fwupd-tests.conf
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Jun 09 2023 Richard Hughes <richard@hughsie.com> 1.8.16-1
|
|
|
|
* Mon Jun 05 2023 Eugene Zamriy <ezamriy@msvsphere.ru> - 1.8.10-2.inferit
|
|
|
|
- Update to latest stable upstream version.
|
|
|
|
- Modified to use MSVSphere Secure Boot certificates
|
|
|
|
- Resolves: rhbz#2209944
|
|
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 02 2023 Richard Hughes <richard@hughsie.com> 1.8.10-2
|
|
|
|
* Thu Feb 02 2023 Richard Hughes <richard@hughsie.com> 1.8.10-2
|
|
|
|
- Rebuild because distrobaker did entirely the wrong thing.
|
|
|
|
- Rebuild because distrobaker did entirely the wrong thing.
|
|
|
|