From 1eae3e0e8e315758e7d521aad3dc695805e3cb8e Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 2 Nov 2016 11:32:19 -0600 Subject: [PATCH] Split python support into sub-packages --- mpich.spec | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/mpich.spec b/mpich.spec index 2b0fea2..044ea37 100644 --- a/mpich.spec +++ b/mpich.spec @@ -87,6 +87,20 @@ Obsoletes: mpich2-doc < 3.0 %description doc Contains documentations, examples and man-pages for mpich +%package -n python2-mpich +Summary: mpich support for Python 2 +Group: Development/Libraries + +%description -n python2-mpich +mpich support for Python 2. + +%package -n python3-mpich +Summary: mpich support for Python 3 +Group: Development/Libraries + +%description -n python3-mpich +mpich support for Python 3. + # We only compile with gcc, but other people may want other compilers. # Set the compiler here. %{!?opt_cc: %global opt_cc gcc} @@ -214,10 +228,6 @@ make check VERBOSE=1 %dir %{_libdir}/%{name}/bin %{_libdir}/%{name}/lib/*.so.* %{_libdir}/%{name}/bin/* -%dir %{python2_sitearch}/%{name} -%{python2_sitearch}/%{name}.pth -%dir %{python3_sitearch}/%{name} -%{python3_sitearch}/%{name}.pth %dir %{_mandir}/%{name}-%{_arch} %doc %{_mandir}/%{name}-%{_arch}/man1/ %{_sysconfdir}/modulefiles/mpi/ @@ -237,7 +247,18 @@ make check VERBOSE=1 %dir %{_datadir}/%{name} %{_datadir}/%{name}/doc/ +%files -n python2-mpich +%dir %{python2_sitearch}/%{name} +%{python2_sitearch}/%{name}.pth + +%files -n python3-mpich +%dir %{python3_sitearch}/%{name} +%{python3_sitearch}/%{name}.pth + %changelog +* Wed Nov 2 2016 Orion Poplawski - 3.2-7 +- Split python support into sub-packages + * Wed Mar 30 2016 Michal Toman - 3.2-6 - Fix build on MIPS