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 http://bugs.opensuse.org/
#

%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
URL:            https://gitlab.orfeo-toolbox.org/orfeotoolbox/qgis-otb-plugin
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

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

%prep
%setup -q

%build
# Nothing to do

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

%files
%{_datadir}/qgis
%license LICENSE COPYING
%doc README.md

%changelog
openSUSE Build Service is sponsored by