Blame SPECS/fwupd.spec

83412f
# Enable hardening in RHEL 7
83412f
%global _hardened_build 1
83412f
83412f
%global glib2_version 2.45.8
83412f
%global libappstream_version 0.7.4
83412f
%global libgusb_version 0.2.9
83412f
%global libsoup_version 2.51.92
83412f
%global systemd_version 219
83412f
%global json_glib_version 1.1.1
83412f
83412f
%global enable_tests 0
83412f
%global enable_dummy 0
83412f
83412f
# fwupdate is only available on these arches
83412f
%ifarch x86_64 aarch64
83412f
%global have_uefi 1
83412f
%endif
83412f
83412f
# libsmbios is only available on x86, and fwupdate is available on just x86_64
83412f
%ifarch x86_64
83412f
%global have_dell 1
83412f
%endif
83412f
83412f
# valgrind is not available on s390
83412f
%ifarch x86_64 aarch64
83412f
%global have_valgrind 1
83412f
%endif
83412f
83412f
Summary:   Firmware update daemon
83412f
Name:      fwupd
83412f
Version:   1.0.8
83412f
Release:   5%{?dist}
83412f
License:   LGPLv2+
83412f
URL:       https://github.com/hughsie/fwupd
83412f
Source0:   http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
83412f
83412f
# neuter the LVFS
83412f
Patch2:    0001-Do-not-use-the-LVFS.patch
83412f
Patch3:    0002-Do-not-use-Python-version-3.patch
83412f
83412f
# backport
83412f
Patch6:    0001-Allow-running-on-an-older-systemd.patch
83412f
83412f
BuildRequires: gettext
83412f
BuildRequires: glib2-devel >= %{glib2_version}
83412f
BuildRequires: libappstream-glib-devel >= %{libappstream_version}
83412f
BuildRequires: libgudev1-devel
83412f
BuildRequires: libgusb-devel >= %{libgusb_version}
83412f
BuildRequires: libsoup-devel >= %{libsoup_version}
83412f
BuildRequires: polkit-devel >= 0.103
83412f
BuildRequires: sqlite-devel
83412f
BuildRequires: gpgme-devel
83412f
BuildRequires: systemd >= %{systemd_version}
83412f
BuildRequires: libarchive-devel
83412f
BuildRequires: gobject-introspection-devel
83412f
BuildRequires: gcab
83412f
%if 0%{?have_valgrind}
83412f
BuildRequires: valgrind
83412f
BuildRequires: valgrind-devel
83412f
%endif
83412f
BuildRequires: elfutils-libelf-devel
83412f
BuildRequires: gtk-doc
83412f
BuildRequires: libuuid-devel
83412f
BuildRequires: meson
83412f
BuildRequires: help2man
83412f
BuildRequires: json-glib-devel >= %{json_glib_version}
83412f
BuildRequires: vala
83412f
83412f
%if 0%{?have_dell}
83412f
BuildRequires: efivar-devel
83412f
BuildRequires: libsmbios-devel >= 2.3.0
83412f
%endif
83412f
83412f
%if 0%{?have_uefi}
83412f
BuildRequires: fwupdate-devel >= 10
83412f
%endif
83412f
83412f
Requires(post): systemd
83412f
Requires(preun): systemd
83412f
Requires(postun): systemd
83412f
83412f
Requires: glib2%{?_isa} >= %{glib2_version}
83412f
Requires: libappstream-glib%{?_isa} >= %{libappstream_version}
83412f
Requires: libgusb%{?_isa} >= %{libgusb_version}
83412f
Requires: libsoup%{?_isa} >= %{libsoup_version}
83412f
83412f
Obsoletes: fwupd-sign < 0.1.6
83412f
Obsoletes: libebitdo < 0.7.5-3
83412f
83412f
%description
83412f
fwupd is a daemon to allow session software to update device firmware.
83412f
83412f
%package devel
83412f
Summary: Development package for %{name}
83412f
Requires: %{name}%{?_isa} = %{version}-%{release}
83412f
Obsoletes: libebitdo-devel < 0.7.5-3
83412f
Obsoletes: libdfu-devel < 1.0.0
83412f
83412f
%description devel
83412f
Files for development with %{name}.
83412f
83412f
%prep
83412f
%setup -q
83412f
%patch2 -p1 -b .no-lvfs
83412f
%patch3 -p1 -b .no-python3
83412f
%patch6 -p1 -b .old-systemd
83412f
83412f
%build
83412f
83412f
%meson \
83412f
    -Dpkcs7=false \
