]>
Commit | Line | Data |
---|---|---|
a0246318 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without evolution # Evolution calendar integration | |
4 | %bcond_without gtkspell # GtkSpell spell checking | |
5 | ||
854bc1f4 JB |
6 | Summary: Almanah Diary - keep a personal diary |
7 | Summary(pl.UTF-8): Almanah Diary - osobisty pamiętnik | |
8 | Name: almanah | |
cbc4127a | 9 | Version: 0.12.3 |
3f413d14 | 10 | Release: 5 |
854bc1f4 JB |
11 | License: GPL v3+ |
12 | Group: X11/Applications | |
cbc4127a JB |
13 | Source0: https://download.gnome.org/sources/almanah/0.12/%{name}-%{version}.tar.xz |
14 | # Source0-md5: b4d6023342f49e23435e06fd54d7fa4c | |
ae9fd647 | 15 | Patch0: %{name}-meson.patch |
854bc1f4 | 16 | URL: https://wiki.gnome.org/Apps/Almanah_Diary |
a0246318 | 17 | BuildRequires: appstream-glib |
854bc1f4 | 18 | BuildRequires: atk-devel |
854bc1f4 | 19 | BuildRequires: cairo-devel |
a0246318 | 20 | %{?with_evolution:BuildRequires: evolution-data-server-devel >= 3.33.2} |
854bc1f4 | 21 | BuildRequires: gettext-tools |
a0246318 JB |
22 | BuildRequires: gcr-devel >= 3 |
23 | BuildRequires: glib2-devel >= 1:2.32 | |
854bc1f4 | 24 | BuildRequires: gpgme-devel >= 1.0.0 |
a0246318 JB |
25 | BuildRequires: gtk+3-devel >= 3.15 |
26 | BuildRequires: gtksourceview3-devel >= 3.0 | |
27 | %{?with_gtkspell:BuildRequires: gtkspell3-devel >= 3.0} | |
854bc1f4 | 28 | BuildRequires: libcryptui-devel |
df43bead | 29 | BuildRequires: meson >= 0.51 |
a0246318 | 30 | BuildRequires: ninja >= 1.5 |
854bc1f4 | 31 | BuildRequires: pkgconfig |
a0246318 JB |
32 | BuildRequires: python3 >= 1:3 |
33 | BuildRequires: rpmbuild(macros) >= 1.736 | |
854bc1f4 JB |
34 | BuildRequires: sqlite3-devel >= 3 |
35 | BuildRequires: tar >= 1:1.22 | |
36 | BuildRequires: xz | |
37 | Requires(post,postun): gtk-update-icon-cache | |
a0246318 JB |
38 | Requires(post,postun): glib2 >= 1:2.32 |
39 | %{?with_evolution:Requires: evolution-data-server >= 3.33.2} | |
40 | Requires: glib2 >= 1:2.32 | |
854bc1f4 | 41 | Requires: gpgme >= 1.0.0 |
a0246318 | 42 | Requires: gtk+3 >= 3.15 |
854bc1f4 JB |
43 | Requires: hicolor-icon-theme |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
47 | Almanah is a small GTK+ application to allow you to keep a diary of | |
48 | your life. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Almanah to mała aplikacja GTK+ pozwalająca prowadzić własny | |
52 | pamiętnik. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
ae9fd647 | 56 | %patch0 -p1 |
854bc1f4 JB |
57 | |
58 | %build | |
a0246318 JB |
59 | %meson build \ |
60 | %{!?with_evolution:-Devolution=false} \ | |
61 | %{!?with_gtkspell:-Dspell_checking=false} | |
854bc1f4 | 62 | |
a0246318 | 63 | %ninja_build -C build |
854bc1f4 JB |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
a0246318 | 68 | %ninja_install -C build |
854bc1f4 JB |
69 | |
70 | %find_lang %{name} | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post | |
76 | %glib_compile_schemas | |
77 | %update_icon_cache hicolor | |
78 | ||
79 | %postun | |
80 | %glib_compile_schemas | |
81 | %update_icon_cache hicolor | |
82 | ||
83 | %files -f %{name}.lang | |
84 | %defattr(644,root,root,755) | |
a0246318 | 85 | %doc AUTHORS MAINTAINERS NEWS README.md |
854bc1f4 JB |
86 | %attr(755,root,root) %{_bindir}/almanah |
87 | %{_datadir}/GConf/gsettings/almanah.convert | |
854bc1f4 | 88 | %{_datadir}/glib-2.0/schemas/org.gnome.almanah.gschema.xml |
a0246318 | 89 | %{_datadir}/metainfo/almanah.appdata.xml |
854bc1f4 JB |
90 | %{_desktopdir}/almanah.desktop |
91 | %{_iconsdir}/hicolor/*x*/apps/almanah.png | |
92 | %{_iconsdir}/hicolor/scalable/actions/almanah-tags-symbolic.svg | |
a0246318 | 93 | %{_iconsdir}/hicolor/scalable/apps/almanah-symbolic.svg |