1 Summary: Portable MPI Model Implementation
2 Summary(pl.UTF-8): Przenośna implementacja standardu MPI
6 License: Open source (MPICH), BSD-like (MPI-2-C++)
7 Group: Development/Libraries
8 Source0: ftp://ftp.mcs.anl.gov/pub/mpi/%{name}-%{version}.tar.bz2
9 # Source0-md5: 4fc0f20bddfbd5061a11047cf2d17d31
10 Patch0: %{name}-fuckssh.patch
11 Patch1: %{name}-opt.patch
12 Patch2: http://squishy.monkeysoft.net/mpich/%{name}-1.2.5-oM.patch
13 URL: http://www-unix.mcs.anl.gov/mpi/
14 BuildRequires: gcc-g77
15 BuildRequires: libstdc++-devel
16 BuildRequires: sed >= 4.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 MPICH is an open-source, portable implementation of the
22 Message-Passing Interface Standard. It contains a complete
23 implementation of version 1.2 of the MPI Standard and also significant
24 parts of MPI-2, particularly in the area of parallel I/O.
26 %description -l pl.UTF-8
27 MPICH jest wolnodostępną implementacją standardu MPI (Message-Passing
28 Interface). Zawiera pełną implementację wersji MPI 1.2 oraz znaczne
29 części wersji MPI-2, szczególnie w zakresie równoległej komunikacji.
37 sed -i -e 's|RCPCOMMAND-rcp|RCPCOMMAND-scp|' mpid/ch_p4/mpirun.ch_p4.in
40 RSHCOMMAND=/usr/bin/ssh ; export RSHCOMMAND
41 RCPCOMMAND=/usr/bin/scp ; export RCPCOMMAND
42 # note: can't run autoconf - we must patch configure not only configure.in
43 # also, don't change it to %%configure - it won't work
44 # no configure options for sysconfdir and messagecat_dir :/
45 sysconfdir=%{_sysconfdir} \
46 messagecat_dir=%{_libdir} \
49 --exec_prefix=%{_prefix} \
50 --includedir=%{_includedir} \
51 --sharedlib=%{_libdir} \
53 --datadir=%{_datadir}/%{name} \
55 --sbindir=%{_sbindir} \
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT ; export DESTDIR
69 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 mv -f $RPM_BUILD_ROOT%{_prefix}/examples/* \
71 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
73 (cd $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
74 rm -f mpirun MPI-2-C++/mpirun
75 ln -sf %{_bindir}/mpirun mpirun
76 ln -sf %{_bindir}/mpirun MPI-2-C++/mpirun
79 # argh... where came that 4 from???
80 for f in $RPM_BUILD_ROOT%{_mandir}/man4/*.4 ; do
81 mv -f "$f" $RPM_BUILD_ROOT%{_mandir}/man3/`basename "$f" .4`.3
84 for f in HISTORY LICENSE README TODO ; do
85 mv -f MPI-2-C++/$f $f.MPI-2-C++
88 rm -rf $RPM_BUILD_ROOT%{_prefix}/{doc,logfiles,www}
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc doc/*.ps* COPYRIGHT README KnownBugs
99 %attr(755,root,root) %{_bindir}/*
100 %attr(755,root,root) %{_sbindir}/*
101 %attr(755,root,root) %{_libdir}/lib*.so*
103 %{_libdir}/mpe_prof.o
104 %{_sysconfdir}/mpichversion.c
105 %{_sysconfdir}/mpichconf.h.dat
106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpi*.conf
108 %{_includedir}/mpi2c++
112 %{_examplesdir}/%{name}-%{version}