summaryrefslogtreecommitdiffstats
path: root/notekit/notekit/notekit.spec
blob: 3805ae08ba6069740486ad0452ffd523d985eebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# With cLaTeXMath!
%bcond_without      clatexmath

%global forgeurl    https://github.com/blackhole89/notekit/

%global uuid        com.github.blackhole89.notekit

Name:       notekit
Version:    0.2.0
Release:    %autorelease
Summary:    Hierarchical markdown notetaking application with tablet support

#global commit      66a31147f83b93542f0c53f0eda65b1576bc4756
%forgemeta

# The app is under the GPLv3+ license while the fonts are under the Charter
# license.
License:    GPLv3+ and Charter
URL:        %{forgeurl}
Source0:    %{forgesource}

BuildRequires:  meson
BuildRequires:  gcc-c++
BuildRequires:  desktop-file-utils
BuildRequires:  libappstream-glib
%if %{with clatexmath}
BuildRequires:  cLaTeXMath-devel
%endif
BuildRequires:  gtkmm30-devel
BuildRequires:  gtksourceviewmm3-devel
BuildRequires:  jsoncpp-devel
BuildRequires:  zlib-devel
Requires:       hicolor-icon-theme

%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
%forgeautosetup

%build
%meson %{!?with_clatexmath:-Dclatexmath=false}

%meson_build

%install
%meson_install

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{uuid}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{uuid}.metainfo.xml

%files
%doc README.md
%license LICENSE "data/fonts/Charter license.txt"
%{_bindir}/%{name}
%{_metainfodir}/%{uuid}.metainfo.xml
%{_datadir}/applications/%{uuid}.desktop
%{_datadir}/icons/hicolor/*/apps/%{uuid}.*
%{_datadir}/%{name}/

%changelog
%autochangelog