openvdb/openvdb.spec

247 lines
7.8 KiB
RPMSpec
Raw Normal View History

2018-07-17 08:24:03 +00:00
%global python_version %(%{__python3} -c "import sys ; print(sys.version[:3])")
2018-07-17 09:45:41 +00:00
%{!?python3_sitearch: %global python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
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
Version: 6.0.0
2019-04-12 13:54:44 +00:00
Release: 2%{?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/
Source0: https://github.com/AcademySoftwareFoundation/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
2017-05-08 12:57:22 +00:00
BuildRequires: blosc-devel >= 1.5.0
BuildRequires: boost-devel >= 1.57.0
2018-07-17 08:24:03 +00:00
BuildRequires: boost-python3-devel
2017-05-08 12:57:22 +00:00
BuildRequires: cmake >= 2.8
BuildRequires: cppunit-devel >= 1.10
BuildRequires: doxygen >= 1.8.11
BuildRequires: epydoc
BuildRequires: gcc-c++
2017-05-08 12:57:22 +00:00
BuildRequires: ghostscript >= 8.70
BuildRequires: glfw-devel >= 2.7
BuildRequires: ilmbase-devel
BuildRequires: jemalloc-devel
2017-05-08 12:57:22 +00:00
BuildRequires: libXi-devel
BuildRequires: log4cplus-devel >= 1.0
BuildRequires: OpenEXR-devel
Requires: python3
2018-07-17 08:24:03 +00:00
BuildRequires: python3-numpy
BuildRequires: python3-devel
2017-05-08 12:57:22 +00:00
BuildRequires: tbb-devel >= 3.0
BuildRequires: zlib-devel
# Borrowed from Arch linux
Patch: boost-1.67.patch
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.
It is developed and maintained by Academy Software Foundation for use in volumetric
2017-05-08 12:57:22 +00:00
applications typically encountered in feature film production.
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.
It is developed and maintained by DreamWorks Animation for use in volumetric
applications typically encountered in feature film production.
%package devel
Summary: Development files for %{name}
Requires: %{name}-libs%{?_isa} = %{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}.
2018-07-17 08:24:03 +00:00
%package python3
2017-05-08 12:57:22 +00:00
Summary: OpenVDB Python module
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
2018-07-17 08:24:03 +00:00
Obsoletes: %{name}-python2 < 5.1.0-1
Provides: %{name}-python2 = %{version}-%{release}
2017-05-08 12:57:22 +00:00
2018-07-17 08:24:03 +00:00
%description python3
2017-05-08 12:57:22 +00:00
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.
It is developed and maintained by DreamWorks Animation for use in volumetric
applications typically encountered in feature film production.
This package contains the Python module.
2017-05-08 13:02:54 +00:00
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
%description doc
The %{name}-doc package contains documentation for developing applications that
use %{name}.
2017-05-08 12:57:22 +00:00
%prep
%autosetup -p1
2017-05-08 12:57:22 +00:00
2017-05-08 13:02:54 +00:00
iconv -f iso8859-1 -t utf-8 %{name}/CHANGES > %{name}/CHANGES.conv && \
mv -f %{name}/CHANGES.conv %{name}/CHANGES
2018-07-17 09:45:41 +00:00
# Hardcoded values for Python module
sed -i \
-e 's|lib$|%{_lib}|g' -e 's|lib/python|%{_lib}/python|g' \
2017-09-12 10:06:17 +00:00
%{name}/CMakeLists.txt %{name}/python/CMakeLists.txt
2017-05-08 12:57:22 +00:00
# Save Makefile that contains doc building instructions, new cmake build system
# does not build docs yet
cp %{name}/Makefile %{name}/Makefile.docbuild
%build
2017-05-08 13:02:54 +00:00
export CXXFLAGS="%{optflags} -Wl,--as-needed"
2017-05-08 12:57:22 +00:00
%cmake \
-DBLOSC_LOCATION=%{_prefix} \
-DCMAKE_EXE_LINKER_FLAGS="%{optflags} -fPIE" \
2017-05-08 12:57:22 +00:00
-DCPPUNIT_LOCATION=%{_prefix} \
-DGLEW_LOCATION=%{_prefix} \
-DGLFW3_LOCATION=%{_prefix} \
-DILMBASE_NAMESPACE_VERSIONING=OFF \
-DILMBASE_LOCATION=%{_prefix} \
-DOPENEXR_LOCATION=%{_prefix} \
-DOPENEXR_NAMESPACE_VERSIONING=OFF \
-DOPENVDB_ENABLE_RPATH=OFF \
-DOPENVDB_ABI_VERSION_NUMBER=3 \
-DOPENVDB_BUILD_UNITTESTS=OFF \
2017-05-08 12:57:22 +00:00
-DPYTHON_VERSION=%{python_version} \
-DPY_OPENVDB_USE_NUMPY=True \
2017-05-08 12:57:22 +00:00
-DTBB_LOCATION=%{_prefix} \
-DUSE_GLFW3=True
%make_build
# Build docs with previously saved Makefile
pushd %{name}
make -f Makefile.docbuild doc
popd
2018-07-17 08:24:03 +00:00
%if 0%{?with_tests}
%ifarch x86_64
%check
%make test
%endif
%endif
2017-05-08 12:57:22 +00:00
%install
%make_install
# Remove CMakeFiles from includes
2017-05-08 13:02:54 +00:00
rm -fr %{buildroot}/%{_includedir}/%{name}/CMakeFiles
2017-05-08 12:57:22 +00:00
# Let RPM pick up HTML documents in the files section
rm -fr %{buildroot}/%{_datadir}/doc
find %{buildroot} -name '*.a' -delete
#%%ldconfig_scriptlets libs
2017-05-08 12:57:22 +00:00
%files
%{_bindir}/vdb_view
%{_bindir}/vdb_print
%{_bindir}/vdb_render
%files libs
%license %{name}/LICENSE %{name}/COPYRIGHT
%doc README.md %{name}/CHANGES
%{_libdir}/*.so.*
2018-07-17 08:24:03 +00:00
%files python3
2017-05-08 12:57:22 +00:00
%{_libdir}/python%{python_version}/py%{name}.so
%files devel
%{_includedir}/*
%{_libdir}/*.so
2017-05-08 13:02:54 +00:00
%files doc
%doc %{name}/doc/html
2017-05-08 12:57:22 +00:00
%changelog
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.
* Sat Feb 16 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 6.0.0-1
- Update to 6.0.0
- Update source url and description
- Apply patch for boost 1.6.9 borrowed from Arch Linux
* 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
* 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.
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* 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
* 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
- Use new upstream macro for abi compatibility
- Rebuild for Boost 1.66
2018-02-26 00:49:13 +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.
* 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
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* 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.