- Update to version 2.10.0 * Internal cleanups OBS-URL: https://build.opensuse.org/request/show/1221879 OBS-URL: https://build.opensuse.org/package/show/science/dune-uggrid?expand=0&rev=6
173 lines
5.2 KiB
RPMSpec
173 lines
5.2 KiB
RPMSpec
#
|
|
# spec file for package dune-uggrid
|
|
#
|
|
# Copyright (c) 2024 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: dune-uggrid
|
|
Version: 2.10.0
|
|
Release: 0
|
|
Summary: UG3 fork for DUNE
|
|
License: LGPL-2.1-only
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://www.dune-project.org/
|
|
Source0: https://www.dune-project.org/download/%{version}/%{name}-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: dune-common-devel = %{version}
|
|
BuildRequires: dune-common-openmpi-devel = %{version}
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gcc-fortran
|
|
BuildRequires: metis-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: tbb-devel
|
|
Requires: dune-common = %{version}
|
|
Requires: libduneuggrid = %{version}
|
|
|
|
%description
|
|
This is a fork of the old UG 3 finite element software, wrapped as a
|
|
Dune module, and stripped of everything but the grid data structure. You
|
|
need this module if you want to use the UGGrid grid implementation
|
|
from dune-grid.
|
|
|
|
%package -n libduneuggrid
|
|
Summary: Grid management module for DUNE
|
|
Group: System/Libraries
|
|
|
|
%description -n libduneuggrid
|
|
This is a fork of the old UG 3 finite element software, wrapped as a
|
|
Dune module, and stripped of everything but the grid data structure. You
|
|
need this module if you want to use the UGGrid grid implementation
|
|
from dune-grid.
|
|
|
|
%package devel
|
|
Summary: Development and header files for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Requires: dune-common-devel = %{version}
|
|
Requires: libduneuggrid = %{version}
|
|
|
|
%description devel
|
|
This package contains the development and header files for %{name}
|
|
|
|
%package openmpi
|
|
Summary: UG3 fork for DUNE
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description openmpi
|
|
This is a fork of the old UG 3 finite element software, wrapped as a
|
|
Dune module, and stripped of everything but the grid data structure. You
|
|
need this module if you want to use the UGGrid grid implementation
|
|
from dune-grid.
|
|
|
|
%package -n libduneuggrid-openmpi
|
|
Summary: Grid management module for DUNE
|
|
Group: System/Libraries
|
|
|
|
%description -n libduneuggrid-openmpi
|
|
This is a fork of the old UG 3 finite element software, wrapped as a
|
|
Dune module, and stripped of everything but the grid data structure. You
|
|
need this module if you want to use the UGGrid grid implementation
|
|
from dune-grid.
|
|
|
|
%package openmpi-devel
|
|
Summary: Development and header files for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Requires: %{name}-openmpi = %{version}
|
|
Requires: dune-common-openmpi-devel = %{version}
|
|
Requires: metis-devel
|
|
|
|
%description openmpi-devel
|
|
This package contains the development and header files for %{name}
|
|
|
|
%prep
|
|
%setup -q
|
|
mkdir serial openmpi
|
|
|
|
%build
|
|
cd serial
|
|
cmake \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_MPI=TRUE \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
..
|
|
%make_build
|
|
cd ..
|
|
|
|
cd openmpi
|
|
cmake \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DMPI_C_COMPILER=%{_libdir}/mpi/gcc/openmpi4/bin/mpicc \
|
|
-DCMAKE_INSTALL_PREFIX=%{_libdir}/mpi/gcc/openmpi4 \
|
|
..
|
|
%make_build
|
|
cd ..
|
|
|
|
%install
|
|
for build_dir in serial openmpi; do
|
|
cd $build_dir
|
|
%make_install
|
|
cd ..
|
|
done
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n libduneuggrid -p /sbin/ldconfig
|
|
%postun -n libduneuggrid -p /sbin/ldconfig
|
|
%post -n libduneuggrid-openmpi -p /sbin/ldconfig
|
|
%postun -n libduneuggrid-openmpi -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING COPYING.LGPL-2.1
|
|
%{_prefix}/lib/dunecontrol/%{name}
|
|
|
|
%files -n libduneuggrid
|
|
%{_libdir}/*.so
|
|
|
|
%files devel
|
|
%{_includedir}/dune-uggrid-config.hh
|
|
%{_includedir}/dune/*
|
|
%dir %{_datadir}/dune
|
|
%{_datadir}/dune/cmake/
|
|
%{_datadir}/%{name}/
|
|
%{_libdir}/cmake/
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_datadir}/RefRules.data
|
|
%{_datadir}/tetra.rls
|
|
%{_datadir}/triangle.rls
|
|
|
|
%files openmpi
|
|
%license COPYING COPYING.LGPL-2.1
|
|
%dir %{_libdir}/mpi/gcc/openmpi4/lib/dunecontrol/%{name}
|
|
%{_libdir}/mpi/gcc/openmpi4/lib/dunecontrol/%{name}/dune.module
|
|
|
|
%files -n libduneuggrid-openmpi
|
|
%{_libdir}/mpi/gcc/openmpi4/%{_lib}/*.so
|
|
|
|
%files openmpi-devel
|
|
%{_libdir}/mpi/gcc/openmpi4/include/*
|
|
%dir %{_libdir}/mpi/gcc/openmpi4/share/dune
|
|
%{_libdir}/mpi/gcc/openmpi4/share/dune/cmake/
|
|
%{_libdir}/mpi/gcc/openmpi4/share/%{name}/
|
|
%dir %{_libdir}/mpi/gcc/openmpi4/%{_lib}
|
|
%{_libdir}/mpi/gcc/openmpi4/%{_lib}/cmake/
|
|
%dir %{_libdir}/mpi/gcc/openmpi4/%{_lib}/pkgconfig
|
|
%{_libdir}/mpi/gcc/openmpi4/%{_lib}/pkgconfig/*.pc
|
|
%{_libdir}/mpi/gcc/openmpi4/share/RefRules.data
|
|
%{_libdir}/mpi/gcc/openmpi4/share/tetra.rls
|
|
%{_libdir}/mpi/gcc/openmpi4/share/triangle.rls
|
|
|
|
%changelog
|