File python-pcl.spec of Package python-pcl

#
# spec file for package python-pcl
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define skip_python2 1
%define skip_python36 1

%{?!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 nose2}
BuildRequires:  %{python_module numpy-devel}
BuildRequires:  %{python_module numpy}
BuildRequires:  %{python_module setuptools}
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  libboost_system-devel
BuildRequires:  pcl-devel
BuildRequires:  python-rpm-macros
BuildRequires:  libXt-devel
# No PCL on 32bit archs
ExcludeArch:    %{ix86} %{arm}

%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}
%license LICENSE
%doc readme.rst
%{python3_sitearch}/*

%changelog
openSUSE Build Service is sponsored by