3 %bcond_with mpi # MPI support
4 %bcond_without openmp # OpenMP support
6 Summary: High performance preconditioners and solvers library
7 Summary(pl.UTF-8): Biblioteka preconditionerów i rozwiązywania układów równań o wysokiej wydajności
13 #Source0Download: https://github.com/hypre-space/hypre/releases
14 Source0: https://github.com/hypre-space/hypre/archive/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: 0fc4d98040c2232e753464ab3fed66aa
16 #Patch0: %{name}-what.patch
17 URL: https://computing.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods
18 BuildRequires: cmake >= 3.13
20 BuildRequires: mpich-devel
22 %{?with_openmp:BuildRequires: libgomp-devel}
23 BuildRequires: rpmbuild(macros) >= 1.605
24 #BuildRequires: autoconf
25 #BuildRequires: automake
26 #BuildRequires: intltool
27 #BuildRequires: libtool
28 # if using noarch subpackages:
29 #BuildRequires: rpm-build >= 4.6
31 #Requires(pre,post): -
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 HYPRE is a library of high performance preconditioners and solvers
41 featuring multigrid methods for the solution of large, sparse linear
42 systems of equations on massively parallel computers.
44 %description -l pl.UTF-8
45 HYPRE to biblioteka wysoko wydajnych preconditionerów oraz procesdur
46 rozwiązywania dużych, rzadkich układów równań liniowych z
47 zastosowaniem metod wielosiatkowych na bardzo zrównoleglonych
51 Summary: Header files for HYPRE library
52 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HYPRE
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
57 Header files for HYPRE library.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki HYPRE.
66 %cmake -B build -S src \
67 -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/HYPRE \
68 -DHYPRE_ENABLE_HYPRE_BLAS=OFF \
69 -DHYPRE_ENABLE_HYPRE_LAPACK=OFF \
70 -DHYPRE_ENABLE_SHARED=ON \
71 %{!?with_mpi:-DHYPRE_WITH_MPI=OFF} \
72 %{?with_openmp:-DHYPRE_WITH_OPENMP=ON} \
74 # HYPRE_ENABLE_HOPSCOTCH?
76 # HYPRE_WITH_DSUPERLU?
78 # HYPRE_WITH_CUDA on bcond + other CUDA options
85 rm -rf $RPM_BUILD_ROOT
87 %{__make} -C build install \
88 DESTDIR=$RPM_BUILD_ROOT
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc CHANGELOG COPYRIGHT LICENSE-MIT NOTICE README.md SUPPORT.md
99 %attr(755,root,root) %{_libdir}/libHYPRE.so
102 %defattr(644,root,root,755)
104 %{_libdir}/cmake/HYPRE