File notes.spec of Package notes

#
# spec file for package notes
#
# Copyright (c) 2023 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  _name  io.github.nuttyartist.notes
Name:           notes
Version:        @SERVICE@
Release:        0
Summary:        Note taking app
License:        MPL-2.0
Group:          Productivity/Other
URL:            https://www.get-notes.com
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  ninja
BuildRequires:  update-desktop-files
BuildRequires:  qt6-core-private-devel
BuildRequires:  qt6-gui-private-devel
BuildRequires:  qt6-widgets-private-devel
BuildRequires:  cmake(Qt6Concurrent)
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6Quick)
BuildRequires:  cmake(Qt6Sql)
BuildRequires:  cmake(Qt6Test)
BuildRequires:  cmake(Qt6Widgets)
Requires:       qt6-sql-sqlite

%description
Notes is an open source, cross-platform note taking app which has the
potential to be something much bigger, and much better at empowering the
people using it. This is where you come into play. Be part of making Notes
better.

%prep
%autosetup

%build
%define __builder ninja
%cmake
%ninja_build

%install
%ninja_install -C build
%suse_update_desktop_file -r -G "Notes" %{_name} Utility TextEditor

%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{_name}.??g
%{_datadir}/metainfo/%{_name}.metainfo.xml
%license LICENSE

%changelog
openSUSE Build Service is sponsored by