Accepting request 148856 from home:scorot:branches:devel:libraries:c_c++
- repackage original source tarball in order to remove the HSL mc64ad routine that cannot be redistributed [bnc#796236] - add README.SUSE file in the %%doc in order to explain that change OBS-URL: https://build.opensuse.org/request/show/148856 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/superlu?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
849e606914
commit
60f3971640
32
superlu.spec
32
superlu.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package superlu
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -22,14 +22,20 @@ License: BSD-3-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
Version: 4.3
|
||||
Release: 0
|
||||
Source: ftp://ftp.netlib.org/scalapack/prototype/superlu_%{version}.tar.bz2
|
||||
Source: ftp://ftp.netlib.org/scalapack/prototype/superlu_%{version}-bsd.tar.bz2
|
||||
Source1: superlu_ug.pdf
|
||||
Source2: README.SUSE
|
||||
# PATCH-FEATURE-OPENSUSE superlu-4.3.diff : add compiler and build flags in make.inc
|
||||
Patch: superlu-4.3.diff
|
||||
# PATCH-FIX-UPSTREAM superlu-4.3-include.patch : avoid implicit declaration warnings
|
||||
Patch1: superlu-4.3-include.patch
|
||||
# PATCH-FIX-UPSTREAM superlu-4.3-dont-opt-away.diff
|
||||
Patch2: superlu-4.3-dont-opt-away.diff
|
||||
# PATCH-FIX-OPENSUSE superlu-4.3-remove-hsl.patch [bnc#796236]
|
||||
# The Harwell Subroutine Library (HSL) routine m64ad.c have been removed
|
||||
# from the original sources for legal reasons. This patch disables the inclusion of
|
||||
# this routine in the library which, however, remains fully functionnal
|
||||
Patch3: superlu-4.3-disable-hsl.patch
|
||||
Url: http://crd.lbl.gov/~xiaoye/SuperLU/
|
||||
BuildRequires: blas
|
||||
BuildRequires: fdupes
|
||||
@@ -71,21 +77,22 @@ developing applications that use %{name}.
|
||||
%patch -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
# superlu_ug.pdf in %%doc
|
||||
cp %SOURCE1 ./
|
||||
cp %SOURCE1 %SOURCE2 ./
|
||||
|
||||
%build
|
||||
make
|
||||
make lib
|
||||
|
||||
mkdir tmp
|
||||
(cd tmp; ar -x ../lib/libsuperlu_%{version}.a)
|
||||
gfortran -shared -Wl,-soname,libsuperlu.so.4 -o libsuperlu.so.%{version} tmp/*.o
|
||||
gfortran -shared -Wl,-soname,libsuperlu.so.4 -o lib/libsuperlu.so tmp/*.o
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_libdir}
|
||||
mkdir -p %{buildroot}%{_includedir}
|
||||
install -m644 SRC/*.h %{buildroot}%{_includedir}
|
||||
install -m755 *.so.* %{buildroot}%{_libdir}
|
||||
install -m755 lib/libsuperlu.so %{buildroot}%{_libdir}/libsuperlu.so.%{version}
|
||||
ln -s %{_libdir}/libsuperlu.so.%{version} %{buildroot}%{_libdir}/libsuperlu.so.4
|
||||
ln -s %{_libdir}/libsuperlu.so.4 %{buildroot}%{_libdir}/libsuperlu.so
|
||||
|
||||
@@ -102,10 +109,13 @@ cp FORTRAN/README README.fortran
|
||||
%fdupes -s examples
|
||||
|
||||
%check
|
||||
cd TESTING
|
||||
./stest
|
||||
./ztest
|
||||
cd ..
|
||||
ln -s examples/ EXAMPLE
|
||||
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
||||
make testing
|
||||
echo -ne "\nTest results\n"
|
||||
for i in stest dtest ctest ztest; do
|
||||
cat TESTING/$i.out
|
||||
done
|
||||
|
||||
%post -n libsuperlu4 -p /sbin/ldconfig
|
||||
|
||||
@@ -113,7 +123,7 @@ cd ..
|
||||
|
||||
%files -n libsuperlu4
|
||||
%defattr(-,root,root,-)
|
||||
%doc README MATLAB
|
||||
%doc README MATLAB README.SUSE
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
|
Reference in New Issue
Block a user