Пакет libhdf5-6-mpi: 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 | #TODO: examples packing %define mpiimpl openmpi %define mpidir %_libexecdir/%mpiimpl %define oname hdf5 %define sover 6 %define priority 40 Name: lib%{oname}-%sover-mpi Version: 1.8.3 Release: alt7 Summary: Hierarchical Data Format 5 library, parallel version Group: System/Libraries License: Nearly BSD, but changed sources must be marked Url: http://hdf.ncsa.uiuc.edu/HDF5/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: ftp://ftp.hdfgroup.org/HDF5/current/src/%oname-%version.tar.bz2 Provides: lib%oname-mpi = %version-%release Conflicts: lib%oname < 1.8.3-alt3 Requires(post,preun): alternatives %ifarch x86_64 Provides: lib%oname.so.%sover()(64bit) Provides: lib%{oname}_hl.so.%sover()(64bit) %else Provides: lib%oname.so.%sover Provides: lib%{oname}_hl.so.%sover %endif # Automatically added by buildreq on Sat Sep 15 2007 BuildRequires: gcc-c++ libssl-devel zlib-devel %mpiimpl-devel BuildPreReq: libmpe2-devel libsz2-devel %description HDF5 is a completely new Hierarchical Data Format product consisting of a data format specification and a supporting library implementation. HDF5 is designed to address some of the limitations of the older HDF product and to address current and anticipated requirements of modern systems and applications. This version of library supports MPI. %package -n lib%oname-mpi-devel Summary: HDF5 library development package Group: Development/C Requires(post,preun): alternatives Requires: %name = %version-%release Conflicts: lib%oname-devel < 1.8.3-alt3 %description -n lib%oname-mpi-devel Header files for HDF5 library. %package -n lib%oname-mpi-devel-static Summary: HDF5 static library Group: Development/C Requires(post,preun): alternatives Requires: lib%oname-mpi-devel = %version-%release Conflicts: lib%oname-devel-static < 1.8.3-alt3 %description -n lib%oname-mpi-devel-static HDF5 static library. %package -n %oname-%sover-mpi-tools Summary: HDF5 tools Group: Development/Tools Requires(post,preun): alternatives Requires: %name = %version-%release Provides: %oname-mpi-tools = %version-%release Conflicts: lib%oname-tools < 1.8.3-alt3 Conflicts: lib%oname-mpi < %version-%release Obsoletes: lib%oname-mpi < %version-%release %description -n %oname-%sover-mpi-tools HDF5 static library. %prep %setup -q -n %oname-%version %build sed -i -e 's/(SOVER)/%sover/' src/H5detect.c mpi-selector --set %mpiimpl source %mpidir/bin/mpivars.sh %add_optflags -DH5_HAVE_MPE %autoreconf %configure \ --bindir=%mpidir/bin \ --libdir=%mpidir/lib \ --includedir=%mpidir/include \ --enable-linux-lfs \ --enable-shared \ --enable-production \ --with-pthread \ --with-ssl \ --with-zlib=%prefix \ --with-szlib=%prefix \ --enable-fortran \ --enable-parallel \ --with-mpe=%prefix \ MPIDIR=%mpidir %__subst "s|^LT=.*|LT=../libtool|g" c++/src/Makefile c++/test/Makefile cp src/lib%oname.settings src/lib%oname-%sover.settings %make_build MPIDIR=%mpidir %install source %mpidir/bin/mpivars.sh export LD_LIBRARY_PATH="../src/.libs" %make_install DESTDIR=%buildroot install mv %buildroot%mpidir/lib/lib%oname.settings \ %buildroot%mpidir/lib/lib%oname-%sover.settings # alternatives install -d %buildroot%_altdir pushd %buildroot%mpidir/lib for i in $(ls *.so.*) $(ls *.settings); do echo "%_libdir/$i %mpidir/lib/$i %priority" >> \ %buildroot%_altdir/%name.alternatives done for i in $(ls *.so); do echo "%_libdir/$i %mpidir/lib/$i %priority" >> \ %buildroot%_altdir/%name-devel.alternatives done for i in $(ls *.a); do echo "%_libdir/$i %mpidir/lib/$i %priority" >> \ %buildroot%_altdir/%name-devel-static.alternatives done popd pushd %buildroot%mpidir/bin for i in $(ls); do echo "%_bindir/$i %mpidir/bin/$i %priority" >> \ %buildroot%_altdir/%oname-mpi-tools.alternatives done popd install -d %buildroot%_pkgconfigdir cat <<EOF >%buildroot%_pkgconfigdir/%oname-mpi.pc prefix=%prefix exec_prefix=%prefix libdir=%mpidir/lib includedir=%mpidir/include Name: %oname Description: Hierarchical Data Format 5 library Version: %version Libs: -L%mpidir/lib -lhdf5hl_fortran -lhdf5_hl -lhdf_fortran -lhdf -lgfortran -lz Cflags: -I%mpidir/include EOF echo "%_pkgconfigdir/%oname.pc %_pkgconfigdir/%oname-mpi.pc %priority" >> \ %buildroot%_altdir/%name-devel.alternatives %files %doc COPYING README.txt release_docs/{HISTORY*,RELEASE.txt} %mpidir/lib/*.so.* # used to show configuration at runtime %mpidir/lib/lib%oname-%sover.settings %_altdir/%name.alternatives %files -n lib%oname-mpi-devel %mpidir/lib/lib*.so %mpidir/include/* %_pkgconfigdir/* %_altdir/%name-devel.alternatives %files -n lib%oname-mpi-devel-static %mpidir/lib/*.a %_altdir/%name-devel-static.alternatives %files -n %oname-%sover-mpi-tools %mpidir/bin/* %_altdir/%oname-mpi-tools.alternatives %changelog * Wed Jul 15 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt7 - Added pkgconfig file * Fri Jun 19 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt6 - Fixed wrong MPE check in configure script * Thu Jun 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt5 - Enabled szlib compression - Created alternatives * Thu Jun 04 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt4 - Rebuild with MPE instrumentation - Added explicit conflict with sequential version of HDF5 tools * Tue Jun 02 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt3 - Enable zlib compression * Sun May 31 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt2 - Add szlib support * Fri May 29 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.3-alt1 - Version 1.8.3 - Rename settings file: libhdf5.settings -> libhdf5-6.settings - Extract tools into separate package * Thu May 28 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.2-alt1 - MPI version: initial build for sisyphus * Sun Dec 14 2008 Sergey Bolshakov <sbolshakov@altlinux.ru> 1.6.6-alt2 - fixed build with gcc4.3 * Sat Sep 15 2007 Vitaly Lipatov <lav@altlinux.ru> 1.6.6-alt1 - initial build for ALT Linux Sisyphus |