Use %cmake_build/%cmake_install/%ctest
This commit is contained in:
parent
a49bf24318
commit
4b1a9a965a
10
PDAL.spec
10
PDAL.spec
|
@ -152,7 +152,7 @@ rm -rf vendor/{eigen,gtest,pdalboost}
|
|||
-D POSTGRESQL_INCLUDE_DIR=%{_includedir}/pgsql \
|
||||
-D POSTGRESQL_LIBRARIES=%{_libdir}/libpq.so .
|
||||
|
||||
%make_build
|
||||
%cmake_build
|
||||
|
||||
# Build documentation
|
||||
%if 0%{?fedora}
|
||||
|
@ -164,7 +164,7 @@ sphinx-build -b html . build/html
|
|||
%endif
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%cmake_install
|
||||
|
||||
# commented out due to size
|
||||
## unpack vertical datums
|
||||
|
@ -181,11 +181,11 @@ sphinx-build -b html . build/html
|
|||
## test the compiled code (see doc/project/testing.rst)
|
||||
# we skip tests for selected architectures which need upstream fixes
|
||||
%ifarch armv7hl aarch64 ppc64le s390x
|
||||
ctest || true
|
||||
%ctest || true
|
||||
%else
|
||||
## we skip the PG test (BUILD_PGPOINTCLOUD_TESTS:BOOL=OFF):
|
||||
## we skip the PG test (BUILD_PGPOINTCLOUD_TESTS:BOOL=OFF):
|
||||
# PGUSER=pdal PGPASSWORD=password PGHOST=localhost PGPORT=5432 ctest -V
|
||||
ctest -V
|
||||
%ctest
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
|
Loading…
Reference in New Issue