SHA256
1
0
forked from pool/armadillo

Accepting request 495092 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/495092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/armadillo?expand=0&rev=107
This commit is contained in:
Dominique Leuenberger 2017-06-08 12:58:12 +00:00 committed by Git OBS Bridge
commit 1832616421
5 changed files with 37 additions and 22 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ba56fb7b31c77d7ecd41334243d8a45d51e7559f76f6371783c17a72432dd486
size 4000172

3
armadillo-7.900.1.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:33eec7013990b5477ccc5ad3abc68bc2326c7a7a2790014d625cfcf37c0e07d3
size 4022388

View File

@ -1,7 +1,7 @@
Index: armadillo-7.500.0/tests/Makefile.in
Index: armadillo-7.900.1/tests/Makefile.in
===================================================================
--- /dev/null
+++ armadillo-7.500.0/tests/Makefile.in
+++ armadillo-7.900.1/tests/Makefile.in
@@ -0,0 +1,38 @@
+
+LIB_FLAGS = -L@PROJECT_SOURCE_DIR@ -larmadillo
@ -19,8 +19,8 @@ Index: armadillo-7.500.0/tests/Makefile.in
+ LIB_FLAGS += -larpack
+endif
+
+#LIB_FLAGS = -lblas -llapack
+#LIB_FLAGS = -lopenblas -llapack
+#LIB_FLAGS = -lblas -llapack
+#LIB_FLAGS = -lopenblas -llapack
+
+CXX_FLAGS = -I@PROJECT_SOURCE_DIR@/include -std=c++11 -Wshadow -Wall -pedantic -O0
+#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0 -DARMA_DONT_USE_WRAPPER
@ -41,11 +41,11 @@ Index: armadillo-7.500.0/tests/Makefile.in
+
+clean:
+ rm -f main *.o
Index: armadillo-7.500.0/CMakeLists.txt
Index: armadillo-7.900.1/CMakeLists.txt
===================================================================
--- armadillo-7.500.0.orig/CMakeLists.txt
+++ armadillo-7.500.0/CMakeLists.txt
@@ -453,6 +453,10 @@ set(ARMADILLO_LIB_DIR "${PROJECT_BI
--- armadillo-7.900.1.orig/CMakeLists.txt
+++ armadillo-7.900.1/CMakeLists.txt
@@ -437,6 +437,10 @@ set(ARMADILLO_LIB_DIR "${PROJECT_BI
set(ARMADILLO_CMAKE_DIR "${PROJECT_BINARY_DIR}")
@ -56,17 +56,18 @@ Index: armadillo-7.500.0/CMakeLists.txt
message(STATUS "Generating '${PROJECT_BINARY_DIR}/ArmadilloConfig.cmake'")
# copy/change config and configVersion file (modify only the @xyz@ variables)
configure_file(${PROJECT_SOURCE_DIR}/cmake_aux/InstallFiles/ArmadilloConfig.cmake.in
Index: armadillo-7.500.0/tests/Makefile
Index: armadillo-7.900.1/tests/Makefile
===================================================================
--- armadillo-7.500.0.orig/tests/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
--- armadillo-7.900.1.orig/tests/Makefile
+++ armadillo-7.900.1/tests/Makefile
@@ -1,25 +0,0 @@
-
-LIB_FLAGS = -larmadillo
-#LIB_FLAGS = -lblas -llapack
-#LIB_FLAGS = -lopenblas -llapack
-
-CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0
-#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0 -fopenmp
-#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O0 -DARMA_DONT_USE_WRAPPER
-#CXX_FLAGS = -std=c++11 -Wshadow -Wall -pedantic -O2
-

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon May 15 14:07:43 UTC 2017 - badshah400@gmail.com
- Update to version 7.900.1:
+ Expanded clamp() to handle cubes.
+ Computationally expensive element-wise functions (such as
exp(), log(), cos(), etc) can now be automatically sped up via
OpenMP; this requires a C++11/C++14 compiler with OpenMP 3.0+
support.
- Rebase armadillo-tests.patch for updated version.
- Drop tests because upstream acknowledges some tests are intended
to fail without ARPACK.
-------------------------------------------------------------------
Sat Feb 18 22:37:01 UTC 2017 - badshah400@gmail.com

View File

@ -18,7 +18,7 @@
%define soname libarmadillo7
Name: armadillo
Version: 7.800.0
Version: 7.900.1
Release: 0
Summary: Fast C++ matrix library with interfaces to LAPACK and ATLAS
License: Apache-2.0
@ -140,7 +140,7 @@ for i in `ls examples/*.cpp`; do sed -i 's/\r//' $i; done
%build
cmake . \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}\
-DINSTALL_LIB_DIR:PATH=%{_libdir}
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir}
make %{?_smp_mflags}
%install
@ -150,11 +150,12 @@ rm -rf examples/example1_win64.*
rm -rf examples/example2_win64.*
rm -rf examples/lib_win64
%check
pushd tests
make %{?_smp_mflags}
./main
popd
# Drop tests because upstream acknowledges some tests are intended to fail without ARPACK
#%%check
#pushd tests
#make %%{?_smp_mflags}
#./main
#popd
%post -n %{soname} -p /sbin/ldconfig