[packages/Field3D] - fix for current cmake/boost integration
qboosh
qboosh at pld-linux.org
Sat Jul 11 19:24:35 CEST 2026
commit 700dac90aa826d08d4c3d5e21d59fbcb6179c257
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 11 19:24:16 2026 +0200
- fix for current cmake/boost integration
Field3D-boost.patch | 13 +++++++++++++
Field3D.spec | 5 ++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/Field3D.spec b/Field3D.spec
index 2128a25..c978e82 100644
--- a/Field3D.spec
+++ b/Field3D.spec
@@ -10,6 +10,7 @@ Group: Libraries
Source0: https://github.com/imageworks/Field3D/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 536198b1b4840a5b35400ccf05d4431c
Patch0: openexr3.patch
+Patch1: %{name}-boost.patch
URL: http://opensource.imageworks.com/?p=field3d
BuildRequires: OpenEXR-devel >= 3.0.0
BuildRequires: boost-devel >= 1.34.0
@@ -17,6 +18,7 @@ BuildRequires: cmake >= 2.8
BuildRequires: doxygen
BuildRequires: hdf5-devel >= 1.8
BuildRequires: libstdc++-devel
+BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.605
Requires: OpenEXR >= 3.0.0
Requires: hdf5 >= 1.8
@@ -63,7 +65,8 @@ Dokumentacja API biblioteki Field3D.
%prep
%setup -q
-%patch -P 0 -p1
+%patch -P0 -p1
+%patch -P1 -p1
%build
# main build system is scons, but there is cmake alternative, which is slightly more usable in rpm building
diff --git a/Field3D-boost.patch b/Field3D-boost.patch
new file mode 100644
index 0000000..e8fff48
--- /dev/null
+++ b/Field3D-boost.patch
@@ -0,0 +1,13 @@
+--- Field3D-1.7.3/CMakeLists.txt.orig 2026-07-11 19:06:57.011952835 +0200
++++ Field3D-1.7.3/CMakeLists.txt 2026-07-11 19:09:46.907699098 +0200
+@@ -73,10 +73,8 @@ INCLUDE_DIRECTORIES ( export )
+ INCLUDE_DIRECTORIES ( include )
+ INCLUDE_DIRECTORIES ( ${ILMBASE_INCLUDE_DIRS} )
+ INCLUDE_DIRECTORIES ( ${HDF5_INCLUDE_DIRS} )
+-INCLUDE_DIRECTORIES ( ${Boost_INCLUDE_DIR} )
+
+ # link directories
+-LINK_DIRECTORIES ( ${Boost_LIBRARY_DIRS} )
+ LINK_DIRECTORIES ( ${HDF5_LIBRARY_DIRS} )
+ LINK_DIRECTORIES ( ${ILMBASE_LIBRARY_DIRS} )
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/Field3D.git/commitdiff/5b99bcc4a024b83222f04370a67690261416c3aa
More information about the pld-cvs-commit
mailing list