File kquickimageeditor.spec of Package kquickimageeditor

#
# spec file for package kquickimageeditor
#
# Copyright (c) 2021 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 __builder ninja

Name:           kquickimageeditor
Version:        0.1.2
Release:        0
Summary:        Image editing components
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        BSD-2-Clause and CC0-1.0 and LGPL-2.1-or-later
URL:            https://invent.kde.org/libraries/kquickimageeditor
Source:         %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:  ninja
BuildRequires:  extra-cmake-modules
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5QuickControls2)

%description
KQuickImageEditor is a set of QtQuick components providing basic image editing
capabilities.

%package devel
Summary:        Development files for %{name}

%description devel
%{summary}.

%prep
%autosetup -n %{name}-v%{version}

%build
%cmake \
 -DCMAKE_BUILD_TYPE=Release \
 -DUSE_BUNDLED=OFF \
..
%cmake_build

%install
%cmake_install

%files
%license LICENSES/{BSD-2-Clause,CC0-1.0,LGPL-2.1-or-later}.txt
%doc README.md
%{_libdir}/qt5/qml/org

%files devel
%{_libdir}/cmake/KQuickImageEditor
%{_libdir}/qt5/mkspecs/modules/qt_KQuickImageEditor.pri

%changelog

openSUSE Build Service is sponsored by