2018-07-17 08:24:03 +00:00
|
|
|
# Set to 1 to enable testsuite. Fails everywhere with GCC 8+.
|
|
|
|
%global with_tests 0
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
Name: openvdb
|
2019-12-12 07:36:48 +00:00
|
|
|
Version: 7.0.0
|
2020-05-28 22:50:43 +00:00
|
|
|
Release: 6%{?dist}
|
2017-05-08 12:57:22 +00:00
|
|
|
Summary: C++ library for sparse volumetric data discretized on three-dimensional grids
|
|
|
|
License: MPLv2.0
|
|
|
|
URL: http://www.openvdb.org/
|
|
|
|
|
2019-02-17 00:13:30 +00:00
|
|
|
Source0: https://github.com/AcademySoftwareFoundation/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2017-05-08 12:57:22 +00:00
|
|
|
|
2019-08-02 05:49:29 +00:00
|
|
|
BuildRequires: boost-devel >= 1.61
|
2020-05-23 19:14:01 +00:00
|
|
|
# boost-python3-devel merged in boost-devel for Fedora 33+
|
|
|
|
# https://src.fedoraproject.org/rpms/boost/c/1f2e448e099a867f9da62b9da009d3dec5e1ad64?branch=master
|
2020-05-23 19:11:42 +00:00
|
|
|
%if 0%{?fedora} < 33
|
2018-07-17 08:24:03 +00:00
|
|
|
BuildRequires: boost-python3-devel
|
2020-05-23 19:11:42 +00:00
|
|
|
%endif
|
2017-05-08 12:57:22 +00:00
|
|
|
BuildRequires: cmake >= 2.8
|
|
|
|
BuildRequires: doxygen >= 1.8.11
|
2019-12-12 07:36:48 +00:00
|
|
|
#BuildRequires: epydoc
|
2019-08-18 20:02:18 +00:00
|
|
|
BuildRequires: gcc-c++
|
2017-05-08 12:57:22 +00:00
|
|
|
BuildRequires: ghostscript >= 8.70
|
2019-08-18 20:02:18 +00:00
|
|
|
BuildRequires: libstdc++-devel
|
2020-05-23 16:51:51 +00:00
|
|
|
BuildRequires: pkgconfig(blosc) >= 1.5.0
|
|
|
|
BuildRequires: pkgconfig(cppunit) >= 1.10
|
2020-05-23 17:30:59 +00:00
|
|
|
# RHEL and CentOS only has that build requirement for x86_64
|
|
|
|
%if 0%{?rhel}
|
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: glfw-devel >= 2.7
|
|
|
|
%endif
|
|
|
|
%else
|
2020-05-23 16:51:51 +00:00
|
|
|
BuildRequires: pkgconfig(glfw3) >= 2.7
|
2020-05-23 17:30:59 +00:00
|
|
|
%endif
|
2020-05-23 16:51:51 +00:00
|
|
|
BuildRequires: pkgconfig(IlmBase)
|
|
|
|
BuildRequires: pkgconfig(jemalloc)
|
|
|
|
BuildRequires: pkgconfig(log4cplus) >= 1.0
|
|
|
|
BuildRequires: pkgconfig(OpenEXR) >= 2.2
|
|
|
|
BuildRequires: pkgconfig(tbb) >= 3.0
|
|
|
|
BuildRequires: pkgconfig(xi)
|
|
|
|
BuildRequires: pkgconfig(zlib) > 1.2.7
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
manipulation of sparse volumetric data discretized on three-dimensional grids.
|
2019-08-18 20:02:18 +00:00
|
|
|
It is developed and maintained by Academy Software Foundation for use in
|
|
|
|
volumetric applications typically encountered in feature film production.
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
This package contains some graphical tools.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Core OpenVDB libraries
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
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
|
|
|
|
manipulation of sparse volumetric data discretized on three-dimensional grids.
|
2019-08-18 20:02:18 +00:00
|
|
|
It is developed and maintained by Academy Software Foundation for use in
|
|
|
|
volumetric applications typically encountered in feature film production.
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2018-07-17 11:28:58 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2019-08-18 20:02:18 +00:00
|
|
|
Obsoletes: %{name}-doc < 6.1.0-1
|
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for developing
|
|
|
|
applications that use %{name}.
|
|
|
|
|
2020-05-23 16:51:51 +00:00
|
|
|
%if 0%{?fedora}
|
2019-09-20 09:02:43 +00:00
|
|
|
%package -n python3-%{name}
|
2017-05-08 12:57:22 +00:00
|
|
|
Summary: OpenVDB Python module
|
2019-12-12 07:36:48 +00:00
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
BuildRequires: python3-numpy
|
2018-07-17 11:28:58 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2019-09-20 09:02:43 +00:00
|
|
|
Obsoletes: %{name}-python3 < 6.2.0
|
2018-07-17 08:24:03 +00:00
|
|
|
Obsoletes: %{name}-python2 < 5.1.0-1
|
|
|
|
Provides: %{name}-python2 = %{version}-%{release}
|
2019-12-12 07:36:48 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
2019-09-20 09:02:43 +00:00
|
|
|
|
|
|
|
%description -n python3-%{name}
|
2019-12-12 07:36:48 +00:00
|
|
|
%{description}
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
This package contains the Python module.
|
2020-05-23 16:51:51 +00:00
|
|
|
%endif
|
|
|
|
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
%prep
|
2019-09-20 09:02:43 +00:00
|
|
|
%autosetup
|
2017-05-08 12:57:22 +00:00
|
|
|
|
2019-08-18 20:02:18 +00:00
|
|
|
# Hardcoded values
|
2018-07-17 09:45:41 +00:00
|
|
|
sed -i \
|
2019-08-18 20:02:18 +00:00
|
|
|
-e 's|lib$|%{_lib}|g' \
|
2017-09-12 10:06:17 +00:00
|
|
|
%{name}/CMakeLists.txt %{name}/python/CMakeLists.txt
|
2017-05-08 12:57:22 +00:00
|
|
|
|
2019-08-02 05:49:29 +00:00
|
|
|
mkdir build
|
|
|
|
|
2017-05-08 12:57:22 +00:00
|
|
|
%build
|
2019-08-02 05:49:29 +00:00
|
|
|
pushd build
|
2017-05-08 13:02:54 +00:00
|
|
|
export CXXFLAGS="%{optflags} -Wl,--as-needed"
|
2019-08-18 20:02:18 +00:00
|
|
|
# Ignore versions (python 3, etc.)
|
2017-05-08 12:57:22 +00:00
|
|
|
%cmake \
|
2019-08-18 20:02:18 +00:00
|
|
|
-DCMAKE_NO_SYSTEM_FROM_IMPORTED=TRUE \
|
2019-08-04 06:43:28 +00:00
|
|
|
-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON \
|
2019-08-18 20:02:18 +00:00
|
|
|
-DOPENVDB_BUILD_DOCS=ON \
|
2020-05-23 16:51:51 +00:00
|
|
|
%if 0%{?fedora}
|
2019-12-12 07:36:48 +00:00
|
|
|
-DOPENVDB_BUILD_PYTHON_MODULE=ON \
|
2020-05-23 16:51:51 +00:00
|
|
|
%endif
|
2019-03-23 09:29:43 +00:00
|
|
|
-DOPENVDB_BUILD_UNITTESTS=OFF \
|
2019-08-18 20:02:18 +00:00
|
|
|
-DOPENVDB_ENABLE_RPATH=OFF \
|
|
|
|
-DOPENVDB_INSTALL_CMAKE_MODULES=OFF \
|
2019-12-12 07:36:48 +00:00
|
|
|
-DPYOPENVDB_INSTALL_DIRECTORY=%{python3_sitearch} \
|
2019-08-18 20:02:18 +00:00
|
|
|
..
|
2017-05-08 12:57:22 +00:00
|
|
|
%make_build
|
2019-08-04 06:43:28 +00:00
|
|
|
popd
|
2017-05-08 12:57:22 +00:00
|
|
|
|
2018-07-17 08:24:03 +00:00
|
|
|
%if 0%{?with_tests}
|
|
|
|
%check
|
|
|
|
%make test
|
|
|
|
%endif
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
%install
|
2019-08-02 05:49:29 +00:00
|
|
|
pushd build
|
2017-05-08 12:57:22 +00:00
|
|
|
%make_install
|
2019-08-02 05:49:29 +00:00
|
|
|
popd
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
# Let RPM pick up HTML documents in the files section
|
2019-09-20 09:02:43 +00:00
|
|
|
mv %{buildroot}%{_prefix}/doc/html .
|
|
|
|
rm -fr %{buildroot}%{_datadir}/doc
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
find %{buildroot} -name '*.a' -delete
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/vdb_print
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%license %{name}/LICENSE %{name}/COPYRIGHT
|
2019-09-20 09:02:43 +00:00
|
|
|
%doc README.md CHANGES
|
2017-05-08 12:57:22 +00:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
2020-05-23 16:51:51 +00:00
|
|
|
%if 0%{?fedora}
|
2019-09-20 09:02:43 +00:00
|
|
|
%files -n python3-%{name}
|
2019-09-17 11:12:07 +00:00
|
|
|
%{python3_sitearch}/py%{name}.so
|
2020-05-23 16:51:51 +00:00
|
|
|
%endif
|
2017-05-08 12:57:22 +00:00
|
|
|
|
|
|
|
%files devel
|
2019-08-18 20:02:18 +00:00
|
|
|
%doc html
|
2017-05-08 12:57:22 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%changelog
|
2020-05-28 22:50:43 +00:00
|
|
|
* Thu May 28 2020 Jonathan Wakely <jwakely@redhat.com> - 7.0.0-6
|
|
|
|
- Rebuilt for Boost 1.73
|
|
|
|
|
2020-05-26 00:55:06 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 7.0.0-5
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-05-23 19:11:42 +00:00
|
|
|
* Sat May 23 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 7.0.0-4
|
2020-05-23 19:14:01 +00:00
|
|
|
- Drop boost-python3-devel build requirement for Fedora 33+
|
2020-05-23 19:11:42 +00:00
|
|
|
|
2020-05-23 16:54:07 +00:00
|
|
|
* Sat May 23 2020 Luya Tshimbalanga <luya@fedoraproject.org> - 7.0.0-3
|
2020-05-23 16:51:51 +00:00
|
|
|
- Disable python3 binding for CentOS and Red Hat Enterprise
|
2020-05-23 17:33:15 +00:00
|
|
|
- On RHEL and CentOS, glfw is exclusive for x86_64
|
2020-05-23 17:30:59 +00:00
|
|
|
- Switch to pkgconfig build requirements as possible
|
2020-05-23 16:51:51 +00:00
|
|
|
|
2020-01-29 20:28:01 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-12 07:36:48 +00:00
|
|
|
* Wed Dec 11 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 7.0.0-1
|
|
|
|
- Update to 7.0.0
|
|
|
|
- Set python3 module installation path via cmake
|
|
|
|
- Drop epydoc dependency
|
|
|
|
|
2019-09-20 09:02:43 +00:00
|
|
|
* Thu Sep 19 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 6.2.0-1
|
|
|
|
- Update to 6.2.0
|
|
|
|
- Drop no longer needed upstream patch
|
|
|
|
- Rename subpackge module to python3-*
|
|
|
|
- Fix correct python module installation path
|
|
|
|
|
2019-08-19 08:21:26 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 6.1.0-3
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-08-18 20:02:18 +00:00
|
|
|
* Sun Aug 18 2019 Simone Caronni <negativo17@gmail.com> - 6.1.0-2
|
|
|
|
- Fix build with latest options.
|
|
|
|
- Update SPEC file.
|
|
|
|
- rpmlint fixes.
|
|
|
|
|
2019-08-02 05:49:29 +00:00
|
|
|
* Thu Aug 01 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 6.1.0-1
|
|
|
|
- Update to 6.1.0
|
|
|
|
- Fix cmake build
|
|
|
|
|
2019-07-25 23:38:48 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-04-12 13:54:44 +00:00
|
|
|
* Fri Apr 12 2019 Richard Shaw <hobbes1069@gmail.com> - 6.0.0-2
|
|
|
|
- Rebuild for Ilmbase 2.3.0.
|
|
|
|
|
2019-02-17 00:13:30 +00:00
|
|
|
* Sat Feb 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 6.0.0-1
|
|
|
|
- Update to 6.0.0
|
|
|
|
- Update source url and description
|
2019-03-23 09:29:43 +00:00
|
|
|
- Apply patch for boost 1.6.9 borrowed from Arch Linux
|
2019-02-17 00:13:30 +00:00
|
|
|
|
2019-02-01 17:35:03 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-10-13 19:13:45 +00:00
|
|
|
* Sat Oct 13 2018 Jerry James <loganjerry@gmail.com> - 5.1.0-4
|
|
|
|
- Rebuild for tbb 2019_U1
|
|
|
|
|
2018-07-17 11:28:58 +00:00
|
|
|
* Tue Jul 17 2018 Simone Caronni <negativo17@gmail.com> - 5.1.0-3
|
|
|
|
- Require libs subpackage for python3/devel.
|
|
|
|
|
2018-07-17 09:45:41 +00:00
|
|
|
* Tue Jul 17 2018 Simone Caronni <negativo17@gmail.com> - 5.1.0-2
|
|
|
|
- Fix Python 3 Boost link.
|
|
|
|
|
2018-07-17 08:24:03 +00:00
|
|
|
* Tue Jul 17 2018 Simone Caronni <negativo17@gmail.com> - 5.1.0-1
|
|
|
|
- Update to 5.1.0.
|
|
|
|
- Switch to Python 3.
|
|
|
|
|
2018-07-13 15:13:48 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-05-01 17:53:30 +00:00
|
|
|
* Tue May 01 2018 Jonathan Wakely <jwakely@redhat.com> - 5.0.0-3
|
|
|
|
- Add BuildRequires: boost-python2-devel to fix build with boost-1.66.0-7.fc29
|
|
|
|
|
2018-03-22 03:26:51 +00:00
|
|
|
* Sun Mar 04 2018 Luya Tshimbalanga <luya@fedoraproject.org> - 5.0.0-2
|
|
|
|
- Added gcc-c++ dependency
|
|
|
|
- Upstream patch for Boost compability
|
|
|
|
|
2018-03-02 03:43:17 +00:00
|
|
|
* Mon Feb 26 2018 Luya Tshimbalanga <luya@fedoraproject.org> - 5.0.0-1
|
|
|
|
- Update to 5.0.0
|
2018-03-22 03:26:51 +00:00
|
|
|
- Use new upstream macro for abi compatibility
|
|
|
|
- Rebuild for Boost 1.66
|
2018-02-26 00:49:13 +00:00
|
|
|
|
2018-02-08 17:52:17 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-09-12 10:06:17 +00:00
|
|
|
* Mon Sep 11 2017 Simone Caronni <negativo17@gmail.com> - 4.0.2-1
|
|
|
|
- Update to 4.0.2.
|
|
|
|
|
2017-08-03 04:38:03 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 01:55:03 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-07-23 20:17:25 +00:00
|
|
|
* Sun Jul 23 2017 Simone Caronni <negativo17@gmail.com> - 4.0.1-5
|
|
|
|
- Rename python subpackage (module) to python2.
|
|
|
|
|
2017-07-19 17:02:23 +00:00
|
|
|
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 4.0.1-4
|
|
|
|
- Rebuilt for s390x binutils bug
|
|
|
|
|
2017-07-18 15:43:28 +00:00
|
|
|
* Tue Jul 18 2017 Jonathan Wakely <jwakely@redhat.com> - 4.0.1-3
|
|
|
|
- Rebuilt for Boost 1.64
|
|
|
|
|
2017-05-08 13:02:54 +00:00
|
|
|
* Sat May 06 2017 Simone Caronni <negativo17@gmail.com> - 4.0.1-2
|
|
|
|
- Review fixes.
|
|
|
|
|
2017-05-08 12:57:22 +00:00
|
|
|
* Sat Apr 22 2017 Simone Caronni <negativo17@gmail.com> - 4.0.1-1
|
|
|
|
- Update to 4.0.1.
|
|
|
|
- Perform tests, build HTML documentation.
|
|
|
|
- Require main OpenVDB library for Python module.
|
|
|
|
|
|
|
|
* Wed Nov 23 2016 Simone Caronni <negativo17@gmail.com> - 4.0.0-2
|
|
|
|
- Update to 4.0.0.
|
|
|
|
|
|
|
|
* Sun Oct 16 2016 Simone Caronni <negativo17@gmail.com> - 4.0.0-1.20161015git40271e7
|
|
|
|
- First build.
|