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 URL: https://wiki.gnome.org/Apps/Almanah_Diary
16 BuildRequires: appstream-glib
17 BuildRequires: atk-devel
18 BuildRequires: cairo-devel
19 %{?with_evolution:BuildRequires: evolution-data-server-devel >= 3.33.2}
20 BuildRequires: gettext-tools
21 BuildRequires: gcr-devel >= 3
22 BuildRequires: glib2-devel >= 1:2.32
23 BuildRequires: gpgme-devel >= 1.0.0
24 BuildRequires: gtk+3-devel >= 3.15
25 BuildRequires: gtksourceview3-devel >= 3.0
26 %{?with_gtkspell:BuildRequires: gtkspell3-devel >= 3.0}
27 BuildRequires: libcryptui-devel
28 BuildRequires: meson >= 0.51
29 BuildRequires: ninja >= 1.5
30 BuildRequires: pkgconfig
31 BuildRequires: python3 >= 1:3
32 BuildRequires: rpmbuild(macros) >= 1.736
33 BuildRequires: sqlite3-devel >= 3
34 BuildRequires: tar >= 1:1.22
36 Requires(post,postun): gtk-update-icon-cache
37 Requires(post,postun): glib2 >= 1:2.32
38 %{?with_evolution:Requires: evolution-data-server >= 3.33.2}
39 Requires: glib2 >= 1:2.32
40 Requires: gpgme >= 1.0.0
41 Requires: gtk+3 >= 3.15
42 Requires: hicolor-icon-theme
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Almanah is a small GTK+ application to allow you to keep a diary of
49 %description -l pl.UTF-8
50 Almanah to mała aplikacja GTK+ pozwalająca prowadzić własny
58 %{!?with_evolution:-Devolution=false} \
59 %{!?with_gtkspell:-Dspell_checking=false}
64 rm -rf $RPM_BUILD_ROOT
66 %ninja_install -C build
71 rm -rf $RPM_BUILD_ROOT
75 %update_icon_cache hicolor
79 %update_icon_cache hicolor
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc AUTHORS MAINTAINERS NEWS README.md
84 %attr(755,root,root) %{_bindir}/almanah
85 %{_datadir}/GConf/gsettings/almanah.convert
86 %{_datadir}/glib-2.0/schemas/org.gnome.almanah.gschema.xml
87 %{_datadir}/metainfo/almanah.appdata.xml
88 %{_desktopdir}/almanah.desktop
89 %{_iconsdir}/hicolor/*x*/apps/almanah.png
90 %{_iconsdir}/hicolor/scalable/actions/almanah-tags-symbolic.svg
91 %{_iconsdir}/hicolor/scalable/apps/almanah-symbolic.svg