Blame SPECS/fwupd.spec

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