]>
Commit | Line | Data |
---|---|---|
bb588342 KM |
1 | Summary: A hierarchical note taking application |
2 | Summary(pl.UTF-8): Hierarchiczna aplikacja do robienia notatek | |
3 | Name: cherrytree | |
42354f54 | 4 | Version: 0.99.51 |
e4f7e060 | 5 | Release: 1 |
bb588342 KM |
6 | License: GPL v3+ |
7 | Group: X11/Applications | |
aa4b1484 | 8 | Source0: https://www.giuspen.com/software/%{name}_%{version}.tar.xz |
42354f54 | 9 | # Source0-md5: de62d6ec2d546dfd6068c7830e74b7a6 |
aa4b1484 | 10 | URL: https://www.giuspen.com/cherrytree/ |
bb588342 KM |
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 | |
bb588342 KM |
21 | Requires: gspell |
22 | Requires: gtksourceviewmm3 | |
23 | Requires: libfmt | |
24 | Requires: libxml++2 | |
25 | Requires: shared-mime-info | |
26 | Requires: spdlog >= 1:1.8.1 | |
bb588342 KM |
27 | Suggests: p7zip |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
bb588342 KM |
30 | %description |
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". | |
34 | ||
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”. | |
39 | ||
40 | %prep | |
41 | %setup -q -n %{name}_%{version} | |
bb588342 KM |
42 | |
43 | %build | |
aa4b1484 | 44 | install -d build |
bb588342 KM |
45 | cd build |
46 | %cmake .. \ | |
47 | -DMAKE_BUILD_TYPE=Release \ | |
48 | -DBUILD_TESTING=OFF | |
49 | ||
50 | %{__make} cherrytree | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
aa4b1484 ER |
54 | %{__make} -C build install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
bb588342 KM |
56 | |
57 | ## Remove old mime registration files | |
58 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/mime-info/cherrytree.* | |
59 | ||
171fcfe6 | 60 | ## Remove unsupported locale |
b8f59015 | 61 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hi_IN,kk_KZ,kk_LA} |
171fcfe6 | 62 | |
bb588342 KM |
63 | %find_lang %{name} |
64 | ||
65 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
66 | ||
67 | %clean | |
68 | %{__rm} -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post | |
71 | %update_desktop_database | |
72 | %update_icon_cache hicolor | |
73 | %update_mime_database | |
74 | ||
75 | %postun | |
76 | %update_desktop_database | |
77 | %update_icon_cache hicolor | |
78 | %update_mime_database | |
79 | ||
80 | ||
81 | %files -f %{name}.lang | |
82 | %defattr(644,root,root,755) | |
83 | %doc changelog.txt license.txt | |
84 | %attr(755,root,root) %{_bindir}/cherrytree | |
5adc314b | 85 | %{_datadir}/metainfo/net.giuspen.cherrytree.metainfo.xml |
bb588342 KM |
86 | %{_desktopdir}/cherrytree.desktop |
87 | %{_datadir}/cherrytree/ | |
88 | %{_iconsdir}/hicolor/scalable/apps/cherrytree.svg | |
89 | %{_mandir}/man1/cherrytree.1* |