|
|
b43ae2 |
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
|
|
|
b43ae2 |
%bcond_without atlas310
|
|
|
b43ae2 |
%else
|
|
|
b43ae2 |
%bcond_with atlas310
|
|
|
b43ae2 |
%endif
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%if %{with atlas310}
|
|
|
b43ae2 |
%global atlaslibs -lsatlas
|
|
|
b43ae2 |
%else
|
|
|
b43ae2 |
%global atlaslibs -lcblas -llapack
|
|
|
b43ae2 |
%endif
|
|
|
b43ae2 |
|
|
|
b43ae2 |
Name: suitesparse
|
|
|
b43ae2 |
Version: 4.0.2
|
|
|
b43ae2 |
Release: 10%{?dist}
|
|
|
b43ae2 |
Summary: A collection of sparse matrix libraries
|
|
|
b43ae2 |
|
|
|
b43ae2 |
Group: System Environment/Libraries
|
|
|
b43ae2 |
License: LGPLv2+ and GPLv2+
|
|
|
b43ae2 |
URL: http://www.cise.ufl.edu/research/sparse/SuiteSparse
|
|
|
b43ae2 |
Source0: http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-%{version}.tar.gz
|
|
|
b43ae2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%if %{with atlas310}
|
|
|
b43ae2 |
BuildRequires: atlas-devel >= 3.10
|
|
|
b43ae2 |
%else
|
|
|
b43ae2 |
BuildRequires: atlas-devel
|
|
|
b43ae2 |
%endif
|
|
|
b43ae2 |
%ifarch %{ix86} x86_64 ia64
|
|
|
b43ae2 |
BuildRequires: tbb-devel
|
|
|
b43ae2 |
%global with_tbb 1
|
|
|
b43ae2 |
%endif
|
|
|
b43ae2 |
|
|
|
b43ae2 |
BuildRequires: hardlink
|
|
|
b43ae2 |
|
|
|
b43ae2 |
Obsoletes: umfpack <= 5.0.1
|
|
|
b43ae2 |
Obsoletes: ufsparse <= 2.1.1
|
|
|
b43ae2 |
Provides: ufsparse = %{version}-%{release}
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%description
|
|
|
b43ae2 |
suitesparse is a collection of libraries for computations involving sparse
|
|
|
b43ae2 |
matrices. The package includes the following libraries:
|
|
|
b43ae2 |
AMD approximate minimum degree ordering
|
|
|
b43ae2 |
BTF permutation to block triangular form (beta)
|
|
|
b43ae2 |
CAMD constrained approximate minimum degree ordering
|
|
|
b43ae2 |
COLAMD column approximate minimum degree ordering
|
|
|
b43ae2 |
CCOLAMD constrained column approximate minimum degree ordering
|
|
|
b43ae2 |
CHOLMOD sparse Cholesky factorization
|
|
|
b43ae2 |
CSparse a concise sparse matrix package
|
|
|
b43ae2 |
CXSparse CSparse extended: complex matrix, int and long int support
|
|
|
b43ae2 |
KLU sparse LU factorization, primarily for circuit simulation
|
|
|
b43ae2 |
LDL a simple LDL factorization
|
|
|
b43ae2 |
SQPR a multithread, multifrontal, rank-revealing sparse QR
|
|
|
b43ae2 |
factorization method
|
|
|
b43ae2 |
UMFPACK sparse LU factorization
|
|
|
b43ae2 |
SuiteSparse_config configuration file for all the above packages.
|
|
|
b43ae2 |
RBio read/write files in Rutherford/Boeing format
|
|
|
b43ae2 |
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%package devel
|
|
|
b43ae2 |
Summary: Development headers for SuiteSparse
|
|
|
b43ae2 |
Group: Development/Libraries
|
|
|
b43ae2 |
Requires: %{name} = %{version}-%{release}
|
|
|
b43ae2 |
Obsoletes: umfpack-devel <= 5.0.1
|
|
|
b43ae2 |
Obsoletes: ufsparse-devel <= 2.1.1
|
|
|
b43ae2 |
Provides: ufsparse-devel = %{version}-%{release}
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%description devel
|
|
|
b43ae2 |
The suitesparse-devel package contains files needed for developing
|
|
|
b43ae2 |
applications which use the suitesparse libraries.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%package static
|
|
|
b43ae2 |
Summary: Static version of SuiteSparse libraries
|
|
|
b43ae2 |
Group: Development/Libraries
|
|
|
b43ae2 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
b43ae2 |
Provides: ufsparse-static = %{version}-%{release}
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%description static
|
|
|
b43ae2 |
The suitesparse-static package contains the statically linkable
|
|
|
b43ae2 |
version of the suitesparse libraries.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%package doc
|
|
|
b43ae2 |
Summary: Documentation files for SuiteSparse
|
|
|
b43ae2 |
Group: Documentation
|
|
|
b43ae2 |
BuildArch: noarch
|
|
|
b43ae2 |
|
|
|
b43ae2 |
Requires: %{name} = %{version}-%{release}
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%description doc
|
|
|
b43ae2 |
This package contains documentation files for %{name}.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%prep
|
|
|
b43ae2 |
%setup -q -n SuiteSparse
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%build
|
|
|
b43ae2 |
%define amd_version 2.3.1
|
|
|
b43ae2 |
%define amd_version_major 2
|
|
|
b43ae2 |
%define btf_version 1.2.0
|
|
|
b43ae2 |
%define btf_version_major 1
|
|
|
b43ae2 |
%define camd_version 2.3.1
|
|
|
b43ae2 |
%define camd_version_major 2
|
|
|
b43ae2 |
%define ccolamd_version 2.8.0
|
|
|
b43ae2 |
%define ccolamd_version_major 2
|
|
|
b43ae2 |
%define cholmod_version 2.0.1
|
|
|
b43ae2 |
%define cholmod_version_major 2
|
|
|
b43ae2 |
%define colamd_version 2.8.0
|
|
|
b43ae2 |
%define colamd_version_major 2
|
|
|
b43ae2 |
%define csparse_version 3.1.1
|
|
|
b43ae2 |
%define csparse_version_major 3
|
|
|
b43ae2 |
%define cxsparse_version 3.1.1
|
|
|
b43ae2 |
%define cxsparse_version_major 3
|
|
|
b43ae2 |
%define klu_version 1.2.1
|
|
|
b43ae2 |
%define klu_version_major 1
|
|
|
b43ae2 |
%define ldl_version 2.1.0
|
|
|
b43ae2 |
%define ldl_version_major 2
|
|
|
b43ae2 |
%define umfpack_version 5.6.1
|
|
|
b43ae2 |
%define umfpack_version_major 5
|
|
|
b43ae2 |
%define spqr_version 1.3.1
|
|
|
b43ae2 |
%define spqr_version_major 1
|
|
|
b43ae2 |
%define rbio_version 2.1.1
|
|
|
b43ae2 |
%define rbio_version_major 2
|
|
|
b43ae2 |
%define SuiteSparse_config_ver 4.2.0
|
|
|
b43ae2 |
%define SuiteSparse_config_major 4
|
|
|
b43ae2 |
### CHOLMOD can also be compiled to use the METIS library, but it is not
|
|
|
b43ae2 |
### used here because its licensing terms exclude it from Fedora Extras.
|
|
|
b43ae2 |
### To compile with METIS, define enable_metis as 1 below.
|
|
|
b43ae2 |
%define enable_metis 0
|
|
|
b43ae2 |
### CXSparse is a superset of CSparse, and the two share common header
|
|
|
b43ae2 |
### names, so it does not make sense to build both. CXSparse is built
|
|
|
b43ae2 |
### by default, but CSparse can be built instead by defining
|
|
|
b43ae2 |
### enable_csparse as 1 below.
|
|
|
b43ae2 |
%define enable_csparse 0
|
|
|
b43ae2 |
|
|
|
b43ae2 |
mkdir -p Doc/{AMD,BTF,CAMD,CCOLAMD,CHOLMOD,COLAMD,KLU,LDL,UMFPACK,SPQR,RBio} Lib Include
|
|
|
b43ae2 |
|
|
|
b43ae2 |
# SuiteSparse_config needs to come first
|
|
|
b43ae2 |
pushd SuiteSparse_config
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
ar x libsuitesparseconfig.a
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libsuitesparseconfig.so.%{SuiteSparse_config_major} -o \
|
|
|
b43ae2 |
libsuitesparseconfig.so.%{SuiteSparse_config_ver} ../SuiteSparse_config/*.o
|
|
|
b43ae2 |
ln -sf libsuitesparseconfig.so.%{SuiteSparse_config_ver} libsuitesparseconfig.so.%{SuiteSparse_config_major}
|
|
|
b43ae2 |
ln -sf libsuitesparseconfig.so.%{SuiteSparse_config_ver} libsuitesparseconfig.so
|
|
|
b43ae2 |
cp -p ../SuiteSparse_config/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p *.h ../Include
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd AMD
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libamd.so.%{amd_version_major} -o \
|
|
|
b43ae2 |
libamd.so.%{amd_version} ../AMD/Lib/*.o -lm
|
|
|
b43ae2 |
ln -sf libamd.so.%{amd_version} libamd.so.%{amd_version_major}
|
|
|
b43ae2 |
ln -sf libamd.so.%{amd_version} libamd.so
|
|
|
b43ae2 |
cp -p ../AMD/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/License Doc/ChangeLog Doc/*.pdf ../Doc/AMD
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd BTF
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libbtf.so.%{btf_version_major} -o \
|
|
|
b43ae2 |
libbtf.so.%{btf_version} ../BTF/Lib/*.o
|
|
|
b43ae2 |
ln -sf libbtf.so.%{btf_version} libbtf.so.%{btf_version_major}
|
|
|
b43ae2 |
ln -sf libbtf.so.%{btf_version} libbtf.so
|
|
|
b43ae2 |
cp -p ../BTF/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/* ../Doc/BTF
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd CAMD
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libcamd.so.%{camd_version_major} -o \
|
|
|
b43ae2 |
libcamd.so.%{camd_version} ../CAMD/Lib/*.o -lm
|
|
|
b43ae2 |
ln -sf libcamd.so.%{camd_version} libcamd.so.%{camd_version_major}
|
|
|
b43ae2 |
ln -sf libcamd.so.%{camd_version} libcamd.so
|
|
|
b43ae2 |
cp -p ../CAMD/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/ChangeLog Doc/License Doc/*.pdf ../Doc/CAMD
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd CCOLAMD
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libccolamd.so.%{ccolamd_version_major} -o \
|
|
|
b43ae2 |
libccolamd.so.%{ccolamd_version} ../CCOLAMD/Lib/*.o -lm
|
|
|
b43ae2 |
ln -sf libccolamd.so.%{ccolamd_version} libccolamd.so.%{ccolamd_version_major}
|
|
|
b43ae2 |
ln -sf libccolamd.so.%{ccolamd_version} libccolamd.so
|
|
|
b43ae2 |
cp -p ../CCOLAMD/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/* ../Doc/CCOLAMD
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd COLAMD
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libcolamd.so.%{colamd_version_major} -o \
|
|
|
b43ae2 |
libcolamd.so.%{colamd_version} ../COLAMD/Lib/*.o -lm
|
|
|
b43ae2 |
ln -sf libcolamd.so.%{colamd_version} libcolamd.so.%{colamd_version_major}
|
|
|
b43ae2 |
ln -sf libcolamd.so.%{colamd_version} libcolamd.so
|
|
|
b43ae2 |
cp -p ../COLAMD/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/* ../Doc/COLAMD
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%if "%{?enable_metis}" == "1"
|
|
|
b43ae2 |
CHOLMOD_FLAGS="$RPM_OPT_FLAGS -I%{_includedir}/metis -fPIC"
|
|
|
b43ae2 |
%else
|
|
|
b43ae2 |
CHOLMOD_FLAGS="$RPM_OPT_FLAGS -DNPARTITION -fPIC"
|
|
|
b43ae2 |
%endif
|
|
|
b43ae2 |
pushd CHOLMOD
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$CHOLMOD_FLAGS"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libcholmod.so.%{cholmod_version_major} -o \
|
|
|
b43ae2 |
libcholmod.so.%{cholmod_version} ../CHOLMOD/Lib/*.o \
|
|
|
b43ae2 |
-L%{_libdir}/atlas %{atlaslibs} \
|
|
|
b43ae2 |
libamd.so.%{amd_version_major} \
|
|
|
b43ae2 |
libcamd.so.%{camd_version_major} libcolamd.so.%{colamd_version_major} \
|
|
|
b43ae2 |
libccolamd.so.%{ccolamd_version_major} \
|
|
|
b43ae2 |
libsuitesparseconfig.so.%{SuiteSparse_config_major} -lm
|
|
|
b43ae2 |
ln -sf libcholmod.so.%{cholmod_version} libcholmod.so.%{cholmod_version_major}
|
|
|
b43ae2 |
ln -sf libcholmod.so.%{cholmod_version} libcholmod.so
|
|
|
b43ae2 |
cp -p ../CHOLMOD/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/*.pdf ../Doc/CHOLMOD
|
|
|
b43ae2 |
cp -p Cholesky/License.txt ../Doc/CHOLMOD/Cholesky_License.txt
|
|
|
b43ae2 |
cp -p Core/License.txt ../Doc/CHOLMOD/Core_License.txt
|
|
|
b43ae2 |
cp -p MatrixOps/License.txt ../Doc/CHOLMOD/MatrixOps_License.txt
|
|
|
b43ae2 |
cp -p Partition/License.txt ../Doc/CHOLMOD/Partition_License.txt
|
|
|
b43ae2 |
cp -p Supernodal/License.txt ../Doc/CHOLMOD/Supernodal_License.txt
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%if "%{?enable_csparse}" == "1"
|
|
|
b43ae2 |
pushd CSparse
|
|
|
b43ae2 |
pushd Source
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
cp -p cs.h ../../Include
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libcsparse.so.%{csparse_version_major} -o \
|
|
|
b43ae2 |
libcsparse.so.%{csparse_version} ../CSparse/Source/*.o -lm
|
|
|
b43ae2 |
ln -sf libcsparse.so.%{csparse_version} libcsparse.so.%{csparse_version_major}
|
|
|
b43ae2 |
ln -sf libcsparse.so.%{csparse_version} libcsparse.so
|
|
|
b43ae2 |
cp -p ../CSparse/Source/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
mkdir ../Doc/CSparse/
|
|
|
b43ae2 |
cp -p Doc/* ../Doc/CSparse
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%else
|
|
|
b43ae2 |
pushd CXSparse
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libcxsparse.so.%{cxsparse_version_major} -o \
|
|
|
b43ae2 |
libcxsparse.so.%{cxsparse_version} ../CXSparse/Lib/*.o -lm
|
|
|
b43ae2 |
ln -sf libcxsparse.so.%{cxsparse_version} libcxsparse.so.%{cxsparse_version_major}
|
|
|
b43ae2 |
ln -sf libcxsparse.so.%{cxsparse_version} libcxsparse.so
|
|
|
b43ae2 |
cp -p ../CXSparse/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/cs.h ../Include
|
|
|
b43ae2 |
mkdir ../Doc/CXSparse/
|
|
|
b43ae2 |
cp -p Doc/* ../Doc/CXSparse
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
%endif
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd KLU
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libklu.so.%{klu_version_major} -o \
|
|
|
b43ae2 |
libklu.so.%{klu_version} ../KLU/Lib/*.o \
|
|
|
b43ae2 |
libamd.so.%{amd_version_major} libcolamd.so.%{colamd_version_major} \
|
|
|
b43ae2 |
libbtf.so.%{btf_version_major} libcholmod.so.%{cholmod_version_major} \
|
|
|
b43ae2 |
libsuitesparseconfig.so.%{SuiteSparse_config_major}
|
|
|
b43ae2 |
ln -sf libklu.so.%{klu_version} libklu.so.%{klu_version_major}
|
|
|
b43ae2 |
ln -sf libklu.so.%{klu_version} libklu.so
|
|
|
b43ae2 |
cp -p ../KLU/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/lesser.txt ../Doc/KLU
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd LDL
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libldl.so.%{ldl_version_major} -o \
|
|
|
b43ae2 |
libldl.so.%{ldl_version} ../LDL/Lib/*.o
|
|
|
b43ae2 |
ln -sf libldl.so.%{ldl_version} libldl.so.%{ldl_version_major}
|
|
|
b43ae2 |
ln -sf libldl.so.%{ldl_version} libldl.so
|
|
|
b43ae2 |
cp -p ../LDL/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/ChangeLog Doc/lesser.txt Doc/*.pdf ../Doc/LDL
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd UMFPACK
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,libumfpack.so.%{umfpack_version_major} -o \
|
|
|
b43ae2 |
libumfpack.so.%{umfpack_version} ../UMFPACK/Lib/*.o \
|
|
|
b43ae2 |
-L%{_libdir}/atlas %{atlaslibs} \
|
|
|
b43ae2 |
libamd.so.%{amd_version_major} \
|
|
|
b43ae2 |
libcholmod.so.%{cholmod_version_major} \
|
|
|
b43ae2 |
libsuitesparseconfig.so.%{SuiteSparse_config_major} -lm
|
|
|
b43ae2 |
ln -sf libumfpack.so.%{umfpack_version} libumfpack.so.%{umfpack_version_major}
|
|
|
b43ae2 |
ln -sf libumfpack.so.%{umfpack_version} libumfpack.so
|
|
|
b43ae2 |
cp -p ../UMFPACK/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/License Doc/ChangeLog Doc/gpl.txt Doc/*.pdf ../Doc/UMFPACK
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd SPQR
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS %{?with_tbb:-DHAVE_TBB} -DNPARTITION -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
g++ -shared -Wl,-soname,libspqr.so.%{spqr_version_major} -o \
|
|
|
b43ae2 |
libspqr.so.%{spqr_version} ../SPQR/Lib/*.o \
|
|
|
b43ae2 |
-L%{_libdir}/atlas -L%{_libdir} %{atlaslibs} \
|
|
|
b43ae2 |
%{?with_tbb:-ltbb -ltbbmalloc} \
|
|
|
b43ae2 |
libcholmod.so.%{cholmod_version_major} \
|
|
|
b43ae2 |
libsuitesparseconfig.so.%{SuiteSparse_config_major} -lm
|
|
|
b43ae2 |
ln -sf libspqr.so.%{spqr_version} libspqr.so.%{spqr_version_major}
|
|
|
b43ae2 |
ln -sf libspqr.so.%{spqr_version} libspqr.so
|
|
|
b43ae2 |
cp -p ../SPQR/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h* ../Include
|
|
|
b43ae2 |
cp -p README{,_SPQR}.txt
|
|
|
b43ae2 |
cp -p README_SPQR.txt Doc/* ../Doc/SPQR
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
pushd RBio
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
make CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd ../Lib
|
|
|
b43ae2 |
gcc -shared -Wl,-soname,librbio.so.%{rbio_version_major} -o \
|
|
|
b43ae2 |
librbio.so.%{rbio_version} ../RBio/Lib/*.o \
|
|
|
b43ae2 |
libsuitesparseconfig.so.%{SuiteSparse_config_major}
|
|
|
b43ae2 |
ln -sf librbio.so.%{rbio_version} librbio.so.%{rbio_version_major}
|
|
|
b43ae2 |
ln -sf librbio.so.%{rbio_version} librbio.so
|
|
|
b43ae2 |
cp -p ../RBio/Lib/*.a ./
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
cp -p Include/*.h ../Include
|
|
|
b43ae2 |
cp -p README.txt Doc/ChangeLog Doc/License.txt ../Doc/RBio
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%install
|
|
|
b43ae2 |
rm -rf ${RPM_BUILD_ROOT}
|
|
|
b43ae2 |
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
|
b43ae2 |
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/%{name}
|
|
|
b43ae2 |
pushd Lib
|
|
|
b43ae2 |
for f in *.a *.so*; do
|
|
|
b43ae2 |
cp -a $f ${RPM_BUILD_ROOT}%{_libdir}/$f
|
|
|
b43ae2 |
done
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
pushd Include
|
|
|
b43ae2 |
for f in *.h *.hpp; do
|
|
|
b43ae2 |
cp -a $f ${RPM_BUILD_ROOT}%{_includedir}/%{name}/$f
|
|
|
b43ae2 |
done
|
|
|
b43ae2 |
popd
|
|
|
b43ae2 |
|
|
|
b43ae2 |
# collect licenses in one place to ship as base package documentation
|
|
|
b43ae2 |
rm -rf Licenses
|
|
|
b43ae2 |
mkdir Licenses
|
|
|
b43ae2 |
find */ -iname lesser.txt -o -iname license.txt -o -iname gpl.txt -o \
|
|
|
b43ae2 |
-iname license | while read f; do
|
|
|
b43ae2 |
b="${f%%/*}"
|
|
|
b43ae2 |
r="${f#$b}"
|
|
|
b43ae2 |
x="$(echo "$r" | sed 's|/doc/|/|gi')"
|
|
|
b43ae2 |
install -m0644 -D "$f" "./Licenses/$b/$x"
|
|
|
b43ae2 |
done
|
|
|
b43ae2 |
|
|
|
b43ae2 |
# hardlink duplicate documentation files
|
|
|
b43ae2 |
hardlink -cv Docs/ Licenses/
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%clean
|
|
|
b43ae2 |
rm -rf ${RPM_BUILD_ROOT}
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%post -p /sbin/ldconfig
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%postun -p /sbin/ldconfig
|
|
|
b43ae2 |
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%files
|
|
|
b43ae2 |
%defattr(-,root,root)
|
|
|
b43ae2 |
%doc Licenses
|
|
|
b43ae2 |
%{_libdir}/lib*.so.*
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%files devel
|
|
|
b43ae2 |
%defattr(-,root,root)
|
|
|
b43ae2 |
%{_includedir}/%{name}
|
|
|
b43ae2 |
%{_libdir}/lib*.so
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%files static
|
|
|
b43ae2 |
%defattr(-,root,root)
|
|
|
b43ae2 |
%{_libdir}/lib*.a
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%files doc
|
|
|
b43ae2 |
%defattr(-,root,root)
|
|
|
b43ae2 |
%doc Doc/*
|
|
|
b43ae2 |
|
|
|
b43ae2 |
%changelog
|
|
|
b43ae2 |
* Mon Feb 10 2014 Nils Philippsen <nils@redhat.com> - 4.0.2-10
|
|
|
b43ae2 |
- ship licenses as documentation in the base package (#1019315)
|
|
|
b43ae2 |
- hardlink duplicate documentation/license files
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.0.2-9
|
|
|
b43ae2 |
- Mass rebuild 2014-01-24
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.0.2-8
|
|
|
b43ae2 |
- Mass rebuild 2013-12-27
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Sep 20 2013 Nils Philippsen <nils@redhat.com> - 4.0.2-7
|
|
|
b43ae2 |
- build against atlas 3.10.x
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Sep 03 2013 Nils Philippsen <nils@redhat.com> - 4.0.2-6
|
|
|
b43ae2 |
- include C++ headers (#1001943)
|
|
|
b43ae2 |
- fix bogus dates in changelog
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.2-5
|
|
|
b43ae2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri May 24 2013 Petr Machata <pmachata@redhat.com> - 4.0.2-4
|
|
|
b43ae2 |
- Rebuild for TBB memory barrier bug
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.2-3
|
|
|
b43ae2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Mon Nov 19 2012 Nils Philippsen <nils@redhat.com> - 4.0.2-2
|
|
|
b43ae2 |
- explicitly link libsuitesparseconfig where necessary
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Nov 16 2012 Deji Akingunola <dakingun@gmail.com> - 4.0.2-1
|
|
|
b43ae2 |
- Update to 4.0.2
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.1-4
|
|
|
b43ae2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.1-3
|
|
|
b43ae2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Oct 11 2011 Dan HorĂ¡k <dan[at]danny.cz> - 3.6.1-2
|
|
|
b43ae2 |
- fix build without TBB
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Sep 23 2011 Deji Akingunola <dakingun@gmail.com> - 3.6.1-1
|
|
|
b43ae2 |
- Update to 3.6.1
|
|
|
b43ae2 |
- Fix undefine symbols in libspqr
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Sun Feb 13 2011 Deji Akingunola <dakingun@gmail.com> - 3.6.0-3
|
|
|
b43ae2 |
- Fix a couple of undefined reference errors in umfpack and Rbio (#677061)
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-2
|
|
|
b43ae2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Feb 04 2011 Deji Akingunola <dakingun@gmail.com> - 3.6.0-1
|
|
|
b43ae2 |
- Update to 3.6.0
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
|
|
|
b43ae2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Thu May 28 2009 Deji Akingunola <dakingun@gmail.com> - 3.4.0-1
|
|
|
b43ae2 |
- Update to version 3.4.0.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue May 19 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 3.3.0-2
|
|
|
b43ae2 |
- Split documentation into separate -doc subpackage (resolves BZ#492451).
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Mon Apr 27 2009 Deji Akingunola <dakingun@gmail.com> - 3.3.0-1
|
|
|
b43ae2 |
- Update to release 3.3.0.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-6
|
|
|
b43ae2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Jan 16 2009 Deji Akingunola <dakingun@gmail.com> - 3.2.0-5
|
|
|
b43ae2 |
- More fixes for the undefined symbol issue (BZ #475411)
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Sat Dec 20 2008 Deji Akingunola <dakingun@gmail.com> - 3.2.0-4
|
|
|
b43ae2 |
- Also build SPQR
|
|
|
b43ae2 |
- Further fixes for BZ #475411
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Wed Dec 17 2008 Deji Akingunola <dakingun@gmail.com> - 3.2.0-3
|
|
|
b43ae2 |
- Rearrange the spec
|
|
|
b43ae2 |
- Link in necessary libs when making shared CHOLMOD lib (BZ #475411)
|
|
|
b43ae2 |
- Link with ATLAS' blas and lapack libs
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Wed Dec 17 2008 Deji Akingunola <dakingun@gmail.com> - 3.2.0-2
|
|
|
b43ae2 |
- Rebuild for updated atlas
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Mon Dec 15 2008 Deji Akingunola <dakingun@gmail.com> - 3.2.0-1
|
|
|
b43ae2 |
- New upstream version
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Mon Mar 3 2008 Quentin Spencer <qspencer@users.sourceforge.net> 3.1.0-1
|
|
|
b43ae2 |
- Update to release 3.1.0.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.0.0-4
|
|
|
b43ae2 |
- Autorebuild for GCC 4.3
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Oct 16 2007 Quentin Spencer <qspencer@users.sourceforge.net> 3.0.0-3
|
|
|
b43ae2 |
- Update license tag. Fix minor issues found by rpmlint.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Aug 24 2007 Quentin Spencer <qspencer@users.sourceforge.net> 3.0.0-2
|
|
|
b43ae2 |
- Rebuild for F8.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Jul 3 2007 Quentin Spencer <qspencer@users.sourceforge.net> 3.0.0-1
|
|
|
b43ae2 |
- Change package name to match upstream, including provides and obsoletes.
|
|
|
b43ae2 |
- New release. Numerous changes in build to reflect source reorganization.
|
|
|
b43ae2 |
- Moved static libs into separate package.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Mon Oct 16 2006 Quentin Spencer <qspencer@users.sourceforge.net> 2.1.1-1
|
|
|
b43ae2 |
- New release, and package name change from UFsparse to SuiteSparse. Fixes
|
|
|
b43ae2 |
bug #210846. Keep the ufsparse package name for now.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Thu Sep 7 2006 Quentin Spencer <qspencer@users.sourceforge.net> 2.1.0-1
|
|
|
b43ae2 |
- New release. Increment versions of some libraries.
|
|
|
b43ae2 |
- Rearrange and clean up spec file so all definitions are in one place.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Mon Aug 7 2006 Quentin Spencer <qspencer@users.sourceforge.net> 2.0.0-1
|
|
|
b43ae2 |
- New release.
|
|
|
b43ae2 |
- Build newly added CAMD library.
|
|
|
b43ae2 |
- Misc minor spec changes.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Mar 7 2006 Quentin Spencer <qspencer@users.sourceforge.net> 1.2-1
|
|
|
b43ae2 |
- New release.
|
|
|
b43ae2 |
- Build newly added library CXSparse (but not CSparse--see comments
|
|
|
b43ae2 |
in build section).
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Wed Feb 15 2006 Quentin Spencer <qspencer@users.sourceforge.net> 0.93-2
|
|
|
b43ae2 |
- Rebuild for Fedora Extras 5.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Thu Feb 9 2006 Quentin Spencer <qspencer@users.sourceforge.net> 0.93-1
|
|
|
b43ae2 |
- New release. Remove old patch.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Wed Dec 14 2005 Quentin Spencer <qspencer@users.sourceforge.net> 0.92-2
|
|
|
b43ae2 |
- Add patch0--fixes LDL/Makefile so CFLAGS are used when compiling ldl.a.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Wed Dec 14 2005 Quentin Spencer <qspencer@users.sourceforge.net> 0.92-1
|
|
|
b43ae2 |
- Update to Dec 8 2005 version.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Oct 25 2005 Quentin Spencer <qspencer@users.sourceforge.net> 0.91-2
|
|
|
b43ae2 |
- Rebuild.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Tue Oct 18 2005 Quentin Spencer <qspencer@users.sourceforge.net> 0.91-1
|
|
|
b43ae2 |
- New upstream release, incorporating previous patches
|
|
|
b43ae2 |
- chmod the build directory to ensure all headers are world readable
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Fri Oct 07 2005 Quentin Spencer <qspencer@users.sourceforge.net> 0.9-3
|
|
|
b43ae2 |
- Build cholmod, but disable METIS using -DNPARTITION flag.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Sat Oct 01 2005 Quentin Spencer <qspencer@users.sourceforge.net> 0.9-2
|
|
|
b43ae2 |
- Modify description, other modifications for import into FE.
|
|
|
b43ae2 |
- Add dist tag, cosmetic changes.
|
|
|
b43ae2 |
|
|
|
b43ae2 |
* Thu Sep 08 2005 David Bateman <dbateman@free.fr> 0.9-1
|
|
|
b43ae2 |
- First version.
|