Пакет afepack-complex: 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 | %define mpiimpl openmpi %define mpidir %_libdir/%mpiimpl %define oname afepack %define scalar_type complex %define ldir %_libdir/petsc-%scalar_type Name: %oname-%scalar_type Version: 1.8 Release: alt15 Summary: C++ library for (adaptive) finite element developping (%scalar_type scalars) License: GPLv2+ Group: Sciences/Mathematics Url: http://dsec.pku.edu.cn/~rli/software_e.php Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: http://dsec.pku.edu.cn/~rli/AFEPack-snapshot.tar %define gccver 4.6 %set_gcc_version %gccver BuildPreReq: gcc%gccver gcc%gccver-c++ gcc%gccver-fortran BuildPreReq: python-module-petsc-config BuildPreReq: %mpiimpl-devel libdealii-%scalar_type-devel libtbb-devel BuildPreReq: doxygen boost-program_options-devel BuildPreReq: texlive-latex-base chrpath %description AFEPack is a C++ library for adaptive finite element programming. %package -n lib%name Summary: Shared libraries of AFEPack Group: System/Libraries %description -n lib%name AFEPack is a C++ library for adaptive finite element programming. This package contains shared libraries of AFEPack of AFEPack. %package templates Summary: Set of Template elements for AFEPack Group: Sciences/Mathematics Requires: lib%name = %version-%release %description templates AFEPack is a C++ library for adaptive finite element programming. This package contains a set of Template elements for AFEPack. %package devel Summary: Development files of AFEPack Group: Development/C++ Requires: lib%name = %version-%release Requires: %name-templates = %version-%release Requires: libdealii-%scalar_type-devel Requires: libtbb-devel boost-program_options-devel %description devel AFEPack is a C++ library for adaptive finite element programming. This package contains development files of AFEPack. %package examples Summary: Examples for AFEPack Group: Sciences/Mathematics Requires: lib%name = %version-%release Requires: %name-templates = %version-%release Requires: libdealii-%scalar_type %description examples AFEPack is a C++ library for adaptive finite element programming. This package contains examples for AFEPack. %package -n %oname-devel-doc Summary: Development documentation for AFEPack Group: Development/Documentation BuildArch: noarch %description -n %oname-devel-doc AFEPack is a C++ library for adaptive finite element programming. This package contains development documentation AFEPack. %prep %setup -n AFEPack rm -fR $(find ./ -name CVS) pushd library/include ln -s ../../../AFEPack/library AFEPack pushd AFEPack/mpi ln -s include/* ./ popd popd ln -s $PWD/library/include/*.h library/include/AFEPack for i in $(find ./ -type f); do sed -i 's|\-O3|-O3 -g|g' $i done %build source %_bindir/petsc-%scalar_type.sh export OMPI_LDFLAGS="-Wl,--as-needed,-rpath,%mpidir/lib -L%mpidir/lib" export MPIDIR=%mpidir %autoreconf %configure %make_build TOPDIR=$PWD pushd example %make_build TOPDIR=$TOPDIR \ ADDLIBS="-L$TOPDIR/library/lib -lAFEPack" popd %install source %_bindir/petsc-%scalar_type.sh export OMPI_LDFLAGS="-Wl,--as-needed,-rpath,%mpidir/lib -L%mpidir/lib" export MPIDIR=%mpidir %makeinstall_std prefix=%buildroot%ldir # delete unreleased templates rm -fR %buildroot%ldir/AFEPack/template/triangle/triangle.edge.Full.1* # headers mv %buildroot%ldir/include/AFEPack %buildroot%ldir/include/_ install -d %buildroot%ldir/include/AFEPack/mpi mv %buildroot%ldir/include/_/*.h %buildroot%ldir/include/AFEPack/ rm -fR %buildroot%ldir/include/_ install -p -m644 library/mpi/include/*.h \ %buildroot%ldir/include/AFEPack/mpi/ # examples install -d %buildroot%ldir/examples/AFEPack cp -fR example/* %buildroot%ldir/examples/AFEPack/ rm -f $(find %buildroot%ldir/examples/AFEPack -name '*.o') \ $(find %buildroot%ldir/AFEPack -name '*.o') # avoid mans' conflicts pushd %buildroot%_man3dir for i in details Functional std_map boost Geometry; do mv $i.3 %oname-$i.3 done popd for i in %buildroot%ldir/lib/*.so %buildroot%ldir/examples/AFEPack/*/* do chrpath -r %mpidir/lib:%ldir/lib $i ||: done %files -n lib%name %doc AUTHORS ChangeLog NEWS README TODO %ldir/lib/*.so %files templates %ldir/AFEPack %files devel %ldir/include/* %files examples %dir %ldir/examples %ldir/examples/* %if "%scalar_type" == "real" %files -n %oname-devel-doc %doc %_docdir/AFEPack* %doc %_man3dir/* %endif %changelog * Thu Oct 11 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt15 - New snapshot * Wed Sep 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt14 - Rebuilt with dealii 7.3-pre * Sun Jul 08 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt13 - Rebuilt with OpenMPI 1.6 * Fri Feb 24 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt12 - New snapshot * Wed Dec 14 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt11 - Fixed RPATH * Sun Dec 11 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt10 - New snapshot * Fri Dec 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt9 - Rebuilt with PETSc 3.2 * Tue Aug 30 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt8 - Rebuilt with new deal.II * Wed Aug 17 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt7 - New snapshot * Sun May 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt6 - New snapshot * Thu Apr 14 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt5 - Built with GotoBLAS2 instead of ATLAS * Thu Mar 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt4 - Restored optimization * Fri Mar 11 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt3 - Rebuilt for debuginfo * Mon Jan 31 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8-alt2 - Initial build for Sisyphus |