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
This commit is contained in:
Ismail Dönmez 2016-06-15 08:24:42 +00:00 committed by Git OBS Bridge
parent 675acb5547
commit 12ce351003
2 changed files with 16 additions and 17 deletions

View File

@ -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

View File

@ -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/*