Two fixes for non-bundled build

In the non-bundled case:

 - Don't exclude requires on libhif
 - Don't inject an RPATH
This commit is contained in:
Colin Walters 2016-05-27 11:59:11 -04:00
parent 2f39d383bb
commit 4fdad76c5b

View File

@ -37,6 +37,9 @@ BuildRequires: libattr-devel
BuildRequires: pkgconfig(librepo) BuildRequires: pkgconfig(librepo)
%if %{with bundled_libhif} %if %{with bundled_libhif}
# We're using RPATH to pick up our bundled version
%global __requires_exclude ^libhif[.]so[.].*$
BuildRequires: cmake BuildRequires: cmake
BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(check) BuildRequires: pkgconfig(check)
@ -58,9 +61,6 @@ Requires: ostree >= 2014.6
Provides: rpm-ostree-client Provides: rpm-ostree-client
%endif %endif
# We're using RPATH to pick up our bundled version
%global __requires_exclude ^libhif[.]so[.].*$
%description %description
This tool binds together the world of RPM packages with the OSTree This tool binds together the world of RPM packages with the OSTree
model of bootable filesystem trees. It provides commands usable both model of bootable filesystem trees. It provides commands usable both
@ -105,7 +105,12 @@ export PKG_CONFIG_PATH=$(pwd)/libhif/libhif${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
export LD_LIBRARY_PATH=$(pwd)/libhif/libhif${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} export LD_LIBRARY_PATH=$(pwd)/libhif/libhif${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
%endif %endif
env NOCONFIGURE=1 ./autogen.sh env NOCONFIGURE=1 ./autogen.sh
%configure --disable-silent-rules --enable-gtk-doc LDFLAGS='-Wl,-rpath=%{_libdir}/rpm-ostree' %configure --disable-silent-rules --enable-gtk-doc \
%if %{with bundled_libhif}
LDFLAGS='-Wl,-rpath=%{_libdir}/rpm-ostree'
%else
%endif
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install