File qgis-otb-plugin.spec of Package qgis-otb-plugin

# spec file for package qgis-otb-plugin
# 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

%define plugindir %{_datadir}/qgis/python/plugins/otb
Name:           qgis-otb-plugin
Version:        1.4.2
Release:        0
Summary:        OTB plugin for QGIS
License:        GPL-2.0-or-later
Group:          Productivity/Graphics/Visualization/Other
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  otb-devel
BuildRequires:  qgis
BuildRequires:  qgis-devel >= 3.1
Requires:       otb-bin
Requires:       python2-otb
Requires:       qgis >= 3.1
# We cannot be noarch since otb/applications may be in /usr/lib or /usr/lib64
# BuildArch:      noarch

OTB provider for QGIS Processing. 
Please set OTB Application folder and OTB folder to '/usr' in QGIS options.

%setup -q

# Nothing to do

mkdir -p %{buildroot}%{plugindir}
pushd otb
cp *.py *.png *.svg *.txt %{buildroot}%{plugindir}


openSUSE Build Service is sponsored by