3 %bcond_without evolution # Evolution calendar integration
4 %bcond_without gtkspell # GtkSpell spell checking
6 Summary: Almanah Diary - keep a personal diary
7 Summary(pl.UTF-8): Almanah Diary - osobisty pamiętnik
12 Group: X11/Applications
13 Source0: https://download.gnome.org/sources/almanah/0.12/%{name}-%{version}.tar.xz
14 # Source0-md5: b4d6023342f49e23435e06fd54d7fa4c
15 Patch0: %{name}-meson.patch
16 URL: https://wiki.gnome.org/Apps/Almanah_Diary
17 BuildRequires: appstream-glib
18 BuildRequires: atk-devel
19 BuildRequires: cairo-devel
20 %{?with_evolution:BuildRequires: evolution-data-server-devel >= 3.33.2}
21 BuildRequires: gettext-tools
22 BuildRequires: gcr-devel >= 3
23 BuildRequires: glib2-devel >= 1:2.32
24 BuildRequires: gpgme-devel >= 1.0.0
25 BuildRequires: gtk+3-devel >= 3.15
26 BuildRequires: gtksourceview3-devel >= 3.0
27 %{?with_gtkspell:BuildRequires: gtkspell3-devel >= 3.0}
28 BuildRequires: libcryptui-devel
29 BuildRequires: meson >= 0.51
30 BuildRequires: ninja >= 1.5
31 BuildRequires: pkgconfig
32 BuildRequires: python3 >= 1:3
33 BuildRequires: rpmbuild(macros) >= 1.736
34 BuildRequires: sqlite3-devel >= 3
35 BuildRequires: tar >= 1:1.22
37 Requires(post,postun): gtk-update-icon-cache
38 Requires(post,postun): glib2 >= 1:2.32
39 %{?with_evolution:Requires: evolution-data-server >= 3.33.2}
40 Requires: glib2 >= 1:2.32
41 Requires: gpgme >= 1.0.0
42 Requires: gtk+3 >= 3.15
43 Requires: hicolor-icon-theme
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Almanah is a small GTK+ application to allow you to keep a diary of
50 %description -l pl.UTF-8
51 Almanah to mała aplikacja GTK+ pozwalająca prowadzić własny
60 %{!?with_evolution:-Devolution=false} \
61 %{!?with_gtkspell:-Dspell_checking=false}
66 rm -rf $RPM_BUILD_ROOT
68 %ninja_install -C build
73 rm -rf $RPM_BUILD_ROOT
77 %update_icon_cache hicolor
81 %update_icon_cache hicolor
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc AUTHORS MAINTAINERS NEWS README.md
86 %attr(755,root,root) %{_bindir}/almanah
87 %{_datadir}/GConf/gsettings/almanah.convert
88 %{_datadir}/glib-2.0/schemas/org.gnome.almanah.gschema.xml
89 %{_datadir}/metainfo/almanah.appdata.xml
90 %{_desktopdir}/almanah.desktop
91 %{_iconsdir}/hicolor/*x*/apps/almanah.png
92 %{_iconsdir}/hicolor/scalable/actions/almanah-tags-symbolic.svg
93 %{_iconsdir}/hicolor/scalable/apps/almanah-symbolic.svg