From 254e983c23d97c0593999bed4aa6c5aead3d9711 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 17 Feb 2016 17:55:54 -0500 Subject: [PATCH] Bundle libhif There's major work going on in the "libhif" project to merge a lot of functionality. Things are going to be unstable for a while, and it's not realistic to tie the release cycles of the consumers (rpm-ostree, dnf, PackageKit) all together at once. We'll iterate and break API for a while, then try to stabilize later. --- rpm-ostree.spec | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/rpm-ostree.spec b/rpm-ostree.spec index b08b35d..3f9969f 100644 --- a/rpm-ostree.spec +++ b/rpm-ostree.spec @@ -1,10 +1,11 @@ Summary: Client side upgrade program and server side compose tool Name: rpm-ostree -Version: 2015.11 +Version: 2015.11.40.gd0fadbf Release: 3%{?dist} #VCS: https://github.com/cgwalters/rpm-ostree # This tarball is generated via "make -f Makefile.dist-packaging dist-snapshot" Source0: rpm-ostree-%{version}.tar.xz +Source1: libhif.tar.gz License: LGPLv2+ URL: https://github.com/projectatomic/rpm-ostree # We always run autogen.sh @@ -13,15 +14,21 @@ BuildRequires: autoconf automake libtool git BuildRequires: gtk-doc BuildRequires: gnome-common BuildRequires: gobject-introspection +# Core requirements BuildRequires: pkgconfig(ostree-1) >= 2015.1 BuildRequires: pkgconfig(libgsystem) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(rpm) BuildRequires: pkgconfig(libarchive) -BuildRequires: pkgconfig(hawkey) -BuildRequires: pkgconfig(libhif) BuildRequires: libcap-devel BuildRequires: libattr-devel +# libhif deps +BuildRequires: pkgconfig(librepo) +BuildRequires: pkgconfig(libsolv) +BuildRequires: pkgconfig(expat) +BuildRequires: pkgconfig(check) +BuildRequires: python-devel +BuildRequires: python-sphinx Requires: ostree >= 2014.6 @@ -40,10 +47,31 @@ The %{name}-devel package includes the header files for the %{name} library. %prep %autosetup -Sgit -n %{name}-%{version} +tar xf %{SOURCE1} %build +(cd libhif + cmake \ + -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}/libexec/rpm-ostree \ + -DINCLUDE_INSTALL_DIR:PATH=%{_prefix}/libexec/rpm-ostree/include \ + -DLIB_INSTALL_DIR:PATH=%{_libdir}/rpm-ostree/ \ + -DSYSCONF_INSTALL_DIR:PATH=%{_prefix}/libexec/rpm-ostree/etc \ + -DSHARE_INSTALL_PREFIX:PATH=%{_prefix}/libexec/rpm-ostree/share \ + -DLIB_SUFFIX=64 \ + -DBUILD_SHARED_LIBS:BOOL=ON . + make %{?_smp_mflags} + cat > libhif/libhif.pc<