SHA256
1
0
forked from pool/vtk

Accepting request 798062 from home:bmwiedemann:reproducible:test

add reproducible.patch to override build date and to sort entries (boo#1047218, boo#1041090)

OBS-URL: https://build.opensuse.org/request/show/798062
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=153
This commit is contained in:
2020-04-27 11:46:27 +00:00
committed by Git OBS Bridge
parent 57c6e48771
commit 2ce443dd83
3 changed files with 177 additions and 0 deletions

View File

@@ -110,6 +110,8 @@ Patch5: 0001-Add-libogg-to-IOMovie-target-link-libraries.patch
Patch6: 0001-Make-code-calling-proj4-compatible-with-proj4-5.0-an.patch
# PATCH-FIX-UPSTREAM -- Support for python3.8
Patch7: python38.patch
# PATCH-FIX-UPSTREAM https://gitlab.kitware.com/vtk/vtk/merge_requests/5633 + 5634
Patch8: reproducible.patch
BuildRequires: R-base-devel
BuildRequires: chrpath
BuildRequires: cmake >= 3.4
@@ -352,6 +354,7 @@ languages.
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
# Replace relative path ../../../../VTKData with %%{_datadir}/vtkdata
# otherwise it will break on symlinks.
@@ -493,6 +496,7 @@ export PYTHONPATH=$_PYTHON_MPI_PREFIX:$PYTHONPATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{my_libdir}
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitearch}
python3 -c "import vtk"
find %{buildroot} . -name vtk.cpython-3*.pyc -delete # drop unreproducible time-based .pyc file
%post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig