File notekit.spec of Package notekit

#
# spec file for package notekit
#
# Copyright (c) 2021-23 Florian "sp1rit" <packaging@sp1rit.anonaddy.me>
# Copyright (c) 2020 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/
#

%global uuid com.github.blackhole89.notekit

Name: notekit
Version: 0
Release: 0
Group: Productivity/Office/Word Processor
License: GPL-3.0
Summary: A GTK3 hierarchical markdown notetaking application with tablet support
Url: https://github.com/blackhole89/notekit
Source0: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++ meson
BuildRequires: pkgconfig(clatexmath)
BuildRequires: pkgconfig(gtkmm-3.0)
BuildRequires: pkgconfig(gtksourceviewmm-3.0)
BuildRequires: pkgconfig(jsoncpp)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: hicolor-icon-theme
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif

%description
This program is a structured notetaking application based on GTK+ 3. Write your notes in instantly-formatted Markdown, organise them in a tree of folders that can be instantly navigated from within the program, and add hand-drawn notes by mouse, touchscreen or digitiser.

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%if 0%{?suse_version}
%suse_update_desktop_file %{uuid}
%endif

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/128x128/apps/%{uuid}.png
%{_datadir}/icons/hicolor/scalable/apps/%{uuid}.svg
%{_datadir}/applications/%{uuid}.desktop
%{_datadir}/glib-2.0/schemas/%{uuid}.gschema.xml
%{_datadir}/metainfo/%{uuid}.metainfo.xml

%changelog
openSUSE Build Service is sponsored by