]> git.pld-linux.org Git - packages/cherrytree.git/blob - cherrytree.spec
d5a9d5e4d9a3c7e8492d6a1b19bad612d4614899
[packages/cherrytree.git] / cherrytree.spec
1 Summary:        A hierarchical note taking application
2 Summary(pl.UTF-8):      Hierarchiczna aplikacja do robienia notatek
3 Name:           cherrytree
4 Version:        0.99.48
5 Release:        2
6 License:        GPL v3+
7 Group:          X11/Applications
8 Source0:        https://www.giuspen.com/software/%{name}_%{version}.tar.xz
9 # Source0-md5:  8a6e6febe29e1429f3b660446bc4b887
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
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
27 Suggests:       p7zip
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
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}
42
43 %build
44 install -d build
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
54 %{__make} -C build install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 ## Remove old mime registration files
58 %{__rm} $RPM_BUILD_ROOT%{_datadir}/mime-info/cherrytree.*
59
60 ## Remove unsupported locale
61 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hi_IN,kk_KZ}
62
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
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*
This page took 0.121417 seconds and 2 git commands to generate.