|
|
af0569 |
%global glib2_version 2.45.8
|
|
|
af0569 |
%global libappstream_version 0.5.10
|
|
|
af0569 |
%global libgusb_version 0.2.9
|
|
|
af0569 |
%global libsoup_version 2.51.92
|
|
|
af0569 |
|
|
|
af0569 |
%ifarch x86_64 aarch64
|
|
|
af0569 |
%global have_uefi 1
|
|
|
af0569 |
%endif
|
|
|
af0569 |
|
|
|
af0569 |
Summary: Firmware update daemon
|
|
|
af0569 |
Name: fwupd
|
|
|
af0569 |
Version: 0.8.2
|
|
|
af0569 |
Release: 3%{?dist}
|
|
|
af0569 |
License: GPLv2+
|
|
|
af0569 |
URL: https://github.com/hughsie/fwupd
|
|
|
af0569 |
Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
|
|
|
af0569 |
|
|
|
af0569 |
# already upstream
|
|
|
af0569 |
Patch0: fwupd-fix-under-including.patch
|
|
|
af0569 |
Patch1: 0001-trivial-Return-a-sensible-error-if-DownloadURI-is-in.patch
|
|
|
af0569 |
Patch2: 0001-Do-not-use-the-LVFS.patch
|
|
|
af0569 |
Patch3: fwupd-only-use-old-systemd-protections.patch
|
|
|
af0569 |
|
|
|
af0569 |
BuildRequires: docbook-utils
|
|
|
af0569 |
BuildRequires: gettext
|
|
|
af0569 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
af0569 |
BuildRequires: intltool
|
|
|
af0569 |
BuildRequires: libappstream-glib-devel >= %{libappstream_version}
|
|
|
af0569 |
BuildRequires: libgudev1-devel
|
|
|
af0569 |
BuildRequires: libgusb-devel >= %{libgusb_version}
|
|
|
af0569 |
BuildRequires: libsoup-devel >= %{libsoup_version}
|
|
|
af0569 |
BuildRequires: colord-devel >= 1.0.0
|
|
|
af0569 |
BuildRequires: polkit-devel >= 0.103
|
|
|
af0569 |
BuildRequires: libgcab1-devel
|
|
|
af0569 |
BuildRequires: sqlite-devel
|
|
|
af0569 |
BuildRequires: gpgme-devel
|
|
|
af0569 |
BuildRequires: systemd
|
|
|
af0569 |
BuildRequires: libarchive-devel
|
|
|
af0569 |
BuildRequires: gobject-introspection-devel
|
|
|
af0569 |
BuildRequires: gcab
|
|
|
af0569 |
BuildRequires: elfutils-libelf-devel
|
|
|
af0569 |
BuildRequires: gtk-doc
|
|
|
af0569 |
|
|
|
af0569 |
%if 0%{?have_uefi}
|
|
|
af0569 |
BuildRequires: fwupdate-devel >= 7
|
|
|
af0569 |
%endif
|
|
|
af0569 |
|
|
|
af0569 |
Requires(post): systemd
|
|
|
af0569 |
Requires(preun): systemd
|
|
|
af0569 |
Requires(postun): systemd
|
|
|
af0569 |
|
|
|
af0569 |
Requires: glib2%{?_isa} >= %{glib2_version}
|
|
|
af0569 |
Requires: libappstream-glib%{?_isa} >= %{libappstream_version}
|
|
|
af0569 |
Requires: libgusb%{?_isa} >= %{libgusb_version}
|
|
|
af0569 |
Requires: libsoup%{?_isa} >= %{libsoup_version}
|
|
|
af0569 |
|
|
|
af0569 |
Obsoletes: fwupd-sign < 0.1.6
|
|
|
af0569 |
Obsoletes: libebitdo < 0.7.5-3
|
|
|
af0569 |
|
|
|
af0569 |
%description
|
|
|
af0569 |
fwupd is a daemon to allow session software to update device firmware.
|
|
|
af0569 |
|
|
|
af0569 |
%package devel
|
|
|
af0569 |
Summary: Development package for %{name}
|
|
|
af0569 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
af0569 |
Obsoletes: libebitdo-devel < 0.7.5-3
|
|
|
af0569 |
|
|
|
af0569 |
%description devel
|
|
|
af0569 |
Files for development with %{name}.
|
|
|
af0569 |
|
|
|
af0569 |
%prep
|
|
|
af0569 |
%setup -q
|
|
|
af0569 |
%patch0 -p1 -b .underinclude
|
|
|
af0569 |
%patch1 -p1 -b .sensible-error
|
|
|
af0569 |
%patch2 -p1 -b .no-lvfs
|
|
|
af0569 |
%patch3 -p1 -b .no-new-systemd
|
|
|
af0569 |
|
|
|
af0569 |
%build
|
|
|
af0569 |
%configure \
|
|
|
af0569 |
--disable-static \
|
|
|
af0569 |
--disable-thunderbolt \
|
|
|
af0569 |
--enable-gtk-doc \
|
|
|
af0569 |
--enable-colorhug \
|
|
|
af0569 |
%if 0%{?have_uefi}
|
|
|
af0569 |
--enable-uefi \
|
|
|
af0569 |
%else
|
|
|
af0569 |
--disable-uefi \
|
|
|
af0569 |
%endif
|
|
|
af0569 |
--disable-dell \
|
|
|
af0569 |
--disable-synaptics \
|
|
|
af0569 |
--disable-rpath \
|
|
|
af0569 |
--disable-silent-rules \
|
|
|
af0569 |
--disable-dependency-tracking
|
|
|
af0569 |
|
|
|
af0569 |
make %{?_smp_mflags}
|
|
|
af0569 |
|
|
|
af0569 |
%install
|
|
|
af0569 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
af0569 |
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
af0569 |
mkdir --mode=0700 $RPM_BUILD_ROOT%{_localstatedir}/lib/fwupd/gnupg
|
|
|
af0569 |
|
|
|
af0569 |
# not ready yet
|
|
|
af0569 |
rm -f %{buildroot}%{_libdir}/fwupd-plugins-2/libfu_plugin_altos.so
|
|
|
af0569 |
rm -f %{buildroot}%{_libdir}/fwupd-plugins-2/libfu_plugin_raspberrypi.so
|
|
|
af0569 |
rm -f %{buildroot}%{_libdir}/fwupd-plugins-2/libfu_plugin_steelseries.so
|
|
|
af0569 |
rm -f %{buildroot}%{_libdir}/fwupd-plugins-2/libfu_plugin_unifying.so
|
|
|
af0569 |
|
|
|
af0569 |
# we don't want to include this in RHEL yet
|
|
|
af0569 |
rm -rf %{buildroot}%{_datadir}/gtk-doc/html/libdfu
|
|
|
af0569 |
rm -rf %{buildroot}%{_includedir}/libdfu
|
|
|
af0569 |
rm -f %{buildroot}%{_includedir}/dfu.h
|
|
|
af0569 |
rm -f %{buildroot}%{_includedir}/libdfu/*.h
|
|
|
af0569 |
rm -f %{buildroot}%{_libdir}/pkgconfig/dfu.pc
|
|
|
af0569 |
|
|
|
af0569 |
%find_lang %{name}
|
|
|
af0569 |
|
|
|
af0569 |
%check
|
|
|
af0569 |
# make check VERBOSE=1
|
|
|
af0569 |
|
|
|
af0569 |
%post
|
|
|
af0569 |
/sbin/ldconfig
|
|
|
af0569 |
%systemd_post fwupd.service
|
|
|
af0569 |
|
|
|
af0569 |
%preun
|
|
|
af0569 |
%systemd_preun fwupd.service
|
|
|
af0569 |
|
|
|
af0569 |
%postun
|
|
|
af0569 |
/sbin/ldconfig
|
|
|
af0569 |
%systemd_postun_with_restart fwupd.service
|
|
|
af0569 |
|
|
|
af0569 |
%files -f %{name}.lang
|
|
|
af0569 |
%doc README.md AUTHORS NEWS
|
|
|
af0569 |
%license COPYING
|
|
|
af0569 |
%config(noreplace)%{_sysconfdir}/fwupd.conf
|
|
|
af0569 |
%dir %{_libexecdir}/fwupd
|
|
|
af0569 |
%{_libexecdir}/fwupd/fwupd
|
|
|
af0569 |
%{_bindir}/fwupdmgr
|
|
|
af0569 |
%{_sysconfdir}/pki/fwupd
|
|
|
af0569 |
%{_sysconfdir}/pki/fwupd-metadata
|
|
|
af0569 |
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.fwupd.conf
|
|
|
af0569 |
%{_datadir}/app-info/xmls/org.freedesktop.fwupd.xml
|
|
|
af0569 |
%{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml
|
|
|
af0569 |
%{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy
|
|
|
af0569 |
%{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules
|
|
|
af0569 |
%{_datadir}/dbus-1/system-services/org.freedesktop.fwupd.service
|
|
|
af0569 |
%{_datadir}/man/man1/fwupdmgr.1.gz
|
|
|
af0569 |
%{_unitdir}/fwupd-offline-update.service
|
|
|
af0569 |
%{_unitdir}/fwupd.service
|
|
|
af0569 |
%{_unitdir}/system-update.target.wants/
|
|
|
af0569 |
%dir %{_localstatedir}/lib/fwupd
|
|
|
af0569 |
%{_libdir}/libfwupd*.so.*
|
|
|
af0569 |
%{_libdir}/girepository-1.0/Fwupd-1.0.typelib
|
|
|
af0569 |
/usr/lib/udev/rules.d/*.rules
|
|
|
af0569 |
%dir %{_libdir}/fwupd-plugins-2
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_colorhug.so
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_dfu.so
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_ebitdo.so
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_test.so
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_udev.so
|
|
|
af0569 |
%if 0%{?have_uefi}
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_uefi.so
|
|
|
af0569 |
%endif
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_upower.so
|
|
|
af0569 |
%{_libdir}/fwupd-plugins-2/libfu_plugin_usb.so
|
|
|
af0569 |
%ghost %{_localstatedir}/lib/fwupd/gnupg
|
|
|
af0569 |
|
|
|
af0569 |
# merged from libdfu upstream
|
|
|
af0569 |
%{_bindir}/dfu-tool
|
|
|
af0569 |
%{_datadir}/man/man1/dfu-tool.1.gz
|
|
|
af0569 |
%{_libdir}/girepository-1.0/Dfu-1.0.typelib
|
|
|
af0569 |
%{_libdir}/libdfu*.so.*
|
|
|
af0569 |
|
|
|
af0569 |
%files devel
|
|
|
af0569 |
%{_datadir}/gir-1.0/Fwupd-1.0.gir
|
|
|
af0569 |
%{_datadir}/gtk-doc/html/libfwupd
|
|
|
af0569 |
%{_includedir}/fwupd-1
|
|
|
af0569 |
%{_libdir}/libfwupd*.so
|
|
|
af0569 |
%{_libdir}/pkgconfig/fwupd.pc
|
|
|
af0569 |
|
|
|
af0569 |
# merged from libdfu upstream
|
|
|
af0569 |
%{_datadir}/gir-1.0/Dfu-1.0.gir
|
|
|
af0569 |
%{_libdir}/libdfu*.so
|
|
|
af0569 |
|
|
|
af0569 |
%changelog
|
|
|
af0569 |
* Mon Jul 03 2017 Richard Hughes <richard@hughsie.com> 0.8.2-3
|
|
|
af0569 |
- Do not use systemd protections not yet available in RHEL.
|
|
|
af0569 |
- Resolves: #1380827
|
|
|
af0569 |
|
|
|
af0569 |
* Mon May 08 2017 Richard Hughes <richard@hughsie.com> 0.8.2-2
|
|
|
af0569 |
- Do not use the LVFS by default.
|
|
|
af0569 |
- Resolves: #1380827
|
|
|
af0569 |
|
|
|
af0569 |
* Thu Apr 20 2017 Richard Hughes <richard@hughsie.com> 0.8.2-1
|
|
|
af0569 |
- Initial upload for RHEL.
|
|
|
af0569 |
- Resolves: #1380827
|