From 994edcd063f283510ccfc2c0431baa66e57170c88de65417561b61d7cbb15e04 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 21 Jun 2017 10:32:59 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jsoncpp?expand=0&rev=42 --- jsoncpp.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jsoncpp.spec b/jsoncpp.spec index e523714..25dda21 100644 --- a/jsoncpp.spec +++ b/jsoncpp.spec @@ -28,7 +28,6 @@ Source0: https://github.com/open-source-parsers/%{name}/archive/%{version BuildRequires: cmake >= 3.1 BuildRequires: gcc-c++ BuildRequires: pkgconfig -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description JSON is a lightweight data-interchange format. It can represent numbers, @@ -81,7 +80,7 @@ format to store user input files. %check # path needs to be exported otherwise unit tests will fail -export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/lib_json +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir} ./build/src/test_lib_json/jsoncpp_test %post -n lib%{name}%{sover} -p /sbin/ldconfig