Package superlu: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | %define somver 3 %define sover %somver.1.0 Name: superlu Version: 3.1 Release: alt7 Summary: A set of subroutines to solve a sparse linear system A*X=B License: BSD-like Group: Sciences/Mathematics Url: http://acts.nersc.gov/superlu/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: http://crd.lbl.gov/~xiaoye/SuperLU/superlu_3.1.tar.gz Source1: http://www.netlib.org/clapack/what/testing/matgen/clatm1.c Source2: http://www.netlib.org/clapack/what/testing/matgen/zlatm1.c Source3: http://www.netlib.org/clapack/CLAPACK-3.1.1/TESTING/MATGEN/blaswrap.h Requires: lib%name = %version-%release BuildPreReq: gcc-fortran gcc-c++ libatlas-devel liblapack-devel BuildPreReq: csh doxygen graphviz tetex-latex ghostscript-utils BuildPreReq: tetex-latex-listings tetex-latex-unicode %description SuperLU contains a set of subroutines to solve a sparse linear system A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The columns of A may be preordered before factorization; the preordering for sparsity is completely separate from the factorization. SuperLU provides functionality for both real and complex matrices, in both single and double precision. %package -n lib%name Summary: Shared libraries of SuperLU Group: System/Libraries %description -n lib%name SuperLU contains a set of subroutines to solve a sparse linear system A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The columns of A may be preordered before factorization; the preordering for sparsity is completely separate from the factorization. SuperLU provides functionality for both real and complex matrices, in both single and double precision. This package contains shared libraries of SuperLU. %package -n lib%name-devel Summary: Development files of SuperLU Group: Development/C Requires: lib%name = %version-%release Conflicts: lib%name-devel < %version-%release Obsoletes: lib%name-devel < %version-%release %description -n lib%name-devel SuperLU contains a set of subroutines to solve a sparse linear system A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The columns of A may be preordered before factorization; the preordering for sparsity is completely separate from the factorization. SuperLU provides functionality for both real and complex matrices, in both single and double precision. This package contains development files of SuperLU. %package -n lib%name-devel-static Summary: Static libraries of SuperLU Group: Development/C Requires: lib%name-devel = %version-%release Conflicts: lib%name-devel < %version-%release %description -n lib%name-devel-static SuperLU contains a set of subroutines to solve a sparse linear system A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The columns of A may be preordered before factorization; the preordering for sparsity is completely separate from the factorization. SuperLU provides functionality for both real and complex matrices, in both single and double precision. This package contains static libraries of SuperLU. %package -n lib%name-devel-doc Summary: Documentation for SuperLU Group: Development/Documentation BuildArch: noarch %description -n lib%name-devel-doc SuperLU contains a set of subroutines to solve a sparse linear system A*X=B. It uses Gaussian elimination with partial pivoting (GEPP). The columns of A may be preordered before factorization; the preordering for sparsity is completely separate from the factorization. SuperLU provides functionality for both real and complex matrices, in both single and double precision. This package contains documentation for SuperLU. %prep %setup install -m644 %SOURCE1 %SOURCE2 %SOURCE3 TESTING/MATGEN %build sed -i "s|(HOME)|$PWD|" make.inc sed -i "s|(LIBDIR)|%_libdir|" make.inc %make install %make lib doc %make testing pushd EXAMPLE %make_build popd pushd DOC/latex %make_build popd pushd TESTING %make_build popd %install install -d %buildroot%_bindir install -d %buildroot%_datadir/%name/examples install -d %buildroot%_libdir install -d %buildroot%_includedir install -d %buildroot%_docdir/%name/html install -d %buildroot%_docdir/%name/pdf install -m644 SRC/*.h %buildroot%_includedir install -m644 *.a %buildroot%_libdir mv DOC/ug.pdf DOC/latex/refman.pdf %buildroot%_docdir/%name/ install -m644 DOC/latex/*.pdf %buildroot%_docdir/%name/pdf install -m644 DOC/html/* %buildroot%_docdir/%name/html install -m755 TESTING/?test TESTING/?test.csh %buildroot%_bindir pushd EXAMPLE rm -f *.o Makefile chmod -x cg20.cua mv README cg20.cua cmat g10 *.c %buildroot%_datadir/%name/examples/ install -m755 * %buildroot%_bindir popd pushd %buildroot%_bindir for i in $(ls); do mv $i %name.$i done popd # shared libraries pushd %buildroot%_libdir for i in libsuperlu_%version libtmglib; do if [ "$i" = "libtmglib" ]; then ADDLIB="-L. -lsuperlu_%version" fi ar x $i.a g++ -shared *.o $ADDLIB -llapack -lblas -lm \ -Wl,-soname,$i.so.%somver -o $i.so.%sover ln -s $i.so.%sover $i.so.%somver ln -s $i.so.%somver $i.so rm -f *.o done popd %files %doc README %_bindir/* %_datadir/%name %files -n lib%name %_libdir/*.so.* %files -n lib%name-devel %_libdir/*.so %_includedir/* %files -n lib%name-devel-static %_libdir/*.a %files -n lib%name-devel-doc %_docdir/%name %changelog * Sat Aug 29 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1-alt7 - Added shared libraries and additional documentation * Thu Jun 25 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1-alt6 - Resolved conflicts with ctest and dapl*-utils * Sun Jun 21 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1-alt5 - Rebuild with PIC * Fri Jun 12 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1-alt4 - Added examples * Tue May 26 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1-alt3 - Resolve conflict with superlu_dist * Tue May 19 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1-alt2 - Added explicit conflict with superlu_dist * Fri Apr 17 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1-alt1 - Initial build for Sisyphus |