From 8387bafb3ef3c54f228bd7829126738ff3195940 Mon Sep 17 00:00:00 2001 From: Denis Arnaud Date: Aug 04 2020 23:08:55 +0000 Subject: CMake build out of source. Fixes BZ#1865497 --- diff --git a/soci.spec b/soci.spec index a4541ba..f319b75 100644 --- a/soci.spec +++ b/soci.spec @@ -211,8 +211,6 @@ dos2unix AUTHORS README ChangeLog COPYING NEWS -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=mloskot password=pantera" %endif -mkdir tmpbuild -pushd tmpbuild %cmake \ -DSOCI_CXX11=ON \ -DSOCI_EMPTY=%{?with_empty:ON}%{?without_empty:OFF} \ @@ -221,14 +219,11 @@ pushd tmpbuild -DSOCI_MYSQL=%{?with_mysql:ON}%{?without_mysql:OFF} \ -DSOCI_ODBC=%{?with_odbc:ON}%{?without_odbc:OFF} \ -DWITH_ORACLE=%{?with_oracle:ON %{?_with_oracle_incdir} %{?_with_oracle_libdir}}%{?without_oracle:OFF} \ - %{soci_testflags} .. -%make_build -popd + %{soci_testflags} +%cmake_build %install -pushd tmpbuild -%make_install -popd +%cmake_install # CMake helpers mkdir -p %{buildroot}%{_datadir}/%{name}