- RPM_OPT_FLAGS are used for compiling
[ginac.git] / GiNaC.spec.in
index 094c3a6ee2820f184806f076abc18274023722a8..edd2baa0fae6f4beeee165443bdffa5a41f4bb7d 100644 (file)
@@ -28,8 +28,13 @@ numeric applications, graphical interfaces, etc.) under one roof.
 %setup
 
 %build
-./configure --prefix=%prefix
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+CXXFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
+if [ "$SMP" != "" ]; then
+  (make "MAKE=make -k -j $SMP"; exit 0)
+  make
+else
+  make
+fi
 
 %install
 rm -rf $RPM_BUILD_ROOT