Пакет salsa-real: 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 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 | %define mpiimpl openmpi %define mpidir %_libdir/%mpiimpl %define scalar_type real %define oname salsa %define somver 0 %define sover %somver.2.0 Name: %oname-%scalar_type Version: 2.01 Release: alt8.svn20120408 Summary: Self-Adapting Large-scale Solver Architecture (%scalar_type scalars) License: LGPL Group: Sciences/Mathematics Url: http://sourceforge.net/projects/salsa/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> # https://salsa.svn.sourceforge.net/svnroot/salsa Source: %oname-%version.tar.gz Requires: lib%name-devel = %version-%release Requires: slepc-%scalar_type BuildPreReq: libpetsc-%scalar_type-devel libslepc-%scalar_type-devel BuildPreReq: petsc-%scalar_type-sources libmysqlclient-devel BuildPreReq: doxygen graphviz ghostscript-utils chrpath BuildPreReq: libhdf5-mpi-devel libtrilinos10-devel BuildPreReq: /usr/bin/latex texlive-extra-utils %description SALSA is a Self-Adapting Large-scale Solver Architecture: system for picking numerical algorithms (linear system solving) based on statistical modeling and machine learning. %package tests Summary: Testings of SALSA Group: Sciences/Mathematics Requires: lib%name = %version-%release %description tests SALSA is a Self-Adapting Large-scale Solver Architecture: system for picking numerical algorithms (linear system solving) based on statistical modeling and machine learning. This package contains testings of SALSA. %package -n lib%name Summary: Shared libraries of SALSA Group: System/Libraries Requires: libslepc-%scalar_type %description -n lib%name SALSA is a Self-Adapting Large-scale Solver Architecture: system for picking numerical algorithms (linear system solving) based on statistical modeling and machine learning. This package contains shared libraries of SALSA. %package -n lib%name-devel Summary: Development files of SALSA Group: Development/C++ Requires: lib%name = %version-%release Requires: libslepc-%scalar_type-devel %description -n lib%name-devel SALSA is a Self-Adapting Large-scale Solver Architecture: system for picking numerical algorithms (linear system solving) based on statistical modeling and machine learning. This package contains development files of SALSA. %package -n lib%name-devel-static Summary: Static libraries of SALSA Group: Development/C++ Requires: lib%name-devel = %version-%release %description -n lib%name-devel-static SALSA is a Self-Adapting Large-scale Solver Architecture: system for picking numerical algorithms (linear system solving) based on statistical modeling and machine learning. This package contains static libraries of SALSA. %package -n lib%oname-devel-doc-html Summary: Documentation for SALSA in HTML Group: Development/Documentation BuildArch: noarch %description -n lib%oname-devel-doc-html SALSA is a Self-Adapting Large-scale Solver Architecture: system for picking numerical algorithms (linear system solving) based on statistical modeling and machine learning. This package contains development documentation for SALSA in HTML. %package -n lib%oname-devel-doc-pdf Summary: Documentation for SALSA in PDF Group: Development/Documentation BuildArch: noarch %description -n lib%oname-devel-doc-pdf SALSA is a Self-Adapting Large-scale Solver Architecture: system for picking numerical algorithms (linear system solving) based on statistical modeling and machine learning. This package contains development documentation for SALSA in PDF. %prep %setup %build source %_bindir/petsc-%scalar_type.sh export OMPI_LDFLAGS="-Wl,--as-needed,-rpath=%mpidir/lib -L%mpidir/lib" export MPIDIR=%mpidir for i in */Make* */dox.conf* */testing/Makefile do sed -i "s|@TOPDIR@|$PWD|g" $i sed -i "s|@BUILDLIBS@|%buildroot$PETSC_DIR/lib|g" $i sed -i "s|@SOMVER@|%somver|g" $i sed -i "s|@SOVER@|%sover|g" $i done %install source %_bindir/petsc-%scalar_type.sh export OMPI_LDFLAGS="-Wl,--as-needed,-rpath=%mpidir/lib -L%mpidir/lib" export MPIDIR=%mpidir install -d %buildroot$PETSC_DIR/lib DEFFLAGS="%optflags %optflags_shared" DEFFLAGS="$DEFFLAGS -I$PETSC_DIR/include -I%mpidir/include" export DEFFLAGS="$DEFFLAGS -fpermissive" export ANAMOD_LIB_DIR=%buildroot$PETSC_DIR/lib for i in nmd anamod syspro do pushd $i mkdir -p doc %make lib %if "%scalar_type" == "real" %make_build documentation %endif pushd testing ln -s ../Make.inc . %make_build unittests popd popd done ################# # INSTALLING ################# # install headers for i in anamod nmd syspro do install -d %buildroot$PETSC_DIR/include/$i install -p -m644 $i/*.h %buildroot$PETSC_DIR/include/$i done # install tests for i in anamod nmd syspro do install -d %buildroot$PETSC_DIR/testing/$i cp -fR $i/testing/* %buildroot$PETSC_DIR/testing/$i/ rm -f %buildroot$PETSC_DIR/testing/$i/*.o \ %buildroot$PETSC_DIR/testing/$i/Make* done # install docs %if "%scalar_type" == "real" for i in anamod nmd syspro do install -d %buildroot%_docdir/lib%oname-devel/html/$i install -d %buildroot%_docdir/lib%oname-devel/pdf/$i install -m644 $i/doc/html/* \ %buildroot%_docdir/lib%oname-devel/html/$i install -m644 $i/doc/latex/*.pdf \ %buildroot%_docdir/lib%oname-devel/pdf/$i done %endif # fix rpath pushd %buildroot$PETSC_DIR pushd lib for i in $(ls *.so); do chrpath -r $PETSC_DIR/lib:%mpidir/lib $i done popd popd for i in %buildroot$PETSC_DIR/testing/*/* do chrpath -r %mpidir/lib:$PETSC_DIR/lib $i ||: done for i in $(find %buildroot%_docdir -name '*.html'); do sed -i 's|%buildroot||g' $i done %files -n lib%name %_libdir/petsc-%scalar_type/lib/*.so.* %files -n lib%name-devel %_libdir/petsc-%scalar_type/lib/*.so %_libdir/petsc-%scalar_type/include/* #files -n lib%name-devel-static #_libdir/petsc-%scalar_type/lib/*.a %files tests %dir %_libdir/petsc-%scalar_type/testing %_libdir/petsc-%scalar_type/testing/* %if "%scalar_type" == "real" %files -n lib%oname-devel-doc-html %dir %_docdir/lib%oname-devel %_docdir/lib%oname-devel/html %files -n lib%oname-devel-doc-pdf %dir %_docdir/lib%oname-devel %_docdir/lib%oname-devel/pdf %endif %changelog * Tue Jul 08 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt8.svn20120408 - Fixed build * Mon Jul 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt7.svn20120408 - Rebuilt with new PETSc * Thu Jun 27 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt6.svn20120408 - Rebuilt with new libhdf5 - Disabled static package * Mon Aug 13 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt5.svn20120408 - New snapshot * Sat Jul 07 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt5.svn20100714 - Changed native directory: %%_libexecdir/petsc-%scalar_type -> %%_libdir/petsc-%scalar_type * Fri Jun 29 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt4.svn20100714 - Rebuilt with OpenMPI 1.6 * Wed Dec 14 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt3.svn20100714 - Fixed RPATH * Sat Dec 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt2.svn20100714 - Rebuilt with PETSc 3.2 * Thu Sep 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt1.svn20100714.4 - Rebuilt with libhdf5-7-mpi * Wed Apr 13 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt1.svn20100714.3 - Built with GotoBLAS2 instead of ATLAS * Sat Mar 12 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt1.svn20100714.2 - Rebuilt for debuginfo * Thu Nov 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt1.svn20100714.1 - Rebuilt * Wed Nov 17 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.01-alt1.svn20100714 - Version 2.01 * Mon Oct 25 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt8 - Rebuilt for soname set-versions * Fri Oct 15 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt7 - Fixed linking of libraries * Wed Sep 22 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt6 - Rebuilt with libmysqlclient.so.16 * Mon Aug 30 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt5 - Removed paths to buildroot * Tue Aug 10 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt4 - Set devel package as noarch * Mon Aug 09 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt3 - Rebuilt with PETSc 3.1 * Sun Dec 06 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt2 - Rebuilt with Trilinos v10 * Sun Oct 04 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1 - Initial build for Sisyphus |