]> 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:        4
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 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
36 BuildRequires:  xz
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)
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
56 %patch0 -p1
57
58 %build
59 %meson build \
60         %{!?with_evolution:-Devolution=false} \
61         %{!?with_gtkspell:-Dspell_checking=false}
62
63 %ninja_build -C build
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %ninja_install -C build
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)
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
This page took 0.156128 seconds and 4 git commands to generate.