Package superlu4.0: 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 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | %define oname superlu %define over 4.0 %define somver 4 %define sover %somver.2.0 Name: %oname%over Version: 4.3 Release: alt3 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: %{oname}_%version.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 Provides: %oname = %version-%release Requires: lib%name = %version-%release BuildPreReq: gcc-fortran gcc-c++ liblapack-devel BuildPreReq: csh doxygen graphviz ghostscript-utils #BuildPreReq: texlive-latex-recommended texlive-extra-utils %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 Provides: lib%oname = %version-%release %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%oname-devel Summary: Development files of SuperLU Group: Development/C Requires: lib%name = %version-%release %description -n lib%oname-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%oname-devel-doc Summary: Documentation for SuperLU Group: Development/Documentation BuildArch: noarch %description -n lib%oname-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 mkdir lib %build sed -i "s|(HOME)|$PWD|" make.inc sed -i "s|(LIBDIR)|%_libdir|" make.inc %make install %make lib %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 lib/*.a TESTING/MATGEN/libtmglib.a %buildroot%_libdir install -m644 DOC/*.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 *.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_%over libtmglib; do if [ "$i" = "libtmglib" ]; then ADDLIB="-L. -lsuperlu_%over" fi ar x $i.a %ifarch %arm g++ -shared *.o $ADDLIB -llapack -lblas -lgfortran -lm \ %else g++ -shared *.o $ADDLIB -llapack -lopenblas -lgfortran -lm \ %endif -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%oname-devel %_libdir/*.so %_includedir/* %files -n lib%oname-devel-doc %_docdir/%name %changelog * Tue Mar 12 2013 Gleb F-Malinovskiy <glebfm@altlinux.org> 4.3-alt3 - on %arm liblapack is built with libblas, not libopenblas * Sun Aug 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.3-alt2 - Built with OpenBLAS instead of GotoBLAS2 * Thu Dec 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.3-alt1 - Version 4.3 * Wed Oct 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.2-alt1 - Version 4.2 * Tue May 03 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.1-alt1 - Version 4.1 - Disabled devel-static package * Fri Apr 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0-alt6 - Rebuilt with GotoBLAS2 1.13-alt3 * Thu Apr 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0-alt5 - Built with GotoBLAS2 instead of ATLAS * Wed Mar 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0-alt4 - Added -g into compiler flags * Thu Feb 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0-alt3 - Rebuilt for debuginfo * Tue Oct 12 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0-alt2 - Fixed underlinking of libraries * Mon Dec 21 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0-alt1 - Version 4.0 (soname changed) - Rebuilt with texlive instead of tetex * 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 |