Blame SPECS/fwupd.spec

af0569
%global glib2_version 2.45.8
58cc86
%global libappstream_version 0.6.10
af0569
%global libgusb_version 0.2.9
af0569
%global libsoup_version 2.51.92
58cc86
%global colord_version 1.0.0
58cc86
%global systemd_version 219
af0569
af0569
%ifarch x86_64 aarch64
af0569
%global have_uefi 1
af0569
%endif
af0569
58cc86
# libsmbios is only available on x86, and fwupdate is available on just x86_64
58cc86
%ifarch x86_64
58cc86
%global have_dell 1
58cc86
%endif
58cc86
58cc86
# valgrind is not available on s390
58cc86
%ifarch x86_64 aarch64
58cc86
%global have_valgrind 1
58cc86
%endif
58cc86
af0569
Summary:   Firmware update daemon
af0569
Name:      fwupd
58cc86
Version:   1.0.1
58cc86
Release:   4%{?dist}
af0569
License:   GPLv2+
af0569
URL:       https://github.com/hughsie/fwupd
af0569
Source0:   http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
af0569
58cc86
# neuter the LVFS
af0569
Patch2:    0001-Do-not-use-the-LVFS.patch
58cc86
58cc86
# don't depend on such a new appstream-glib
58cc86
Patch3:    fwupd-build-with-old-deps.patch
58cc86
58cc86
# don't use meson, urgh
58cc86
Patch4:    fwupd-no-meson.patch
af0569
af0569
BuildRequires: docbook-utils
af0569
BuildRequires: gettext
af0569
BuildRequires: glib2-devel >= %{glib2_version}
af0569
BuildRequires: libappstream-glib-devel >= %{libappstream_version}
af0569
BuildRequires: libgudev1-devel
af0569
BuildRequires: libgusb-devel >= %{libgusb_version}
af0569
BuildRequires: libsoup-devel >= %{libsoup_version}
58cc86
BuildRequires: colord-devel >= %{colord_version}
af0569
BuildRequires: polkit-devel >= 0.103
af0569
BuildRequires: sqlite-devel
af0569
BuildRequires: gpgme-devel
58cc86
BuildRequires: systemd >= %{systemd_version}
af0569
BuildRequires: libarchive-devel
af0569
BuildRequires: gobject-introspection-devel
af0569
BuildRequires: gcab
af0569
BuildRequires: elfutils-libelf-devel
af0569
BuildRequires: gtk-doc
58cc86
BuildRequires: libuuid-devel
58cc86
BuildRequires: gnutls-devel
58cc86
BuildRequires: gnutls-utils
58cc86
58cc86
# because we're creating the build files
58cc86
BuildRequires: autoconf
58cc86
BuildRequires: autoconf-archive
58cc86
BuildRequires: automake
58cc86
BuildRequires: gettext-devel
58cc86
58cc86
%if 0%{?have_valgrind}
58cc86
BuildRequires: valgrind
58cc86
BuildRequires: valgrind-devel
58cc86
%endif
58cc86
58cc86
%if 0%{?have_dell}
58cc86
BuildRequires: efivar-devel
58cc86
BuildRequires: libsmbios-devel >= 2.3.0
58cc86
%endif
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
%patch2 -p1 -b .no-lvfs
58cc86
%patch3 -p1 -b .old-appstream-glib
58cc86
%patch4 -p1 -b .automake
af0569
af0569
%build
58cc86
gtkdocize
58cc86
autoreconf -f -i
af0569
%configure \
af0569
        --disable-static        \
58cc86
        --disable-pkcs7         \
58cc86
        --enable-gpg            \
58cc86
        --enable-thunderbolt    \
af0569
        --enable-gtk-doc        \
af0569
        --enable-colorhug       \
58cc86
        --enable-synaptics      \
af0569
%if 0%{?have_uefi}
af0569
        --enable-uefi           \
af0569
%else
af0569
        --disable-uefi          \
af0569
%endif
58cc86
%if 0%{?have_dell}
58cc86
        --enable-dell           \
58cc86
%else
af0569
        --disable-dell          \
