Accepting request 768862 from home:StefanBruens:branches:science
- Add openmpi3 flavor. - Disable openmpi1 for SLE/Leap 15.2, openmpi3 for SLE <= 15.1 - Adjust disk _constraints. - Drop vtk-fix-file-contains-date-time.patch, GCC honors SOURCE_DATE_EPOCH. - Drop unused netcdf-c++-devel BuildRequires. OBS-URL: https://build.opensuse.org/request/show/768862 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=146
This commit is contained in:
parent
7d1f680b6a
commit
30a5a24500
@ -1,7 +1,7 @@
|
|||||||
<constraints>
|
<constraints>
|
||||||
<hardware>
|
<hardware>
|
||||||
<disk>
|
<disk>
|
||||||
<size unit="G">8</size>
|
<size unit="G">12</size>
|
||||||
</disk>
|
</disk>
|
||||||
</hardware>
|
</hardware>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>openmpi</package>
|
<package>openmpi</package>
|
||||||
<package>openmpi2</package>
|
<package>openmpi2</package>
|
||||||
|
<package>openmpi3</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
10
vtk.changes
10
vtk.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 28 22:45:34 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Add openmpi3 flavor.
|
||||||
|
- Disable openmpi1 for SLE/Leap 15.2, openmpi3 for SLE <= 15.1
|
||||||
|
- Adjust disk _constraints.
|
||||||
|
- Drop vtk-fix-file-contains-date-time.patch, GCC honors
|
||||||
|
SOURCE_DATE_EPOCH.
|
||||||
|
- Drop unused netcdf-c++-devel BuildRequires.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 4 17:59:29 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Mon Nov 4 17:59:29 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
33
vtk.spec
33
vtk.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package vtk
|
# spec file for package vtk
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,6 +18,13 @@
|
|||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
|
||||||
|
%if 0%{?sle_version} >= 150200
|
||||||
|
%define DisOMPI1 ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
%if !0%{?is_opensuse} && 0%{?sle_version:1} && 0%{?sle_version} < 150200
|
||||||
|
%define DisOMPI3 ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%define pkgname vtk
|
%define pkgname vtk
|
||||||
|
|
||||||
%if 0%{?suse_version} <= 1500
|
%if 0%{?suse_version} <= 1500
|
||||||
@ -39,6 +46,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{flavor}" == "openmpi"
|
%if "%{flavor}" == "openmpi"
|
||||||
|
%{?DisOMPI1}
|
||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} >= 1550
|
||||||
%define my_suffix -openmpi1
|
%define my_suffix -openmpi1
|
||||||
%define mpi_flavor openmpi1
|
%define mpi_flavor openmpi1
|
||||||
@ -55,6 +63,13 @@
|
|||||||
%define mpiprefix %{_libdir}/mpi/gcc/%{mpi_flavor}
|
%define mpiprefix %{_libdir}/mpi/gcc/%{mpi_flavor}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if "%{flavor}" == "openmpi3"
|
||||||
|
%{?DisOMPI3}
|
||||||
|
%define my_suffix -openmpi3
|
||||||
|
%define mpi_flavor openmpi3
|
||||||
|
%define mpiprefix %{_libdir}/mpi/gcc/%{mpi_flavor}
|
||||||
|
%endif
|
||||||
|
|
||||||
%{?mpi_flavor:%{bcond_without mpi}}%{!?mpi_flavor:%{bcond_with mpi}}
|
%{?mpi_flavor:%{bcond_without mpi}}%{!?mpi_flavor:%{bcond_with mpi}}
|
||||||
|
|
||||||
%if %{with mpi}
|
%if %{with mpi}
|
||||||
@ -83,8 +98,6 @@ Source: https://www.vtk.org/files/release/%{series}/VTK-%{version}.tar.g
|
|||||||
# FIXME See if packaging can be tweaked to accommodate python-vtk's devel files in a devel package later
|
# FIXME See if packaging can be tweaked to accommodate python-vtk's devel files in a devel package later
|
||||||
# We need to use the compat conditionals here to avoid Factory's source validator from tripping up
|
# We need to use the compat conditionals here to avoid Factory's source validator from tripping up
|
||||||
Source99: vtk-rpmlintrc
|
Source99: vtk-rpmlintrc
|
||||||
# PATCH-FIX-UPSTREAM vtk-fix-file-contains-date-time.patch badshah400@gmail.com -- Fix file containing DATE and TIME
|
|
||||||
Patch1: vtk-fix-file-contains-date-time.patch
|
|
||||||
# PATCH-FIX-OPENSUSE 0001-Allow-compilation-on-GLES-platforms.patch VTK issue #17113 stefan.bruens@rwth-aachen.de -- Fix building with Qt GLES builds
|
# PATCH-FIX-OPENSUSE 0001-Allow-compilation-on-GLES-platforms.patch VTK issue #17113 stefan.bruens@rwth-aachen.de -- Fix building with Qt GLES builds
|
||||||
Patch2: 0001-Allow-compilation-on-GLES-platforms.patch
|
Patch2: 0001-Allow-compilation-on-GLES-platforms.patch
|
||||||
# PATCH-FIX-OPENSUSE bundled_libharu_add_missing_libm.patch stefan.bruens@rwth-aachen.de -- Add missing libm for linking
|
# PATCH-FIX-OPENSUSE bundled_libharu_add_missing_libm.patch stefan.bruens@rwth-aachen.de -- Add missing libm for linking
|
||||||
@ -112,12 +125,17 @@ BuildRequires: hdf5-%{mpi_flavor}-devel
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: hdf5-devel
|
BuildRequires: hdf5-devel
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
|
BuildRequires: libboost_graph-devel
|
||||||
|
BuildRequires: libboost_graph_parallel-devel
|
||||||
|
BuildRequires: libboost_serialization-devel
|
||||||
|
%if %{with mpi}
|
||||||
|
BuildRequires: libboost_mpi-devel
|
||||||
|
%endif
|
||||||
%if %{with haru}
|
%if %{with haru}
|
||||||
BuildRequires: libharu-devel > 2.3.0
|
BuildRequires: libharu-devel > 2.3.0
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libmysqlclient-devel
|
BuildRequires: libmysqlclient-devel
|
||||||
BuildRequires: libnetcdf_c++-devel
|
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
%if %{with mpi}
|
%if %{with mpi}
|
||||||
BuildRequires: %{mpi_flavor}-devel
|
BuildRequires: %{mpi_flavor}-devel
|
||||||
@ -164,12 +182,6 @@ BuildRequires: pkgconfig(theora)
|
|||||||
BuildRequires: pkgconfig(tk)
|
BuildRequires: pkgconfig(tk)
|
||||||
BuildRequires: pkgconfig(xt)
|
BuildRequires: pkgconfig(xt)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
BuildRequires: libboost_graph-devel
|
|
||||||
BuildRequires: libboost_graph_parallel-devel
|
|
||||||
%if %{with mpi}
|
|
||||||
BuildRequires: libboost_mpi-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: libboost_serialization-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
VTK is a software system for image processing, 3D graphics, volume
|
VTK is a software system for image processing, 3D graphics, volume
|
||||||
@ -332,7 +344,6 @@ languages.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n VTK-%{version}
|
%setup -q -n VTK-%{version}
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
Loading…
Reference in New Issue
Block a user