]>
Commit | Line | Data |
---|---|---|
ca4db9a4 JB |
1 | # TODO: VTK, MPI, ROS? |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without apidocs # do not build and package API docs | |
5 | # | |
6 | Summary: Point Cloud Library - library for point cloud processing | |
7 | Summary(pl.UTF-8): Point Cloud Library - biblioteka do operacji na chmurze punktów | |
8 | Name: pcl | |
92237c8c | 9 | Version: 1.6.0 |
ca4db9a4 JB |
10 | Release: 0.1 |
11 | License: BSD | |
12 | Group: Libraries | |
92237c8c JB |
13 | #Source0Download: http://pointclouds.org/downloads/ |
14 | Source0: http://www.pointclouds.org/assets/files/1.6.0/PCL-%{version}-Source.tar.bz2 | |
15 | # Source0-md5: f83ca5d0ff290412b0807864b95eba26 | |
ca4db9a4 JB |
16 | Patch0: %{name}-link.patch |
17 | URL: http://pointclouds.org/ | |
18 | BuildRequires: OpenNI-devel | |
19 | BuildRequires: boost-devel | |
20 | BuildRequires: cmake | |
21 | BuildRequires: eigen3 >= 3 | |
22 | BuildRequires: flann-devel | |
23 | BuildRequires: gcc-c++ >= 6:4.2 | |
24 | BuildRequires: libgomp-devel | |
25 | BuildRequires: libstdc++-devel | |
26 | BuildRequires: libusb-devel >= 1.0 | |
27 | BuildRequires: qhull-devel | |
28 | BuildRequires: python | |
29 | BuildRequires: sed >= 4.0 | |
30 | %if %{with apidocs} | |
31 | BuildRequires: doxygen | |
92237c8c | 32 | BuildRequires: python-sphinxcontrib-doxylink >= 1.3 |
ca4db9a4 JB |
33 | BuildRequires: sphinx-pdg |
34 | %endif | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | The Point Cloud Library (PCL) is a standalone, large scale, open | |
39 | project for 3D point cloud processing. | |
40 | ||
41 | The PCL framework contains numerous state-of-the art algorithms | |
42 | including filtering, feature estimation, surface reconstruction, | |
43 | registration, model fitting and segmentation, as well as higher level | |
44 | tools for performing mapping and object recognition. Think of it as | |
45 | the Boost of 3D point cloud processing. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Biblioteka PCL (Point Cloud Processing) to samodzielna, wielkoskalowa, | |
49 | mająca otwarte źródła biblioteka do przetwarzania chmury punktów 3D. | |
50 | ||
51 | Szkielet PCL zawiera wiele współczesnych algorytmów, obejmujących | |
52 | filtrowanie, przybliżanie cech, rekonstrukcję powierzchni, | |
53 | rejestrację, dopasowywanie modeli oraz segmentację, a także narzędzia | |
54 | wyższego poziomu do wykonywania odwzorowań oraz rozpoznawania | |
55 | obiektów. O bibliotece można myśleć jako odpowiedniku Boosta do | |
56 | przetwarzania chmury punktów 3D. | |
57 | ||
58 | %package devel | |
59 | Summary: Header files for PCL library | |
60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki PCL | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description devel | |
65 | Header files for PCL library. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe biblioteki PCL. | |
69 | ||
70 | %package apidocs | |
71 | Summary: PCL API documentation and tutorials | |
72 | Summary(pl.UTF-8): Dokumentacja API oraz wprowadzenie do biblioteki PCL | |
73 | Group: Documentation | |
74 | ||
75 | %description apidocs | |
76 | API documentation and tutorials for PCL library. | |
77 | ||
78 | %description apidocs -l pl.UTF-8 | |
79 | Dokumentacja API oraz wprowadzenie do biblioteki PCL. | |
80 | ||
81 | %prep | |
82 | %setup -q -n PCL-%{version}-Source | |
83 | %patch0 -p1 | |
84 | ||
92237c8c | 85 | # don't use SSE/SSE2/SSE3 just because compiler and builder host supports it |
ca4db9a4 JB |
86 | %{__sed} -i -e '/^PCL_CHECK_FOR_SSE/d' CMakeLists.txt |
87 | ||
88 | %build | |
89 | mkdir build | |
90 | cd build | |
91 | %cmake .. | |
92 | %{__make} | |
93 | ||
92237c8c | 94 | # why it's not called on build? |
ca4db9a4 JB |
95 | %if %{with apidocs} |
96 | cd doc/doxygen | |
97 | doxygen doxyfile | |
98 | cd ../tutorials | |
99 | sphinx-build -b html -a -d doctrees ../../../doc/tutorials/content html | |
100 | %endif | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %{__make} -C build install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
108 | %clean | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %post -p /sbin/ldconfig | |
112 | %postun -p /sbin/ldconfig | |
113 | ||
114 | %files | |
115 | %defattr(644,root,root,755) | |
116 | %doc AUTHORS.txt LICENSE.txt | |
92237c8c JB |
117 | %attr(755,root,root) %{_bindir}/pcl_convert_pcd_ascii_binary |
118 | %attr(755,root,root) %{_bindir}/pcl_openni_grabber_example | |
119 | %attr(755,root,root) %{_bindir}/pcl_openni_io | |
120 | %attr(755,root,root) %{_bindir}/pcl_pcd_convert_NaN_nan | |
121 | %attr(755,root,root) %{_bindir}/pcl_ply2obj | |
122 | %attr(755,root,root) %{_bindir}/pcl_ply2ply | |
123 | %attr(755,root,root) %{_bindir}/pcl_ply2raw | |
124 | %attr(755,root,root) %{_bindir}/pcl_plyheader | |
ca4db9a4 | 125 | %attr(755,root,root) %{_libdir}/libpcl_common.so.*.*.* |
92237c8c | 126 | %attr(755,root,root) %ghost %{_libdir}/libpcl_common.so.1.6 |
ca4db9a4 | 127 | %attr(755,root,root) %{_libdir}/libpcl_features.so.*.*.* |
92237c8c | 128 | %attr(755,root,root) %ghost %{_libdir}/libpcl_features.so.1.6 |
ca4db9a4 | 129 | %attr(755,root,root) %{_libdir}/libpcl_filters.so.*.*.* |
92237c8c JB |
130 | %attr(755,root,root) %ghost %{_libdir}/libpcl_filters.so.1.6 |
131 | %attr(755,root,root) %{_libdir}/libpcl_geometry.so.*.*.* | |
132 | %attr(755,root,root) %ghost %{_libdir}/libpcl_geometry.so.1.6 | |
ca4db9a4 | 133 | %attr(755,root,root) %{_libdir}/libpcl_io.so.*.*.* |
92237c8c JB |
134 | %attr(755,root,root) %ghost %{_libdir}/libpcl_io.so.1.6 |
135 | %attr(755,root,root) %{_libdir}/libpcl_io_ply.so.*.*.* | |
136 | %attr(755,root,root) %ghost %{_libdir}/libpcl_io_ply.so.1.6 | |
ca4db9a4 | 137 | %attr(755,root,root) %{_libdir}/libpcl_kdtree.so.*.*.* |
92237c8c | 138 | %attr(755,root,root) %ghost %{_libdir}/libpcl_kdtree.so.1.6 |
ca4db9a4 | 139 | %attr(755,root,root) %{_libdir}/libpcl_keypoints.so.*.*.* |
92237c8c | 140 | %attr(755,root,root) %ghost %{_libdir}/libpcl_keypoints.so.1.6 |
ca4db9a4 | 141 | %attr(755,root,root) %{_libdir}/libpcl_octree.so.*.*.* |
92237c8c | 142 | %attr(755,root,root) %ghost %{_libdir}/libpcl_octree.so.1.6 |
ca4db9a4 | 143 | %attr(755,root,root) %{_libdir}/libpcl_registration.so.*.*.* |
92237c8c | 144 | %attr(755,root,root) %ghost %{_libdir}/libpcl_registration.so.1.6 |
ca4db9a4 | 145 | %attr(755,root,root) %{_libdir}/libpcl_sample_consensus.so.*.*.* |
92237c8c | 146 | %attr(755,root,root) %ghost %{_libdir}/libpcl_sample_consensus.so.1.6 |
ca4db9a4 | 147 | %attr(755,root,root) %{_libdir}/libpcl_search.so.*.*.* |
92237c8c | 148 | %attr(755,root,root) %ghost %{_libdir}/libpcl_search.so.1.6 |
ca4db9a4 | 149 | %attr(755,root,root) %{_libdir}/libpcl_segmentation.so.*.*.* |
92237c8c | 150 | %attr(755,root,root) %ghost %{_libdir}/libpcl_segmentation.so.1.6 |
ca4db9a4 | 151 | %attr(755,root,root) %{_libdir}/libpcl_surface.so.*.*.* |
92237c8c JB |
152 | %attr(755,root,root) %ghost %{_libdir}/libpcl_surface.so.1.6 |
153 | %attr(755,root,root) %{_libdir}/libpcl_tracking.so.*.*.* | |
154 | %attr(755,root,root) %ghost %{_libdir}/libpcl_tracking.so.1.6 | |
ca4db9a4 JB |
155 | |
156 | %files devel | |
157 | %defattr(644,root,root,755) | |
158 | %attr(755,root,root) %{_libdir}/libpcl_common.so | |
159 | %attr(755,root,root) %{_libdir}/libpcl_features.so | |
160 | %attr(755,root,root) %{_libdir}/libpcl_filters.so | |
92237c8c | 161 | %attr(755,root,root) %{_libdir}/libpcl_geometry.so |
ca4db9a4 | 162 | %attr(755,root,root) %{_libdir}/libpcl_io.so |
92237c8c | 163 | %attr(755,root,root) %{_libdir}/libpcl_io_ply.so |
ca4db9a4 JB |
164 | %attr(755,root,root) %{_libdir}/libpcl_kdtree.so |
165 | %attr(755,root,root) %{_libdir}/libpcl_keypoints.so | |
166 | %attr(755,root,root) %{_libdir}/libpcl_octree.so | |
ca4db9a4 JB |
167 | %attr(755,root,root) %{_libdir}/libpcl_registration.so |
168 | %attr(755,root,root) %{_libdir}/libpcl_sample_consensus.so | |
169 | %attr(755,root,root) %{_libdir}/libpcl_search.so | |
170 | %attr(755,root,root) %{_libdir}/libpcl_segmentation.so | |
171 | %attr(755,root,root) %{_libdir}/libpcl_surface.so | |
92237c8c JB |
172 | %attr(755,root,root) %{_libdir}/libpcl_tracking.so |
173 | %{_includedir}/pcl-1.6 | |
174 | %{_pkgconfigdir}/pcl_common-1.6.pc | |
175 | %{_pkgconfigdir}/pcl_features-1.6.pc | |
176 | %{_pkgconfigdir}/pcl_filters-1.6.pc | |
177 | %{_pkgconfigdir}/pcl_geometry-1.6.pc | |
178 | %{_pkgconfigdir}/pcl_io-1.6.pc | |
179 | %{_pkgconfigdir}/pcl_kdtree-1.6.pc | |
180 | %{_pkgconfigdir}/pcl_keypoints-1.6.pc | |
181 | %{_pkgconfigdir}/pcl_octree-1.6.pc | |
182 | %{_pkgconfigdir}/pcl_registration-1.6.pc | |
183 | %{_pkgconfigdir}/pcl_sample_consensus-1.6.pc | |
184 | %{_pkgconfigdir}/pcl_search-1.6.pc | |
185 | %{_pkgconfigdir}/pcl_segmentation-1.6.pc | |
186 | %{_pkgconfigdir}/pcl_surface-1.6.pc | |
187 | %{_pkgconfigdir}/pcl_tracking-1.6.pc | |
188 | %dir %{_datadir}/pcl-1.6 | |
189 | %{_datadir}/pcl-1.6/PCLConfig*.cmake | |
ca4db9a4 JB |
190 | |
191 | %if %{with apidocs} | |
192 | %files apidocs | |
193 | %defattr(644,root,root,755) | |
92237c8c JB |
194 | %dir %{_docdir}/pcl-1.6 |
195 | %{_docdir}/pcl-1.6/html | |
196 | %{_docdir}/pcl-1.6/tutorials | |
ca4db9a4 | 197 | %endif |