From e3f6e2a77cd651ee78764876a5dd6095d7ddfb83 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 12 Jul 2016 17:37:19 +0200 Subject: [PATCH] Set minimum required versions of various libraries ... so that we can be sure they get updated in lockstep with fwupd. --- fwupd.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/fwupd.spec b/fwupd.spec index 9de7b82..4813886 100644 --- a/fwupd.spec +++ b/fwupd.spec @@ -1,3 +1,8 @@ +%global libglib2_version 2.45.8 +%global libappstream_version 0.5.10 +%global libgusb_version 0.2.9 +%global libsoup_version 2.51.92 + Summary: Firmware update daemon Name: fwupd Version: 0.7.2 @@ -8,19 +13,20 @@ Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}. BuildRequires: docbook-utils BuildRequires: gettext -BuildRequires: glib2-devel >= 2.45.8 +BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: intltool +BuildRequires: libappstream-glib-devel >= %{libappstream_version} BuildRequires: libgudev1-devel +BuildRequires: libgusb-devel >= %{libgusb_version} +BuildRequires: libsoup-devel >= %{libsoup_version} BuildRequires: colord-devel >= 1.0.0 BuildRequires: polkit-devel >= 0.103 BuildRequires: libgcab1-devel BuildRequires: sqlite-devel BuildRequires: gpgme-devel BuildRequires: systemd -BuildRequires: libsoup-devel >= 2.51.92 BuildRequires: libarchive-devel BuildRequires: gobject-introspection-devel -BuildRequires: libappstream-glib-devel >= 0.5.10 BuildRequires: gcab BuildRequires: valgrind @@ -32,6 +38,11 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd +Requires: glib2%{?_isa} >= %{glib2_version} +Requires: libappstream-glib%{?_isa} >= %{libappstream_version} +Requires: libgusb%{?_isa} >= %{libgusb_version} +Requires: libsoup%{?_isa} >= %{libsoup_version} + Obsoletes: fwupd-sign < 0.1.6 %description