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