]> git.pld-linux.org Git - packages/almanah.git/blob - almanah.spec
- added meson patch, release 4 (evolution 3.46.x)
[packages/almanah.git] / almanah.spec
1 #
2 # Conditional build:
3 %bcond_without  evolution       # Evolution calendar integration
4 %bcond_without  gtkspell        # GtkSpell spell checking
5
6 Summary:        Almanah Diary - keep a personal diary
7 Summary(pl.UTF-8):      Almanah Diary - osobisty pamiętnik
8 Name:           almanah
9 Version:        0.12.3
10 Release:        3
11 License:        GPL v3+
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
35 BuildRequires:  xz
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)
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
57 %meson build \
58         %{!?with_evolution:-Devolution=false} \
59         %{!?with_gtkspell:-Dspell_checking=false}
60
61 %ninja_build -C build
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %ninja_install -C build
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)
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
This page took 0.074598 seconds and 3 git commands to generate.