# # spec file for package python-pcl # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pcl Version: 0.3.1_20180828 Release: 0 Summary: Library for point cloud processing License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/strawlab/python-pcl Source0: python-pcl-%{version}.tar.bz2 Source1: setup.cfg Patch1: remove_deprecated.patch Patch2: fix_nogil.patch Patch3: visualization18.patch BuildRequires: %{python_module Cython} >= 0.25.2 BuildRequires: %{python_module filelock} BuildRequires: %{python_module nose} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: java-1_8_0-openjdk-devel %if 0%{?suse_version} >= 1500 BuildRequires: libboost_system-devel %else BuildRequires: boost-devel %endif BuildRequires: pcl-devel BuildRequires: gtk2-devel BuildRequires: python-rpm-macros BuildRequires: libXt-devel BuildRequires: python-distutils-extra %python_subpackages %description This is a small python binding to the pointcloud library. %prep %setup -q %patch1 -p1 %patch2 -p1 %patch3 -p1 %build cp %{SOURCE1} . %python_build %install %python_install %files %{python_files} %if 0%{suse_version} >= 1500 %license LICENSE %else %doc LICENSE %endif %doc readme.rst %{python_sitearch}/* %changelog