From 1bbf6bb8334bcfc844eeb824961fd5e2c019b256 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Wed, 27 Mar 2019 13:43:42 -0400 Subject: [PATCH] Add new libdnf build deps --- rpm-ostree.spec | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/rpm-ostree.spec b/rpm-ostree.spec index bc3b0d3..cb2bca5 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -58,7 +58,7 @@ BuildRequires: pkgconfig(libcurl) # We're using RPATH to pick up our bundled version %global __requires_exclude ^libdnf[.]so[.].*$ -# Our bundled libdnf.so.1 is for us only +# Our bundled libdnf.so.2 is for us only %global __provides_exclude_from ^%{_libdir}/%{name}/.*$ BuildRequires: cmake @@ -73,6 +73,20 @@ BuildRequires: pkgconfig(libsolv) # We need g++ for libdnf BuildRequires: gcc-c++ + +# more libdnf build deps (see libdnf's spec for versions) +%global swig_version 3.0.12 +%global libmodulemd_version 1.6.1 +BuildRequires: swig >= %{swig_version} +BuildRequires: pkgconfig(modulemd) >= %{libmodulemd_version} +BuildRequires: pkgconfig(json-c) +BuildRequires: pkgconfig(cppunit) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(smartcols) +BuildRequires: gpgme-devel + +Requires: libmodulemd%{?_isa} >= %{libmodulemd_version} + # In CentOS7/RHEL the package is client-only right now, but we can do both %if 0%{?rhel} != 0 && 0%{?rhel} <= 7 Provides: rpm-ostree-client