-install -d $RPM_BUILD_ROOT%{_bindir}
-%{__sed} -e 's,@PACKAGE_TARNAME@,gtest,' \
- -e 's,@PACKAGE_VERSION@,%{version},' \
- -e 's,@prefix@,%{_prefix},' \
- -e 's,@exec_prefix@,%{_exec_prefix},' \
- -e 's,@bindir@,%{_bindir},' \
- -e 's,@libdir@,%{_libdir},' \
- -e 's,@includedir@,%{_includedir},' \
- -e 's,@top_srcdir@,%{_prefix}/src/gtest,' \
- -e 's,@PTHREAD_CFLAGS@,-pthread,' \
- -e 's,@PTHREAD_LIBS@,-lpthread,' \
- googletest/scripts/gtest-config.in > $RPM_BUILD_ROOT%{_bindir}/gtest-config
-