diff --git a/mpich.spec b/mpich.spec index 753be2d..6fe696f 100644 --- a/mpich.spec +++ b/mpich.spec @@ -1,33 +1,33 @@ -Summary: A high-performance implementation of MPI -Name: mpich -Version: 3.2 -Release: 1%{?dist} -License: MIT -Group: Development/Libraries -URL: http://www.mpich.org/ +Summary: A high-performance implementation of MPI +Name: mpich +Version: 3.2 +Release: 1%{?dist} +License: MIT +Group: Development/Libraries +URL: http://www.mpich.org/ -Source0: http://www.mpich.org/static/downloads/%{version}/%{name}-%{version}.tar.gz -Source1: mpich.macros -Source2: mpich.pth.py2 -Source3: mpich.pth.py3 -Patch0: mpich-modules.patch +Source0: http://www.mpich.org/static/downloads/%{version}/%{name}-%{version}.tar.gz +Source1: mpich.macros +Source2: mpich.pth.py2 +Source3: mpich.pth.py3 +Patch0: mpich-modules.patch Patch1: https://trac.mpich.org/projects/mpich/raw-attachment/ticket/2299/0001-pm-remshell-include-MPL-when-linking.patch Patch2: 0002-pm-gforker-include-MPL-when-linking.patch -BuildRequires: gcc-gfortran +BuildRequires: gcc-gfortran BuildRequires: hwloc-devel >= 1.8 %ifnarch s390 -BuildRequires: valgrind-devel +BuildRequires: valgrind-devel %endif # For python[23]_sitearch BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: rpm-mpi-hooks BuildRequires: automake -Provides: mpi -Provides: mpich2 = 3.0.1 -Obsoletes: mpich2 < 3.0 -Requires: environment(modules) +Provides: mpi +Provides: mpich2 = %{version} +Obsoletes: mpich2 < 3.0 +Requires: environment(modules) %description MPICH is a high-performance and widely portable implementation of the Message @@ -51,36 +51,36 @@ If you want MPICH support to be automatically loaded, you need to install the mpich-autoload package. %package autoload -Summary: Load mpich automatically into profile -Group: System Environment/Base -Requires: mpich = %{version}-%{release} -Provides: mpich2-autoload = 3.0.1 -Obsoletes: mpich2-autoload < 3.0 +Summary: Load mpich automatically into profile +Group: System Environment/Base +Requires: mpich = %{version}-%{release} +Provides: mpich2-autoload = 3.0.1 +Obsoletes: mpich2-autoload < 3.0 %description autoload This package contains profile files that make mpich automatically loaded. %package devel -Summary: Development files for mpich -Group: Development/Libraries -Provides: %{name}-devel-static = %{version}-%{release} -Requires: %{name} = %{version}-%{release} -Requires: pkgconfig -Requires: gcc-gfortran -Requires: rpm-mpi-hooks -Provides: mpich2-devel = 3.0.1 -Obsoletes: mpich2-devel < 3.0 +Summary: Development files for mpich +Group: Development/Libraries +Provides: %{name}-devel-static = %{version}-%{release} +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +Requires: gcc-gfortran +Requires: rpm-mpi-hooks +Provides: mpich2-devel = 3.0.1 +Obsoletes: mpich2-devel < 3.0 %description devel Contains development headers and libraries for mpich %package doc -Summary: Documentations and examples for mpich -Group: Documentation -BuildArch: noarch -Requires: %{name}-devel = %{version}-%{release} -Provides: mpich2-doc = 3.0.1 -Obsoletes: mpich2-doc < 3.0 +Summary: Documentations and examples for mpich +Group: Documentation +BuildArch: noarch +Requires: %{name}-devel = %{version}-%{release} +Provides: mpich2-doc = 3.0.1 +Obsoletes: mpich2-doc < 3.0 %description doc Contains documentations, examples and man-pages for mpich @@ -121,43 +121,43 @@ Contains documentations, examples and man-pages for mpich %autosetup -p1 %build -%configure \ - --enable-sharedlibs=gcc \ - --enable-shared \ - --enable-static=no \ - --enable-lib-depend \ - --disable-rpath \ - --disable-silent-rules \ - --enable-fc \ - --with-device=%{selected_channels} \ - --with-pm=hydra:gforker \ - --includedir=%{_includedir}/%{name}-%{_arch} \ - --bindir=%{_libdir}/%{name}/bin \ - --libdir=%{_libdir}/%{name}/lib \ - --datadir=%{_datadir}/%{name} \ - --mandir=%{_mandir}/%{name}-%{_arch} \ - --docdir=%{_datadir}/%{name}/doc \ - --htmldir=%{_datadir}/%{name}/doc \ - --with-hwloc-prefix=system \ - FC=%{opt_fc} \ - F77=%{opt_f77} \ - CFLAGS="%{m_option} -O2 %{?XFLAGS}" \ - CXXFLAGS="%{m_option} -O2 %{?XFLAGS}" \ - FCFLAGS="%{m_option} -O2 %{?XFLAGS}" \ - FFLAGS="%{m_option} -O2 %{?XFLAGS}" \ - LDFLAGS='-Wl,-z,noexecstack' \ - MPICHLIB_CFLAGS="%{?opt_cc_cflags}" \ - MPICHLIB_CXXFLAGS="%{optflags}" \ - MPICHLIB_FCFLAGS="%{?opt_fc_fflags}" \ - MPICHLIB_FFLAGS="%{?opt_f77_fflags}" -# MPICHLIB_LDFLAGS='-Wl,-z,noexecstack' \ -# MPICH_MPICC_FLAGS="%{m_option} -O2 %{?XFLAGS}" \ -# MPICH_MPICXX_FLAGS="%{m_option} -O2 %{?XFLAGS}" \ -# MPICH_MPIFC_FLAGS="%{m_option} -O2 %{?XFLAGS}" \ -# MPICH_MPIF77_FLAGS="%{m_option} -O2 %{?XFLAGS}" -# --with-openpa-prefix=embedded \ +%configure \ + --enable-sharedlibs=gcc \ + --enable-shared \ + --enable-static=no \ + --enable-lib-depend \ + --disable-rpath \ + --disable-silent-rules \ + --enable-fc \ + --with-device=%{selected_channels} \ + --with-pm=hydra:gforker \ + --includedir=%{_includedir}/%{name}-%{_arch} \ + --bindir=%{_libdir}/%{name}/bin \ + --libdir=%{_libdir}/%{name}/lib \ + --datadir=%{_datadir}/%{name} \ + --mandir=%{_mandir}/%{name}-%{_arch} \ + --docdir=%{_datadir}/%{name}/doc \ + --htmldir=%{_datadir}/%{name}/doc \ + --with-hwloc-prefix=system \ + FC=%{opt_fc} \ + F77=%{opt_f77} \ + CFLAGS="%{m_option} -O2 %{?XFLAGS}" \ + CXXFLAGS="%{m_option} -O2 %{?XFLAGS}" \ + FCFLAGS="%{m_option} -O2 %{?XFLAGS}" \ + FFLAGS="%{m_option} -O2 %{?XFLAGS}" \ + LDFLAGS='-Wl,-z,noexecstack' \ + MPICHLIB_CFLAGS="%{?opt_cc_cflags}" \ + MPICHLIB_CXXFLAGS="%{optflags}" \ + MPICHLIB_FCFLAGS="%{?opt_fc_fflags}" \ + MPICHLIB_FFLAGS="%{?opt_f77_fflags}" +# MPICHLIB_LDFLAGS='-Wl,-z,noexecstack' \ +# MPICH_MPICC_FLAGS="%{m_option} -O2 %{?XFLAGS}" \ +# MPICH_MPICXX_FLAGS="%{m_option} -O2 %{?XFLAGS}" \ +# MPICH_MPIFC_FLAGS="%{m_option} -O2 %{?XFLAGS}" \ +# MPICH_MPIF77_FLAGS="%{m_option} -O2 %{?XFLAGS}" +# --with-openpa-prefix=embedded \ -# FCFLAGS="%{?opt_fc_fflags} -I%{_fmoddir}/%{name} %{?XFLAGS}" \ +# FCFLAGS="%{?opt_fc_fflags} -I%{_fmoddir}/%{name} %{?XFLAGS}" \ #Try and work around 'unused-direct-shlib-dependency' rpmlint warnning sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool @@ -189,7 +189,7 @@ cat >%{buildroot}%{_sysconfdir}/profile.d/mpich-%{_arch}.sh < - 3.0.4-3 -- Add proper Provides and Obsoletes for the sub-packages +- Add proper Provides and Obsoletes for the sub-packages * Thu Jul 18 2013 Deji Akingunola - 3.0.4-2 -- Fix some of the rpmlint warnings from package review (BZ #973493) +- Fix some of the rpmlint warnings from package review (BZ #973493) * Wed Jun 12 2013 Deji Akingunola - 3.0.4-1 - Update to 3.0.4