summaryrefslogtreecommitdiff
path: root/packaging/Open3D.spec
blob: 946683a85ac7d0455ceddd26bed8cbea3f3351f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Name: Open3D
Summary: Open3D library
Version: 0.14.1
Release: 0
Group: Development/Libraries
License: MIT
Source0: %{name}-%{version}.tar.gz
Source100: 3rdparty_downloads.tar.bz2
Source1001: 1001-TIZEN-OPEN3D-BUILD.patch
ExclusiveArch: aarch64

BuildRequires: cmake
BuildRequires: pkg-config
BuildRequires: libjpeg-turbo-devel
BuildRequires: libpng-devel
BuildRequires: python3-devel
BuildRequires: openblas-devel
BuildRequires: cblas-devel
BuildRequires: lapack-devel
BuildRequires: lapacke-devel
BuildRequires: pkgconfig(dlog)

Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description
Open3D: A Modern Library for 3D Data Processing.

%package devel
Summary:    Open3D Library (Dev)
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
Open3D: A Modern Library (Dev) for 3D Data Processing.

%prep
%setup -q
%setup -q -T -D -a 100

cp %{SOURCE1001} .
patch -p1 < %{SOURCE1001}

%build
mkdir -p build
cd build
cmake .. \
	-DTIZEN=TRUE \
	-DLINUX_AARCH64=TRUE \
	-DBUILD_AZURE_KINECT=OFF \
	-DBUILD_BENCHMARKS=OFF \
	-DBUILD_CACHED_CUDA_MANAGER=OFF \
	-DBUILD_COMMON_CUDA_ARCHS=ON \
	-DBUILD_COMMON_ISPC_ISAS=OFF \
	-DBUILD_CUDA_MODULE=OFF \
	-DBUILD_EXAMPLES=OFF \
	-DBUILD_FILAMENT_FROM_SOURCE=OFF \
	-DBUILD_GUI=OFF \
	-DBUILD_ISPC_MODULE=OFF \
	-DBUILD_JUPYTER_EXTENSION=OFF \
	-DBUILD_LIBREALSENSE=OFF \
	-DBUILD_PYTHON_MODULE=OFF \
	-DBUILD_PYTORCH_OPS=OFF \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_TENSORFLOW_OPS=OFF \
	-DBUILD_UNIT_TESTS=OFF \
	-DBUILD_WEBRTC=OFF \
	-DBUNDLE_OPEN3D_ML=OFF \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DDEVELOPER_BUILD=OFF \
	-DENABLE_HEADLESS_RENDERING=OFF \
	-DFETCHCONTENT_FULLY_DISCONNECTED=OFF \
	-DFETCHCONTENT_QUIET=ON \
	-DFETCHCONTENT_UPDATES_DISCONNECTED=OFF \
	-DFETCHCONTENT_UPDATES_DISCONNECTED_EXT_OPEN3D_SPHINX_THEME=OFF \
	-DGLFW_USE_MIR=OFF \
	-DGLFW_USE_WAYLAND=OFF \
	-DGLFW_VULKAN_STATIC=OFF \
	-DGLIBCXX_USE_CXX11_ABI=ON \
	-DLIB_SUFFIX:STRING= \
	-DPREFER_OSX_HOMEBREW=OFF \
	-DSTATIC_WINDOWS_RUNTIME=OFF \
	-DUSE_BLAS=OFF \
	-DUSE_LINUX_MKL_FROM_CONDA_REPO=OFF \
	-DUSE_SYSTEM_EIGEN3=OFF \
	-DUSE_SYSTEM_FMT=OFF \
	-DUSE_SYSTEM_GLEW=OFF \
	-DUSE_SYSTEM_GLFW=OFF \
	-DUSE_SYSTEM_IMGUI=OFF \
	-DUSE_SYSTEM_JPEG=ON \
	-DUSE_SYSTEM_LIBLZF=OFF \
	-DUSE_SYSTEM_LIBREALSENSE=OFF \
	-DUSE_SYSTEM_PNG=ON \
	-DUSE_SYSTEM_PYBIND11=OFF \
	-DUSE_SYSTEM_QHULLCPP=OFF \
	-DUSE_SYSTEM_TINYGLTF=OFF \
	-DUSE_SYSTEM_TINYOBJLOADER=OFF \
	-DWITH_FAISS=OFF \
	-DWITH_IPPICV=OFF \
	-DWITH_OPENMP=ON

make %{?jobs:-j%jobs}

%install
cd build
rm -rf %{buildroot}
%make_install

%clean
rm -rf %{buildroot}

%pre

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%manifest Open3D.manifest
%defattr(-,root,root,-)
%license LICENSE
%{_libdir}/*.so

%files devel
/usr/include/open3d
%{_libdir}/cmake/Open3D/*.cmake