83412f
    -Dgtkdoc=true \
83412f
%if 0%{?enable_tests}
83412f
    -Dtests=true \
83412f
%else
83412f
    -Dtests=false \
83412f
%endif
83412f
%if 0%{?enable_dummy}
83412f
    -Dplugin_dummy=true \
83412f
%else
83412f
    -Dplugin_dummy=false \
83412f
%endif
83412f
    -Dplugin_thunderbolt=true \
83412f
%if 0%{?have_uefi}
83412f
    -Dplugin_uefi=true \
83412f
    -Dplugin_uefi_labels=false \
83412f
%else
83412f
    -Dplugin_uefi=false \
83412f
    -Dplugin_uefi_labels=false \
83412f
%endif
83412f
%if 0%{?have_dell}
83412f
    -Dplugin_dell=true \
83412f
    -Dplugin_synaptics=true \
83412f
%else
83412f
    -Dplugin_dell=false \
83412f
    -Dplugin_synaptics=false \
83412f
%endif
83412f
    -Dman=true
83412f
83412f
%meson_build
83412f
83412f
%if 0%{?enable_tests}
83412f
%check
83412f
%meson_test
83412f
%endif
83412f
83412f
%install
83412f
%meson_install
83412f
83412f
mkdir -p --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
83412f
83412f
%find_lang %{name}
83412f
83412f
%post
83412f
/sbin/ldconfig
83412f
%systemd_post fwupd.service
83412f
83412f
%preun
83412f
%systemd_preun fwupd.service
83412f
83412f
%postun
83412f
/sbin/ldconfig
83412f
%systemd_postun_with_restart fwupd.service
83412f
83412f
%files -f %{name}.lang
83412f
%doc README.md AUTHORS NEWS
83412f
%license COPYING
83412f
%config(noreplace)%{_sysconfdir}/fwupd/daemon.conf
83412f
%if 0%{?have_uefi}
83412f
%config(noreplace)%{_sysconfdir}/fwupd/uefi.conf
83412f
%endif
83412f
%dir %{_libexecdir}/fwupd
83412f
%{_libexecdir}/fwupd/fwupd
83412f
%{_libexecdir}/fwupd/fwupdtool
83412f
%{_bindir}/dfu-tool
83412f
%{_bindir}/fwupdmgr
83412f
%dir %{_sysconfdir}/fwupd
83412f
%dir %{_sysconfdir}/fwupd/remotes.d
83412f
%config(noreplace)%{_sysconfdir}/fwupd/remotes.d/fwupd.conf
83412f
%config(noreplace)%{_sysconfdir}/fwupd/remotes.d/lvfs.conf
83412f
%config(noreplace)%{_sysconfdir}/fwupd/remotes.d/lvfs-testing.conf
83412f
%config(noreplace)%{_sysconfdir}/fwupd/remotes.d/vendor.conf
83412f
%config(noreplace)%{_sysconfdir}/pki/fwupd
83412f
%{_sysconfdir}/pki/fwupd-metadata
83412f
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.fwupd.conf
83412f
%{_datadir}/fwupd/metainfo/org.freedesktop.fwupd*.metainfo.xml
83412f
%{_datadir}/fwupd/remotes.d/fwupd/metadata.xml
83412f
%{_datadir}/fwupd/remotes.d/vendor/firmware/README.md
83412f
%{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml
83412f
%{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy
83412f
%{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules
83412f
%{_datadir}/dbus-1/system-services/org.freedesktop.fwupd.service
83412f
%{_datadir}/man/man1/dfu-tool.1.gz
83412f
%{_datadir}/man/man1/fwupdmgr.1.gz
83412f
%{_datadir}/metainfo/org.freedesktop.fwupd.metainfo.xml
83412f
%{_datadir}/fwupd/firmware-packager
83412f
%{_unitdir}/fwupd-offline-update.service
83412f
%{_unitdir}/fwupd.service
83412f
%{_unitdir}/system-update.target.wants/
83412f
%dir %{_localstatedir}/lib/fwupd
83412f
%dir %{_datadir}/fwupd/quirks.d
83412f
%{_datadir}/fwupd/quirks.d/*.quirk
83412f
%{_localstatedir}/lib/fwupd/builder/README.md
83412f
%{_libdir}/libfwupd*.so.*
83412f
%{_libdir}/girepository-1.0/Fwupd-2.0.typelib
83412f
/usr/lib/udev/rules.d/*.rules
83412f
%dir %{_libdir}/fwupd-plugins-3
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_altos.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_amt.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_colorhug.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_csr.so
83412f
%if 0%{?have_dell}
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_dell.so
83412f
%endif
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_dfu.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_ebitdo.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_nitrokey.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_steelseries.so
83412f
%if 0%{?have_dell}
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_synapticsmst.so
83412f
%endif
83412f
%if 0%{?enable_dummy}
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_test.so
83412f
%endif
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt_power.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_udev.so
83412f
%if 0%{?have_uefi}
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_uefi.so
83412f
%endif
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_unifying.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_upower.so
83412f
%{_libdir}/fwupd-plugins-3/libfu_plugin_wacomhid.so
83412f
%ghost %{_localstatedir}/lib/fwupd/gnupg
83412f
83412f
%files devel
83412f
%{_datadir}/gir-1.0/Fwupd-2.0.gir
83412f
%{_datadir}/gtk-doc/html/libfwupd
83412f
%{_datadir}/vala/vapi
83412f
%{_includedir}/fwupd-1
83412f
%{_libdir}/libfwupd*.so
83412f
%{_libdir}/pkgconfig/fwupd.pc
83412f
83412f
%changelog
83412f
* Tue Aug 13 2019 Richard Hughes <rhughes@redhat.com> 1.0.8-5
83412f
- Fix a multilib install issue.
83412f
- Resolves: #1623466
83412f
83412f
* Wed Sep 05 2018 Kalev Lember <klember@redhat.com> 1.0.8-4
83412f
- Build with full hardening enabled
83412f
- Resolves: #1616185
83412f
83412f
* Mon Jul 16 2018 Richard Hughes <rhughes@redhat.com> 1.0.8-3
83412f
- Backport a fix to allow properly running on older systemd versions.
83412f
- Resolves: #1601550
83412f
83412f
* Thu Jun 14 2018 Richard Hughes <rhughes@redhat.com> 1.0.8-2
83412f
- Build against the new libfwupdate
83412f
- Resolves: #1570028
83412f
83412f
* Fri Jun 08 2018 Richard Hughes <rhughes@redhat.com> 1.0.8-1
83412f
- New upstream release
83412f
- Resolves: #1570028
83412f
83412f
* Mon Jan 08 2018 Richard Hughes <richard@hughsie.com> 1.0.1-4
83412f
- Enable the libsmbios dependency to get the Dell plugin
83412f
- Resolves: #1420913
83412f
83412f
* Thu Nov 23 2017 Richard Hughes <richard@hughsie.com> 1.0.1-3
83412f
- Remove the runtime dep on bubblewrap.
83412f
- Resolves: #1512620
83412f
83412f
* Tue Nov 14 2017 Richard Hughes <richard@hughsie.com> 1.0.1-2
83412f
- Enable Synaptics MST hub updates.
83412f
- Resolves: #1420913
83412f
83412f
* Thu Nov 09 2017 Richard Hughes <richard@hughsie.com> 1.0.1-1
83412f
- Rebase to 1.0.1, specifically the wip/hughsie/rhel75 branch which adds
83412f
  back the automake build system and lowers the required versions of deps.
83412f
- This also un-neuters fwupd so that most of the plugins are functional,
83412f
  for instance allowing updates of Thunderbolt controllers and Logitech
83412f
  Unifying devices. However, the LVFS is still disabled.
83412f
- Resolves: #1313086
83412f
83412f
* Mon May 08 2017 Richard Hughes <richard@hughsie.com> 0.8.2-2
83412f
- Do not use the LVFS by default.
83412f
- Resolves: #1380827
83412f
83412f
* Thu Apr 20 2017 Richard Hughes <richard@hughsie.com> 0.8.2-1
83412f
- Initial upload for RHEL.
83412f
- Resolves: #1380827