From 12ce35100357939faa6da81e500f51f5268a5c98785f6a5b12e7ba42059e87fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 15 Jun 2016 08:24:42 +0000 Subject: [PATCH] Accepting request 401949 from home:badshah400:branches:devel:libraries:c_c++ - Use system blas by passing the cmake option -DUSE_XSDK_DEFAULTS='TRUE'. - Disable building tests for now because they have linking issues. - Use cmake macros wherever appropriate. - A minimum of cmake >= 2.8.12 is required for building. OBS-URL: https://build.opensuse.org/request/show/401949 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/superlu?expand=0&rev=15 --- superlu.changes | 9 +++++++++ superlu.spec | 24 +++++++----------------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/superlu.changes b/superlu.changes index a86fb74..0cfa3f4 100644 --- a/superlu.changes +++ b/superlu.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Jun 14 12:56:22 UTC 2016 - badshah400@gmail.com + +- Use system blas by passing the cmake option + -DUSE_XSDK_DEFAULTS='TRUE'. +- Disable building tests for now because they have linking issues. +- Use cmake macros wherever appropriate. +- A minimum of cmake >= 2.8.12 is required for building. + ------------------------------------------------------------------- Sun May 29 16:30:52 UTC 2016 - foss@grueninger.de diff --git a/superlu.spec b/superlu.spec index a57c91c..81a12ae 100644 --- a/superlu.spec +++ b/superlu.spec @@ -39,8 +39,8 @@ Patch2: superlu-4.3-dont-opt-away.diff # this routine in the library which, however, remains fully functionnal Patch3: superlu-5.2-remove-mc64ad.patch Url: http://crd.lbl.gov/~xiaoye/SuperLU/ -BuildRequires: blas -BuildRequires: cmake +BuildRequires: blas-devel +BuildRequires: cmake >= 2.8.12 BuildRequires: fdupes BuildRequires: gcc-fortran BuildRequires: tcsh @@ -81,25 +81,15 @@ developing applications that use %{name}. cp %SOURCE1 %SOURCE2 ./ %build -mkdir build -cd build -cmake \ - -DBUILD_SHARED_LIBS=ON \ - -DCMAKE_INSTALL_PREFIX=%{_prefix} \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_C_FLAGS_RELEASE=\ - "-O3 -fPIC -fschedule-insns2 \ - -funroll-loops -fstrict-aliasing \ - -ftree-vectorize -funit-at-a-time \ - -frerun-loop-opt" \ - .. +# FIXME: Drop the -Denable_tests=OFF flag when MATGEN linking issues are resolved +%cmake \ + -DCMAKE_BUILD_TYPE=Release -DUSE_XSDK_DEFAULTS='TRUE' -Denable_tests=OFF + make %{?_smp_mflags} cd .. %install -cd build -make DESTDIR=%{buildroot} install -cd .. +%cmake_install #fix permissions chmod 644 MATLAB/*