Fix buildreq

epel9
Terje Røsten 11 years ago
parent 5e4510af56
commit eeb8be84c7

@ -9,7 +9,7 @@ Source0: http://googletest.googlecode.com/files/gtest-%{version}.zip
Patch0: gtest-soname.patch Patch0: gtest-soname.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: libtool BuildRequires: libtool
BuildRequires: python BuildRequires: python-devel
%description %description
Google's framework for writing C++ tests on a variety of platforms Google's framework for writing C++ tests on a variety of platforms
@ -38,19 +38,18 @@ cp -a ./samples ./samples.orig
%build %build
# this is odd but needed only to generate gtest-config. # this is odd but needed only to generate gtest-config.
%configure %configure
mkdir build mkdir build && pushd build
pushd build
%cmake -DBUILD_SHARED_LIBS=ON \ %cmake -DBUILD_SHARED_LIBS=ON \
-DCMAKE_SKIP_BUILD_RPATH=TRUE \ -DCMAKE_SKIP_BUILD_RPATH=TRUE \
-DPYTHON_EXECUTABLE=%{__python2} \ -DPYTHON_EXECUTABLE=%{__python2} \
-Dgtest_build_tests=ON \ -Dgtest_build_tests=ON ..
.. make %{?_smp_mflags}
popd
make %{?_smp_mflags} -C build
%check %check
# LD_LIBRARY_PATH needed due to cmake_skip_rpath in %%build # LD_LIBRARY_PATH needed due to cmake_skip_rpath in %%build
LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/build make test -C build pushd build
LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/build make test
popd
# Restore the clean copy of samples. # Restore the clean copy of samples.
# To be later listed against doc. # To be later listed against doc.

Loading…
Cancel
Save