1 Summary: A hierarchical note taking application
2 Summary(pl.UTF-8): Hierarchiczna aplikacja do robienia notatek
7 Group: X11/Applications
8 Source0: https://www.giuspen.com/software/%{name}_%{version}.tar.xz
9 # Source0-md5: f5a967da66e6d211658ca3b6a82ad8be
10 URL: https://www.giuspen.com/cherrytree/
11 BuildRequires: curl-devel
12 BuildRequires: gspell-devel
13 BuildRequires: gtkmm3-devel
14 BuildRequires: gtksourceviewmm3-devel
15 BuildRequires: libfmt-devel
16 BuildRequires: libxml++2-devel
17 BuildRequires: rpmbuild(macros) >= 1.596
18 BuildRequires: shared-mime-info
19 BuildRequires: spdlog-devel >= 1:1.8.1
20 BuildRequires: uchardet-devel
22 Requires: gtksourceviewmm3
25 Requires: shared-mime-info
26 Requires: spdlog >= 1:1.8.1
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 A hierarchical note taking application, featuring rich text and syntax
32 highlighting, storing all the data (including images) in a single xml
33 file with extension ".ctd".
35 %description -l pl.UTF-8
36 Hierarchiczna aplikacja do notatek, wspierająca tekst sformatowany i
37 wyróżnianie składni, przechowująca wszystkie dane (w tym obrazy) w
38 jednym pliku XML z rozszerzeniem „.ctd”.
41 %setup -q -n %{name}_%{version}
47 -DMAKE_BUILD_TYPE=Release \
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} -C build install \
55 DESTDIR=$RPM_BUILD_ROOT
57 ## Remove old mime registration files
58 %{__rm} $RPM_BUILD_ROOT%{_datadir}/mime-info/cherrytree.*
60 ## Remove unsupported locale
61 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hi_IN,kk_KZ}
65 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
68 %{__rm} -rf $RPM_BUILD_ROOT
71 %update_desktop_database
72 %update_icon_cache hicolor
76 %update_desktop_database
77 %update_icon_cache hicolor
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc changelog.txt license.txt
84 %attr(755,root,root) %{_bindir}/cherrytree
85 %{_datadir}/metainfo/net.giuspen.cherrytree.metainfo.xml
86 %{_desktopdir}/cherrytree.desktop
87 %{_datadir}/cherrytree/
88 %{_iconsdir}/hicolor/scalable/apps/cherrytree.svg
89 %{_mandir}/man1/cherrytree.1*