Use %global, move to top of spec

This commit is contained in:
Orion Poplawski 2016-01-05 16:47:03 -07:00
parent e906c2e13d
commit 76fcea4152

View File

@ -10,6 +10,44 @@
%global atlaslibs -lcblas -llapack
%endif
%global amd_version 2.4.1
%global amd_version_major 2
%global btf_version 1.2.1
%global btf_version_major 1
%global camd_version 2.4.1
%global camd_version_major 2
%global ccolamd_version 2.9.1
%global ccolamd_version_major 2
%global cholmod_version 3.0.6
%global cholmod_version_major 3
%global colamd_version 2.9.1
%global colamd_version_major 2
%global csparse_version 3.1.4
%global csparse_version_major 3
%global cxsparse_version 3.1.4
%global cxsparse_version_major 3
%global klu_version 1.3.3
%global klu_version_major 1
%global ldl_version 2.2.1
%global ldl_version_major 2
%global rbio_version 2.2.1
%global rbio_version_major 2
%global spqr_version 2.0.1
%global spqr_version_major 2
%global SuiteSparse_config_ver 4.4.4
%global SuiteSparse_config_major 4
%global umfpack_version 5.7.1
%global umfpack_version_major 5
### CHOLMOD can also be compiled to use the METIS library, but it is not
### used here because its licensing terms exclude it from Fedora Extras.
### To compile with METIS, define enable_metis as 1 below.
%global enable_metis 0
### CXSparse is a superset of CSparse, and the two share common header
### names, so it does not make sense to build both. CXSparse is built
### by default, but CSparse can be built instead by defining
### enable_csparse as 1 below.
%global enable_csparse 0
Name: suitesparse
Version: 4.4.6
Release: 3%{?dist}
@ -94,44 +132,6 @@ This package contains documentation files for %{name}.
%setup -q -n SuiteSparse
%build
%define amd_version 2.4.1
%define amd_version_major 2
%define btf_version 1.2.1
%define btf_version_major 1
%define camd_version 2.4.1
%define camd_version_major 2
%define ccolamd_version 2.9.1
%define ccolamd_version_major 2
%define cholmod_version 3.0.6
%define cholmod_version_major 3
%define colamd_version 2.9.1
%define colamd_version_major 2
%define csparse_version 3.1.4
%define csparse_version_major 3
%define cxsparse_version 3.1.4
%define cxsparse_version_major 3
%define klu_version 1.3.3
%define klu_version_major 1
%define ldl_version 2.2.1
%define ldl_version_major 2
%define rbio_version 2.2.1
%define rbio_version_major 2
%define spqr_version 2.0.1
%define spqr_version_major 2
%define SuiteSparse_config_ver 4.4.4
%define SuiteSparse_config_major 4
%define umfpack_version 5.7.1
%define umfpack_version_major 5
### CHOLMOD can also be compiled to use the METIS library, but it is not
### used here because its licensing terms exclude it from Fedora Extras.
### To compile with METIS, define enable_metis as 1 below.
%define enable_metis 0
### CXSparse is a superset of CSparse, and the two share common header
### names, so it does not make sense to build both. CXSparse is built
### by default, but CSparse can be built instead by defining
### enable_csparse as 1 below.
%define enable_csparse 0
mkdir -p Doc/{AMD,BTF,CAMD,CCOLAMD,CHOLMOD,COLAMD,KLU,LDL,UMFPACK,SPQR,RBio} Lib Include
# SuiteSparse_config needs to come first