Install parmetis.h, with changes to build on el6
This commit is contained in:
parent
2105729619
commit
d746fb40f8
17
scotch.spec
17
scotch.spec
@ -10,7 +10,7 @@
|
|||||||
Name: scotch
|
Name: scotch
|
||||||
Summary: Graph, mesh and hypergraph partitioning library
|
Summary: Graph, mesh and hypergraph partitioning library
|
||||||
Version: 6.0.4
|
Version: 6.0.4
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
|
|
||||||
License: CeCILL-C
|
License: CeCILL-C
|
||||||
URL: https://gforge.inria.fr/projects/scotch/
|
URL: https://gforge.inria.fr/projects/scotch/
|
||||||
@ -116,18 +116,18 @@ cp -a . %{mpichdir}
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
pushd src/
|
pushd src/
|
||||||
make %{?_smp_mflags} scotch esmumps CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" SOMAJ="%{so_maj}"
|
make %{?_smp_mflags} scotch esmumps CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" SOMAJ="%{so_maj}"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%{_mpich_load}
|
%{_mpich_load}
|
||||||
pushd %{mpichdir}/src/
|
pushd %{mpichdir}/src/
|
||||||
make %{?_smp_mflags} ptscotch ptesmumps CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" SOMAJ="%{so_maj}"
|
make %{?_smp_mflags} ptscotch ptesmumps CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" SOMAJ="%{so_maj}"
|
||||||
popd
|
popd
|
||||||
%{_mpich_unload}
|
%{_mpich_unload}
|
||||||
|
|
||||||
%{_openmpi_load}
|
%{_openmpi_load}
|
||||||
pushd %{openmpidir}/src/
|
pushd %{openmpidir}/src/
|
||||||
make %{?_smp_mflags} ptscotch ptesmumps CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" SOMAJ="%{so_maj}"
|
make %{?_smp_mflags} ptscotch ptesmumps CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" SOMAJ="%{so_maj}"
|
||||||
popd
|
popd
|
||||||
%{_openmpi_unload}
|
%{_openmpi_unload}
|
||||||
|
|
||||||
@ -182,6 +182,7 @@ popd
|
|||||||
%{_mpich_load}
|
%{_mpich_load}
|
||||||
pushd %{mpichdir}/src
|
pushd %{mpichdir}/src
|
||||||
%doinstall
|
%doinstall
|
||||||
|
install -m644 libscotchmetis/parmetis.h %{buildroot}${MPI_INCLUDE}
|
||||||
popd
|
popd
|
||||||
%{_mpich_unload}
|
%{_mpich_unload}
|
||||||
|
|
||||||
@ -190,6 +191,7 @@ popd
|
|||||||
%{_openmpi_load}
|
%{_openmpi_load}
|
||||||
pushd %{openmpidir}/src
|
pushd %{openmpidir}/src
|
||||||
%doinstall
|
%doinstall
|
||||||
|
install -m644 libscotchmetis/parmetis.h %{buildroot}${MPI_INCLUDE}
|
||||||
popd
|
popd
|
||||||
%{_openmpi_unload}
|
%{_openmpi_unload}
|
||||||
|
|
||||||
@ -209,6 +211,7 @@ popd
|
|||||||
%postun -n ptscotch-openmpi -p /sbin/ldconfig
|
%postun -n ptscotch-openmpi -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%{!?_licensedir:%global license %%doc}
|
||||||
%files
|
%files
|
||||||
%license doc/CeCILL-C_V1-en.txt
|
%license doc/CeCILL-C_V1-en.txt
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
@ -232,6 +235,7 @@ popd
|
|||||||
%files -n ptscotch-mpich-devel
|
%files -n ptscotch-mpich-devel
|
||||||
%{_includedir}/mpich*/*scotch*.h
|
%{_includedir}/mpich*/*scotch*.h
|
||||||
%{_includedir}/mpich*/*esmumps*.h
|
%{_includedir}/mpich*/*esmumps*.h
|
||||||
|
%{_includedir}/mpich*/parmetis.h
|
||||||
%{_libdir}/mpich/lib/lib*scotch*.so
|
%{_libdir}/mpich/lib/lib*scotch*.so
|
||||||
%{_libdir}/mpich/lib/lib*esmumps*.so
|
%{_libdir}/mpich/lib/lib*esmumps*.so
|
||||||
|
|
||||||
@ -245,6 +249,7 @@ popd
|
|||||||
%files -n ptscotch-openmpi-devel
|
%files -n ptscotch-openmpi-devel
|
||||||
%{_includedir}/openmpi*/*scotch*.h
|
%{_includedir}/openmpi*/*scotch*.h
|
||||||
%{_includedir}/openmpi*/*esmumps*.h
|
%{_includedir}/openmpi*/*esmumps*.h
|
||||||
|
%{_includedir}/openmpi*/parmetis.h
|
||||||
%{_libdir}/openmpi/lib/lib*scotch*.so
|
%{_libdir}/openmpi/lib/lib*scotch*.so
|
||||||
%{_libdir}/openmpi/lib/lib*esmumps*.so
|
%{_libdir}/openmpi/lib/lib*esmumps*.so
|
||||||
|
|
||||||
@ -254,6 +259,10 @@ popd
|
|||||||
%doc doc/scotch_example.f
|
%doc doc/scotch_example.f
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 26 2015 Dave Love <loveshack@fedoraproject.org> - 6.0.4-7
|
||||||
|
- Install parmetis.h
|
||||||
|
- Conditionalize %%license and %%__global_ldflags
|
||||||
|
|
||||||
* Tue Sep 15 2015 Orion Poplawski <orion@cora.nwra.com> - 6.0.4-6
|
* Tue Sep 15 2015 Orion Poplawski <orion@cora.nwra.com> - 6.0.4-6
|
||||||
- Rebuild for openmpi 1.10.0
|
- Rebuild for openmpi 1.10.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user