Enable NanoVDB support as module for OpenVDB

This commit is contained in:
Luya Tshimbalanga 2021-11-24 21:17:34 -08:00
parent 1072aa48c9
commit 630aef305e
No known key found for this signature in database
GPG Key ID: 5E528174D8A2609A
1 changed files with 19 additions and 6 deletions

View File

@ -4,9 +4,12 @@
# Set to 1 to enable testsuite. Fails everywhere with GCC 8+.
%global with_tests 0
# Optional OpenEXR support
%global with_openexr 0
Name: openvdb
Version: 9.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: C++ library for sparse volumetric data discretized on three-dimensional grids
License: MPLv2.0
URL: http://www.openvdb.org/
@ -16,7 +19,7 @@ Source0: https://github.com/AcademySoftwareFoundation/%{name}/archive/v%{
BuildRequires: boost-devel >= 1.61
# boost-python3-devel merged in boost-devel for Fedora 33+
# https://src.fedoraproject.org/rpms/boost/c/1f2e448e099a867f9da62b9da009d3dec5e1ad64?branch=master
%if 0%{?fedora} < 33
%if 0%{?rhel}
BuildRequires: boost-python3-devel
%endif
BuildRequires: cmake >= 2.8
@ -27,7 +30,7 @@ BuildRequires: ghostscript >= 8.70
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig(blosc) >= 1.5.0
BuildRequires: pkgconfig(cppunit) >= 1.10
# RHEL and CentOS only has that build requirement for x86_64
# RHEL and CentOS only have that build requirement for x86_64
%if 0%{?rhel}
%ifarch x86_64
BuildRequires: glfw-devel >= 2.7
@ -37,11 +40,13 @@ BuildRequires: pkgconfig(glfw3) >= 2.7
%endif
BuildRequires: pkgconfig(jemalloc)
BuildRequires: pkgconfig(log4cplus) >= 1.0
%if 0%{?with_openexr}
BuildRequires: pkgconfig(OpenEXR) >= 3.0
%endif
BuildRequires: pkgconfig(tbb) >= 3.0
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(zlib) > 1.2.7
%description
OpenVDB is an Academy Award-winning open-source C++ library comprising a novel
hierarchical data structure and a suite of tools for the efficient storage and
@ -120,7 +125,11 @@ export CXXFLAGS="%{build_cxxflags} -Wl,--as-needed"
-DOPENVDB_BUILD_UNITTESTS=OFF \
-DOPENVDB_ENABLE_RPATH=OFF \
-DOPENVDB_INSTALL_CMAKE_MODULES=OFF \
-DPYOPENVDB_INSTALL_DIRECTORY=%{python3_sitearch}
-DPYOPENVDB_INSTALL_DIRECTORY=%{python3_sitearch} \
%if 0%{?with_openexr}
-DUSE_EXR=ON \
%endif
-DUSE_NANOVDB=ON
%cmake_build
%if 0%{?with_tests}
@ -139,6 +148,7 @@ find %{buildroot} -name '*.a' -delete
%files
%{_bindir}/vdb_print
%{_bindir}/nanovdb_{print,validate}
%files libs
%license LICENSE
@ -157,8 +167,11 @@ find %{buildroot} -name '*.a' -delete
%{_libdir}/lib%{name}.so
%changelog
* Sun Nov 21 2021 Luya Tshimbalanga <luya@fedoraproject.org> - 9.0.0-2
- Enable NanoVDB support as module for OpenVDB
* Sat Oct 30 2021 Luya Tshimbalanga <luya@fedoraproject.org> - 9.0.0-1
- Update to 9.0.0
- Update to 9.0.0 (#2018706)
- Exclude arm7 architecture due to exhausted virtual memory
* Fri Aug 20 2021 Richard Shaw <hobbes1069@gmail.com> - 8.1.0-6