Accepting request 798237 from home:badshah400:branches:science
- Fix serial builds broken due to disabling the building of examples; instead of commenting out sections of the specfile related to examples, use %bcond_with to disable building examples by default and the corresponding conditionals where appropriate. OBS-URL: https://build.opensuse.org/request/show/798237 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=154
This commit is contained in:
parent
2ce443dd83
commit
23082aca72
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 27 11:00:45 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Fix serial builds broken due to disabling the building of
|
||||||
|
examples; instead of commenting out sections of the specfile
|
||||||
|
related to examples, use %bcond_with to disable building
|
||||||
|
examples by default and the corresponding conditionals where
|
||||||
|
appropriate.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 26 04:21:40 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>
|
Sun Apr 26 04:21:40 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
20
vtk.spec
20
vtk.spec
@ -18,6 +18,10 @@
|
|||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
|
||||||
|
# FIXME: ENABLE EXAMPLES BY DEFAULT WHEN VERSION 9.0 IS PACKAGED
|
||||||
|
# [https://gitlab.kitware.com/vtk/vtk/issues/17619]
|
||||||
|
%bcond_with examples
|
||||||
|
|
||||||
%if 0%{?sle_version} >= 150200
|
%if 0%{?sle_version} >= 150200
|
||||||
%define DisOMPI1 ExclusiveArch: do_not_build
|
%define DisOMPI1 ExclusiveArch: do_not_build
|
||||||
%endif
|
%endif
|
||||||
@ -381,7 +385,7 @@ export CXXFLAGS="%{optflags}"
|
|||||||
# since JDK8.
|
# since JDK8.
|
||||||
%cmake \
|
%cmake \
|
||||||
-DBUILD_DOCUMENTATION:BOOL=ON \
|
-DBUILD_DOCUMENTATION:BOOL=ON \
|
||||||
-DBUILD_EXAMPLES:BOOL=OFF \
|
-DBUILD_EXAMPLES:BOOL=%{?with_examples:ON}%{!?with_examples:OFF} \
|
||||||
-DBUILD_TESTING:BOOL=OFF \
|
-DBUILD_TESTING:BOOL=OFF \
|
||||||
-DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON \
|
-DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON \
|
||||||
-DJava_JAVAH_EXECUTABLE:PATH=%{_bindir}/true \
|
-DJava_JAVAH_EXECUTABLE:PATH=%{_bindir}/true \
|
||||||
@ -433,6 +437,7 @@ find . -name \*.c -o -name \*.cxx -o -name \*.h -o -name \*.hxx -o -name \*.gif
|
|||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
|
%if %{with examples}
|
||||||
# List of executable examples
|
# List of executable examples
|
||||||
cat > examples.list << EOF
|
cat > examples.list << EOF
|
||||||
AmbientSpheres
|
AmbientSpheres
|
||||||
@ -484,6 +489,8 @@ done
|
|||||||
perl -pi -e's,^,%{my_bindir}/,' examples.list
|
perl -pi -e's,^,%{my_bindir}/,' examples.list
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -563,10 +570,11 @@ find %{buildroot} . -name vtk.cpython-3*.pyc -delete # drop unreproducible time-
|
|||||||
%dir %{my_libdir}/qt5/plugins/designer/
|
%dir %{my_libdir}/qt5/plugins/designer/
|
||||||
%{my_libdir}/qt5/plugins/designer/libQVTKWidgetPlugin.so
|
%{my_libdir}/qt5/plugins/designer/libQVTKWidgetPlugin.so
|
||||||
|
|
||||||
# FIXME: UNCOMMENT WHEN VERSION 9.0 IS PACKAGED [https://gitlab.kitware.com/vtk/vtk/issues/17619]
|
%if %{with examples}
|
||||||
#%%if "%%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
#%%files examples -f examples.list
|
%files examples -f examples.list
|
||||||
#%%license Copyright.txt
|
%license Copyright.txt
|
||||||
#%%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user