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