Update to 5.1.0

This commit is contained in:
Simone Caronni 2018-07-17 10:24:03 +02:00
parent fbd2adcfd1
commit fde0919f6f
3 changed files with 30 additions and 23 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/openvdb-4.0.2.tar.gz
/openvdb-5.0.0.tar.gz
/fix-compatibility-boost.patch
/openvdb-5.1.0.tar.gz

View File

@ -1,18 +1,21 @@
%global python_version %(%{__python2} -c "import sys ; print(sys.version[:3])")
%{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%global python_version %(%{__python3} -c "import sys ; print(sys.version[:3])")
%{!?python3_sitearch: %global python3_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
# Set to 1 to enable testsuite. Fails everywhere with GCC 8+.
%global with_tests 0
Name: openvdb
Version: 5.0.0
Release: 4%{?dist}
Version: 5.1.0
Release: 1%{?dist}
Summary: C++ library for sparse volumetric data discretized on three-dimensional grids
License: MPLv2.0
URL: http://www.openvdb.org/
Source0: https://github.com/dreamworksanimation/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch1: fix-compatibility-boost.patch
BuildRequires: blosc-devel >= 1.5.0
BuildRequires: boost-devel >= 1.57.0
BuildRequires: boost-python3-devel
BuildRequires: cmake >= 2.8
BuildRequires: cppunit-devel >= 1.10
BuildRequires: doxygen >= 1.8.11
@ -24,9 +27,9 @@ BuildRequires: ilmbase-devel
BuildRequires: libXi-devel
BuildRequires: log4cplus-devel >= 1.0
BuildRequires: OpenEXR-devel
BuildRequires: python2
BuildRequires: python2-numpy
BuildRequires: python2-devel
BuildRequires: python3
BuildRequires: python3-numpy
BuildRequires: python3-devel
BuildRequires: tbb-devel >= 3.0
BuildRequires: zlib-devel
@ -57,14 +60,13 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.
%package python2
%package python3
Summary: OpenVDB Python module
Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < 4.0.1-5
Provides: %{name}-python = %{version}-%{release}
BuildRequires: boost-python2-devel
Obsoletes: %{name}-python2 < 5.1.0-1
Provides: %{name}-python2 = %{version}-%{release}
%description python2
%description python3
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.
@ -119,11 +121,12 @@ pushd %{name}
make -f Makefile.docbuild doc
popd
## vdb_unit_test fails everywhere with gcc-c++ 8.x
#%%ifarch x86_64
#%%check
#%%make test
#%%endif
%if 0%{?with_tests}
%ifarch x86_64
%check
%make test
%endif
%endif
%install
%make_install
@ -136,9 +139,9 @@ rm -fr %{buildroot}/%{_datadir}/doc
find %{buildroot} -name '*.a' -delete
#%%post libs -p /sbin/ldconfig
%post libs -p /sbin/ldconfig
#%%postun libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%{_bindir}/vdb_view
@ -150,7 +153,7 @@ find %{buildroot} -name '*.a' -delete
%doc README.md %{name}/CHANGES
%{_libdir}/*.so.*
%files python2
%files python3
%{_libdir}/python%{python_version}/py%{name}.so
%files devel
@ -161,6 +164,10 @@ find %{buildroot} -name '*.a' -delete
%doc %{name}/doc/html
%changelog
* Tue Jul 17 2018 Simone Caronni <negativo17@gmail.com> - 5.1.0-1
- Update to 5.1.0.
- Switch to Python 3.
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

View File

@ -1,2 +1 @@
SHA512 (openvdb-5.0.0.tar.gz) = 8916d54683d81144114e57f8332be43b7547e6da5d194f6147bcefd4ee9e8e7ec817f27b65adb129dfd149e6b308f4bab30591ee953ee2c319636491bf051a2b
SHA512 (fix-compatibility-boost.patch) = dea18aaa4bec27d34fa8a8e76c10b5aa6a28ea62d9841f816a02fce330a44b926e3e98638e1f712313ace9a5fa03918d4aa88f6298d8e48168374aa978d550ba
SHA512 (openvdb-5.1.0.tar.gz) = c71d040a1862f5e31f084125e9695da3ebf171788956d7d4c16f99ead26a099a81d5a9c30ba2cc61f29e32e21f822796ae34f6c62496050894087735a19489f6