Package openmpi: 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 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 | #define udapl 1 #define static 1 %define thread 1 # Build examples package only once %ifndef udapl %ifndef thread %define examples 1 %endif %endif %ifdef udapl %define udaplpkg openmpi-udapl %define udaplarg --with-udapl %else %define udaplpkg openmpi %define udaplarg --without-udapl %endif %ifdef thread %define threadpkg %udaplpkg-threads %define threadarg --with-threads=posix --enable-mpi-threads --enable-progress-threads --enable-ft-thread %else %define threadpkg %udaplpkg %define threadarg --without-threads --disable-ft-thread --disable-mpi-threads %endif %ifdef static %define pkgname %threadpkg-static %define staticarg --enable-static --disable-shared %else %define pkgname %threadpkg %define staticarg --disable-static %endif %define arguments %udaplarg %threadarg %staticarg Name: openmpi #pkgname Version: 2.0.1 Release: alt9 %define mpi_prefix %_libdir/%name %define mpi_sysconfdir %_sysconfdir/%name Summary: A powerful implementation of MPI/SHMEM License: BSD Group: Development/Other Url: http://www.open-mpi.org/ Packager: Denis Pynkin <dans@altlinux.ru> Source: openmpi-%version.tar #Source1: MPI_Status_c2f.3 #Patch0: openmpi-%version-%release.patch #Patch1: openmpi-arm-%version.patch BuildPreReq: rpm-macros-mpi-selector rpm-macros-valgrind Requires(post,preun): mpi-selector %ifdef static BuildPreReq: libibverbs-devel-static >= 1.1.2 %endif %ifdef udapl %ifdef static BuildPreReq: libdapl-devel-static libstdc++-devel-static %endif Requires: libdapl >= 1.2.12 BuildPreReq: libdapl-devel %endif %ifdef thread BuildPreReq: glibc-pthread %endif Requires: libibverbs >= 1.1.2 BuildPreReq: /proc flex gcc-c++ gcc-fortran BuildPreReq: rdma-core-devel %ifarch %valgrind_arches BuildPreReq: valgrind-devel %endif BuildPreReq: libiberty-devel %ifnarch %arm BuildRequires: libnuma-devel %endif %package devel Summary: Development part of %name Group: Development/Other Requires: %name = %version-%release Requires: gcc-c++ gcc-fortran Requires: rdma-core-devel %ifnarch %arm Requires: libnuma-devel %endif %ifdef udapl Requires: libdapl-devel %endif %ifdef examples %package %name-examples Summary: Generic examples for %name. Group: Development/Other BuildArch: noarch %description %name-examples Examples comming with upstream sources tarball. %endif %description Open MPI is an open source implementation of the Message Passing Interface specification (http://www.mpi-forum.org/) developed and maintained by a consortium of research, academic, and industry partners. Open MPI also includes an implementation of the OpenSHMEM parallel programming API (http://www.openshmem.org/). OpenSHMEM is a Partitioned Global Address Space (PGAS) abstraction layer, which provides fast inter-process communication using one-sided communication techniques. %description devel Package for development with Open MPI/SHMEM %prep %setup -q -n openmpi-%version #__cp -f SOURCE1 ompi/mpi/man/man3/ #patch0 -p1 #patch1 -p1 %build CFLAGS+=" %optflags -D_FORTIFY_SOURCE=2" CXXFLAGS+=" %optflags" LDFLAGS+="-Wl,-R%mpi_prefix/lib/openmpi:%mpi_prefix/lib" echo="/bin/echo" export CFLAGS CXXFLAGS LDFLAGS echo #autoreconf ./autogen.pl function buildIt() { ./configure $* \ --enable-mpi-f77 \ --enable-mpi-f90 \ --prefix=%mpi_prefix \ --with-ft=cr \ --with-verbs \ --without-tm \ --sysconfdir=%mpi_sysconfdir \ --bindir=%mpi_prefix/bin \ --libdir=%mpi_prefix/lib \ --datadir=%mpi_prefix/data \ --includedir=%mpi_prefix/include \ --mandir=%mpi_prefix/man \ --docdir=%_docdir/%name-%version \ --with-gnu-ld \ --with-wrapper-ldflags="-Wl,-rpath=%mpi_prefix/lib" # --with-wrapper-ldflags="-Wl,--no-as-needed,-rpath=%mpi_prefix/lib" #TODO: --with-cuda %make_build } buildIt %arguments %install echo="/bin/echo" export echo %make_install DESTDIR=%buildroot install #ln -s ompi-restart %buildroot%_libdir/%name/bin/orte-restart #ln -s ompi-checkpoint %buildroot%_libdir/%name/bin/orte-checkpoint # Avoid fail during man pages compression #rm -f %buildroot%_libdir/%name/man/man1/mpiCC.1 #rm -f %buildroot%_libdir/%name/man/man1/orteCC.1 #ln -s mpic++.1.gz %buildroot%_libdir/%name/man/man1/mpiCC.1.gz #ln -s mpic++.1.gz %buildroot%_libdir/%name/man/man1/orteCC.1.gz %find_lang %name echo -e "btl = tcp,self\n" >> %buildroot%mpi_sysconfdir/openmpi-mca-params.conf cat>%buildroot/%mpi_prefix/bin/mpivars.sh<<EOF if ! echo \$PATH | grep -q %mpi_prefix/bin ; then PATH=%mpi_prefix/bin:\$PATH export PATH fi if ! echo \$LD_LIBRARY_PATH | grep -q %mpi_prefix/lib ; then LD_LIBRARY_PATH=%mpi_prefix/lib\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} export LD_LIBRARY_PATH fi if ! echo \$MANPATH | grep -q %mpi_prefix/man ; then MANPATH=%mpi_prefix/man:\$MANPATH export MANPATH fi EOF cat >%buildroot%mpi_prefix/bin/mpivars.csh <<EOF if (\$?path) then if ( "\${path}" !~ *%mpi_prefix/bin* ) then set path = ( %mpi_prefix/bin \$path ) endif else set path = ( %mpi_prefix/bin ) endif if (\$?LD_LIBRARY_PATH) then if ( "\$LD_LIBRARY_PATH" !~ *%mpi_prefix/lib* ) then setenv LD_LIBRARY_PATH %mpi_prefix/lib:\$LD_LIBRARY_PATH endif else setenv LD_LIBRARY_PATH %mpi_prefix/lib endif if (\$?MANPATH) then if ( "\$MANPATH" !~ *%mpi_prefix/man* ) then setenv MANPATH %mpi_prefix/man:\$MANPATH endif else setenv MANPATH %mpi_prefix/man endif EOF %post %post_mpi_selector %name %mpi_prefix/bin %preun %preun_mpi_selector %name %files -f %name.lang %doc AUTHORS LICENSE NEWS README VERSION %dir %mpi_prefix %dir %mpi_prefix/bin %mpi_prefix/bin/mpivars.* %mpi_prefix/bin/mpirun %mpi_prefix/bin/ompi_info %mpi_prefix/bin/orted %mpi_prefix/bin/orterun %mpi_prefix/bin/mpiexec %mpi_prefix/bin/ompi-* %mpi_prefix/bin/orte-* #mpi_prefix/bin/opal-* %mpi_prefix/bin/oshmem_info %mpi_prefix/bin/oshrun %mpi_prefix/bin/shmemrun %dir %mpi_prefix/lib %dir %mpi_prefix/lib/openmpi %mpi_prefix/lib/openmpi/*.so %ifdef static %mpi_prefix/lib/lib* %exclude %mpi_prefix/lib/libvt* %else %mpi_prefix/lib/lib*.so.* %endif %dir %mpi_sysconfdir %config(noreplace) %mpi_sysconfdir/* %dir %mpi_prefix/man %mpi_prefix/man/man1 %mpi_prefix/man/man7 %mpi_prefix/data %files devel %mpi_prefix/bin/opal_wrapper %mpi_prefix/bin/mpic++ %mpi_prefix/bin/mpicc %mpi_prefix/bin/mpiCC %mpi_prefix/bin/mpicxx %mpi_prefix/bin/mpif77 %mpi_prefix/bin/mpif90 %mpi_prefix/bin/mpifort %mpi_prefix/bin/oshcc %mpi_prefix/bin/oshfort %mpi_prefix/bin/shmemcc %mpi_prefix/bin/shmemfort #mpi_prefix/bin/orte_wrapper_script #mpi_prefix/bin/orteCC #mpi_prefix/bin/ortec++ %mpi_prefix/bin/ortecc %dir %mpi_prefix/include %mpi_prefix/include/*.h %dir %mpi_prefix/include/openmpi %mpi_prefix/include/openmpi/* %dir %mpi_prefix/include/openshmem %mpi_prefix/include/openshmem/* %dir %mpi_prefix/include/mpp %mpi_prefix/include/mpp/* %mpi_prefix/include/shmem.fh %mpi_prefix/man/man3 %mpi_prefix/lib/*.mod %mpi_prefix/lib/pkgconfig/* %ifdef static %mpi_prefix/lib/openmpi/*.a %mpi_prefix/lib/libotf.a %else %mpi_prefix/lib/lib*.so %mpi_prefix/lib/*.la %mpi_prefix/lib/openmpi/*.la %endif %ifdef examples %files %name-examples %doc examples %endif %changelog * Sun Sep 03 2023 Alexey Sheplyakov <asheplyakov@altlinux.org> 2.0.1-alt9 - Fixed FTBFS (m4 quoting versus autoconf 2.71). * Wed May 22 2019 Nikita Ermakov <arei@altlinux.org> 2.0.1-alt8 - Build with valgrind only for supported arches. * Thu Nov 29 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 2.0.1-alt7 - Rebuilt without torque support. * Thu Jul 05 2018 Ivan A. Melnikov <iv@altlinux.org> 2.0.1-alt6 - (NMU) avoid requirement from openmpi to openmpi-devel (closes: #33185) * Tue Apr 17 2018 Sergey Bolshakov <sbolshakov@altlinux.ru> 2.0.1-alt5 - fixed build on arm * Sat Apr 14 2018 Alexey Shabalin <shaba@altlinux.ru> 2.0.1-alt4 - rebuild with rdma-core-devel - build without udapl support * Thu Sep 21 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.1-alt3 - Updated pkg-config files. * Mon Aug 28 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.1-alt2 - Updated 'requires' for openmpi-devel. * Sat Dec 17 2016 Denis Pynkin <dans@altlinux.org> 2.0.1-alt1 - New version - VampirTrace removed. * Sat Aug 29 2015 Denis Pynkin <dans@altlinux.org> 1.10.0-alt1 - New version - OpenSHMEM enabled * Wed Feb 04 2015 Anton Farygin <rider@altlinux.ru> 1.6.4-alt2 - rebuild witch new libibverbs * Sun Mar 10 2013 Denis Pynkin <dans@altlinux.ru> 1.6.4-alt1 - Version updated * Mon Oct 01 2012 Denis Pynkin <dans@altlinux.org> 1.6.2-alt2 - Rebuild with gcc 4.7 * Thu Sep 27 2012 Denis Pynkin <dans@altlinux.org> 1.6.2-alt1 - New version * Mon Jun 25 2012 Denis Pynkin <dans@altlinux.org> 1.6-alt2 - Fixed overlapping with vt libraries * Thu May 31 2012 Denis Pynkin <dans@altlinux.org> 1.6-alt1 - Version updated - removed arm support added by sbolshakov due upstream support - fixed default hostfile path - enabled udapl and threads - moved from %_libexecdir to %_libdir * Wed Mar 21 2012 Sergey Bolshakov <sbolshakov@altlinux.ru> 1.4.5-alt2 - arm support addded * Wed Feb 15 2012 Denis Pynkin <dans@altlinux.org> 1.4.5-alt1 - New version * Wed Feb 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.3-alt4.1 - Rebuilt for debuginfo * Tue Jan 11 2011 Denis Pynkin <dans@altlinux.ru> 1.4.3-alt4 - fixed #24839 * Sat Nov 27 2010 Denis Pynkin <dans@altlinux.ru> 1.4.3-alt3 - Rebuild with gcc 4.5 - #24645 * Sun Oct 31 2010 Denis Pynkin <dans@altlinux.ru> 1.4.3-alt2 - All components moved to main package (thanks stanv@ for report) - Include files for vampirtrace moved to corresponding package * Sun Oct 10 2010 Denis Pynkin <dans@altlinux.ru> 1.4.3-alt1 - New version * Thu Aug 26 2010 Denis Pynkin <dans@altlinux.ru> 1.4.2-alt2 - added examples package by Andriy Stepanov * Tue May 11 2010 Denis Pynkin <dans@altlinux.ru> 1.4.2-alt1 - This release is mainly a bug fix release over the v1.4.1 * Fri Feb 19 2010 Denis Pynkin <dans@altlinux.ru> 1.4.1-alt1 - Security / bug fix release * Wed Dec 09 2009 Denis Pynkin <dans@altlinux.ru> 1.4-alt1 - Stable version 1.4 * Mon Oct 26 2009 Denis Pynkin <dans@altlinux.ru> 1.3.3-alt3 - Fixed name for openmpi-threads * Sun Oct 25 2009 Denis Pynkin <dans@altlinux.ru> 1.3.3-alt2 - changed build scheme - now we have different openmpi packages selected by variables 'udapl', 'thread' and 'static' * Fri Jul 17 2009 Denis Pynkin <dans@altlinux.ru> 1.3.3-alt1 - new version from upstream - bug fix release * Wed Apr 29 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.2-alt1.1 - Add static libraries (NMU) * Fri Apr 24 2009 Denis Pynkin <dans@altlinux.ru> 1.3.2-alt1 - new version from upstream * Mon Apr 13 2009 Denis Pynkin <dans@altlinux.ru> 1.3.1-alt2 - fix for #19595 - realtime libraries moved into main package * Fri Mar 27 2009 Denis Pynkin <dans@altlinux.ru> 1.3.1-alt1 - new version from upstream - bad elf symbol resolved * Sun Feb 01 2009 Denis Pynkin <dans@altlinux.ru> 1.3.0-alt2 - added libdapl-devel as requirement for devel package - added -Rpath option by default for user-space programms * Tue Jan 20 2009 Denis Pynkin <dans@altlinux.ru> 1.3.0-alt1 - This release contains many bug fixes, feature enhancements, and performance improvements over the v1.2 series, including (but not limited to): * MPI2.1 compliant * Valgrind support * Updated ROMIO to the version from MPICH2-1.0.7 * Many other new runtime features * Numerous bug fixes - enbled valgrind support - enabled dynamic dlopen - package devel-vt for VampirTrace features * Wed Dec 17 2008 Denis Pynkin <dans@altlinux.ru> 1.2.8-alt2 - Disable "--as-needed" by default for user's programms - Enable fortran-90 bindings * Thu Oct 16 2008 Denis Pynkin <dans@altlinux.ru> 1.2.8-alt1 - New version. * Mon Oct 13 2008 Stanislav Ievlev <inger@altlinux.org> 1.2.6-alt1.M41.1 - fix udapl btl build - rebuild with OFED-1.3.1 - build for 4.1 * Thu Aug 28 2008 Denis Pynkin <dans@altlinux.ru> 1.2.7-alt1 - New version. * Tue May 27 2008 Denis Pynkin <dans@altlinux.ru> 1.2.6-alt2 - Fixed subdirectories packaging violation * Wed Apr 09 2008 Denis Pynkin <dans@altlinux.ru> 1.2.6-alt1 - New mainly bugfix version * Wed Feb 06 2008 Denis Pynkin <dans@altlinux.ru> 1.2.5-alt3 - changed mpi_prefix to %_libexecdir * Fri Feb 01 2008 Denis Pynkin <dans@altlinux.ru> 1.2.5-alt2 - added mpi-selector support by Stanislav Ievlev <inger@altlinux.org> * Wed Jan 16 2008 Denis Pynkin <dans@altlinux.ru> 1.2.5-alt1 - New version. - Many bug fixes. * Mon Oct 01 2007 Denis Pynkin <dans@altlinux.ru> 1.2.4-alt2 - added autoreconf (tnx to Lost for advice) * Wed Sep 26 2007 Denis Pynkin <dans@altlinux.ru> 1.2.4-alt1 - new version * Fri Aug 24 2007 Denis Pynkin <dans@altlinux.ru> 1.2.3-alt4 - libdapl-devel to buildrequires by S.Ievlev's request - auto test of infiniband card * Thu Aug 23 2007 Denis Pynkin <dans@altlinux.ru> 1.2.3-alt3 - added libibverbs to buildrequires by S.Ievlev's request - added /proc to buildrequires to build component linux:timer * Tue Jun 26 2007 Denis Pynkin <dans@altlinux.ru> 1.2.3-alt2 - Added devel package - Added openmpi-alt-as-needed.patch - Fix of unresolved symbols * Tue Jun 26 2007 Denis Pynkin <dans@altlinux.ru> 1.2.3-alt1 - This release is mainly a bug fix release over the v1.2.2 release, but there are few minor new features. * Thu May 17 2007 Denis Pynkin <dans@altlinux.ru> 1.2.2-alt1 - This release is mainly a bug fix release over the v1.2.1 release, but there are few minor new features. * Thu Apr 26 2007 Denis Pynkin <dans@altlinux.ru> 1.2.1-alt1 - This release is mainly a bug fix release over the v1.2 release, but there are few minor new features. * Thu Mar 22 2007 Denis Pynkin <dans@altlinux.ru> 1.2.0-alt1 - This release contains many bug fixes, feature enhancements, and performance improvements over the v1.1 series - added echo variable for properly working libtool - added --disable-dlopen in configuration - taken ompi/mpi/man/man3/MPI_Status_c2f.3 from package 'lam' because of broken version in release * Wed Mar 21 2007 Denis Pynkin <dans@altlinux.ru> 1.1.5-alt1 - Version 1.1.5 is expected (hoped) to be the last release in the v1.1 series * Wed Jan 31 2007 Denis Pynkin <dans@altlinux.ru> 1.1.4-alt1 - The 1.1.4 release is what the 1.1.3 release should have been. * Tue Jan 30 2007 Denis Pynkin <dans@altlinux.ru> 1.1.3-alt1 - This release is mainly a bug fix release over the 1.1.2 release. * Tue Jan 02 2007 Denis Pynkin <dans@altlinux.ru> 1.1.2-alt2 - added /usr/share/openmpi/* to package * Tue Dec 26 2006 Denis Pynkin <dans@altlinux.ru> 1.1.2-alt1 - Initial build for ALTLinux. |