[packages/plplot] - use cmake -B as 3.13+ is already required

qboosh qboosh at pld-linux.org
Wed Jan 18 20:52:45 CET 2023


commit 870fdceeac54024d9d55753593fecda85f4be783
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jan 18 20:53:44 2023 +0100

    - use cmake -B as 3.13+ is already required

 plplot.spec | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plplot.spec b/plplot.spec
index b0339f0..bf9e1f9 100644
--- a/plplot.spec
+++ b/plplot.spec
@@ -651,12 +651,10 @@ Biblioteka PLplot - przykłady do wiązania dla Pythona.
       examples/python/* \
 
 %build
-install -d build
-cd build
 # required for cmake to find JNI headers/libs when lib64 is in use
 %{?with_java:export JAVA_HOME=%{_jvmlibdir}/java}
 # NOTE: no %{_libdir}/jni in PLD, use plain %{_libdir}
-%cmake .. \
+%cmake -B build \
 %if %{with ada}
 	-DENABLE_ada=ON \
 	-DADA_INCLUDE_DIR=%{ada_incdir} \
@@ -720,7 +718,7 @@ cd build
 	-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config \
 	-DwxWidgets_USE_UNICODE=ON
 
-%{__make}
+%{__make} -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/plplot.git/commitdiff/870fdceeac54024d9d55753593fecda85f4be783



More information about the pld-cvs-commit mailing list