58cc86
%endif
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
58cc86
rm -f %{buildroot}%{_libdir}/fwupd-plugins-3/libfu_plugin_altos.so
58cc86
rm -f %{buildroot}%{_libdir}/fwupd-plugins-3/libfu_plugin_raspberrypi.so
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
58cc86
%config(noreplace)%{_sysconfdir}/fwupd/daemon.conf
af0569
%dir %{_libexecdir}/fwupd
af0569
%{_libexecdir}/fwupd/fwupd
58cc86
%{_bindir}/dfu-tool
af0569
%{_bindir}/fwupdmgr
58cc86
%dir %{_sysconfdir}/fwupd
58cc86
%dir %{_sysconfdir}/fwupd/remotes.d
58cc86
%{_sysconfdir}/fwupd/remotes.d/fwupd.conf
58cc86
%{_sysconfdir}/fwupd/remotes.d/lvfs.conf
58cc86
%{_sysconfdir}/fwupd/remotes.d/lvfs-testing.conf
58cc86
%{_sysconfdir}/fwupd/remotes.d/vendor.conf
af0569
%{_sysconfdir}/pki/fwupd
af0569
%{_sysconfdir}/pki/fwupd-metadata
af0569
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.fwupd.conf
58cc86
%{_datadir}/fwupd/remotes.d/fwupd/metadata.xml
58cc86
%{_datadir}/fwupd/remotes.d/vendor/firmware/README.md
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
58cc86
%{_datadir}/man/man1/dfu-tool.1.gz
af0569
%{_datadir}/man/man1/fwupdmgr.1.gz
58cc86
%{_datadir}/metainfo/org.freedesktop.fwupd.metainfo.xml
af0569
%{_unitdir}/fwupd-offline-update.service
af0569
%{_unitdir}/fwupd.service
af0569
%{_unitdir}/system-update.target.wants/
af0569
%dir %{_localstatedir}/lib/fwupd
58cc86
%dir %{_datadir}/fwupd/quirks.d
58cc86
%{_datadir}/fwupd/quirks.d/*.quirk
58cc86
%{_localstatedir}/lib/fwupd/builder/README.md
af0569
%{_libdir}/libfwupd*.so.*
58cc86
%{_libdir}/girepository-1.0/Fwupd-2.0.typelib
af0569
/usr/lib/udev/rules.d/*.rules
58cc86
%dir %{_libdir}/fwupd-plugins-3
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_amt.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_colorhug.so
58cc86
%if 0%{?have_dell}
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_dell.so
58cc86
%endif
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_dfu.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_ebitdo.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_steelseries.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_synapticsmst.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_test.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt_power.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_thunderbolt.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_udev.so
af0569
%if 0%{?have_uefi}
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_uefi.so
af0569
%endif
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_unifying.so
58cc86
%{_libdir}/fwupd-plugins-3/libfu_plugin_upower.so
af0569
%ghost %{_localstatedir}/lib/fwupd/gnupg
af0569
af0569
%files devel
58cc86
%{_datadir}/gir-1.0/Fwupd-2.0.gir
af0569
%{_datadir}/gtk-doc/html/libfwupd
af0569
%{_includedir}/fwupd-1
af0569
%{_libdir}/libfwupd*.so
af0569
%{_libdir}/pkgconfig/fwupd.pc
af0569
af0569
%changelog
58cc86
* Mon Jan 08 2018 Richard Hughes <richard@hughsie.com> 1.0.1-4
58cc86
- Enable the libsmbios dependency to get the Dell plugin
58cc86
- Resolves: #1420913
58cc86
58cc86
* Thu Nov 23 2017 Richard Hughes <richard@hughsie.com> 1.0.1-3
58cc86
- Remove the runtime dep on bubblewrap.
58cc86
- Resolves: #1512620
58cc86
58cc86
* Tue Nov 14 2017 Richard Hughes <richard@hughsie.com> 1.0.1-2
58cc86
- Enable Synaptics MST hub updates.
58cc86
- Resolves: #1420913
58cc86
58cc86
* Thu Nov 09 2017 Richard Hughes <richard@hughsie.com> 1.0.1-1
58cc86
- Rebase to 1.0.1, specifically the wip/hughsie/rhel75 branch which adds
58cc86
  back the automake build system and lowers the required versions of deps.
58cc86
- This also un-neuters fwupd so that most of the plugins are functional,
58cc86
  for instance allowing updates of Thunderbolt controllers and Logitech
58cc86
  Unifying devices. However, the LVFS is still disabled.
58cc86
- Resolves: #1313086
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