]> git.pld-linux.org Git - packages/cherrytree.git/blob - cherrytree.spec
- up to 1.1.2
[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:        1.1.2
5 Release:        1
6 License:        GPL v3+
7 Group:          X11/Applications
8 Source0:        https://www.giuspen.com/software/%{name}_%{version}.tar.xz
9 # Source0-md5:  480f3a4025eed1e55dbad64119f864c2
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 BuildRequires:  vte-devel
22 Requires:       gspell
23 Requires:       gtksourceviewmm3
24 Requires:       libfmt
25 Requires:       libxml++2
26 Requires:       shared-mime-info
27 Requires:       spdlog >= 1:1.8.1
28 Suggests:       p7zip
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 A hierarchical note taking application, featuring rich text and syntax
33 highlighting, storing all the data (including images) in a single xml
34 file with extension ".ctd".
35
36 %description -l pl.UTF-8
37 Hierarchiczna aplikacja do notatek, wspierająca tekst sformatowany i
38 wyróżnianie składni, przechowująca wszystkie dane (w tym obrazy) w
39 jednym pliku XML z rozszerzeniem „.ctd”.
40
41 %prep
42 %setup -q -n %{name}_%{version}
43
44 %build
45 install -d build
46 cd build
47 %cmake .. \
48         -DMAKE_BUILD_TYPE=Release \
49         -DBUILD_TESTING=OFF
50
51 %{__make} cherrytree
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 %{__make} -C build install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 ## Remove old mime registration files
59 %{__rm} $RPM_BUILD_ROOT%{_datadir}/mime-info/cherrytree.*
60
61 ## Remove unsupported locale
62 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{hi_IN,kk_KZ,kk_LA}
63
64 %find_lang %{name}
65
66 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
67
68 %clean
69 %{__rm} -rf $RPM_BUILD_ROOT
70
71 %post
72 %update_desktop_database
73 %update_icon_cache hicolor
74 %update_mime_database
75
76 %postun
77 %update_desktop_database
78 %update_icon_cache hicolor
79 %update_mime_database
80
81
82 %files -f %{name}.lang
83 %defattr(644,root,root,755)
84 %doc changelog.txt license.txt
85 %attr(755,root,root) %{_bindir}/cherrytree
86 %{_datadir}/metainfo/net.giuspen.cherrytree.metainfo.xml
87 %{_desktopdir}/cherrytree.desktop
88 %{_datadir}/cherrytree/
89 %{_iconsdir}/hicolor/scalable/apps/cherrytree.svg
90 %{_mandir}/man1/cherrytree.1*
This page took 0.120804 seconds and 4 git commands to generate.