]> git.pld-linux.org Git - packages/almanah.git/blame - almanah.spec
- release 5 (e-d-s 3.52.x)
[packages/almanah.git] / almanah.spec
CommitLineData
a0246318
JB
1#
2# Conditional build:
3%bcond_without evolution # Evolution calendar integration
4%bcond_without gtkspell # GtkSpell spell checking
5
854bc1f4
JB
6Summary: Almanah Diary - keep a personal diary
7Summary(pl.UTF-8): Almanah Diary - osobisty pamiętnik
8Name: almanah
cbc4127a 9Version: 0.12.3
3f413d14 10Release: 5
854bc1f4
JB
11License: GPL v3+
12Group: X11/Applications
cbc4127a
JB
13Source0: https://download.gnome.org/sources/almanah/0.12/%{name}-%{version}.tar.xz
14# Source0-md5: b4d6023342f49e23435e06fd54d7fa4c
ae9fd647 15Patch0: %{name}-meson.patch
854bc1f4 16URL: https://wiki.gnome.org/Apps/Almanah_Diary
a0246318 17BuildRequires: appstream-glib
854bc1f4 18BuildRequires: atk-devel
854bc1f4 19BuildRequires: cairo-devel
a0246318 20%{?with_evolution:BuildRequires: evolution-data-server-devel >= 3.33.2}
854bc1f4 21BuildRequires: gettext-tools
a0246318
JB
22BuildRequires: gcr-devel >= 3
23BuildRequires: glib2-devel >= 1:2.32
854bc1f4 24BuildRequires: gpgme-devel >= 1.0.0
a0246318
JB
25BuildRequires: gtk+3-devel >= 3.15
26BuildRequires: gtksourceview3-devel >= 3.0
27%{?with_gtkspell:BuildRequires: gtkspell3-devel >= 3.0}
854bc1f4 28BuildRequires: libcryptui-devel
df43bead 29BuildRequires: meson >= 0.51
a0246318 30BuildRequires: ninja >= 1.5
854bc1f4 31BuildRequires: pkgconfig
a0246318
JB
32BuildRequires: python3 >= 1:3
33BuildRequires: rpmbuild(macros) >= 1.736
854bc1f4
JB
34BuildRequires: sqlite3-devel >= 3
35BuildRequires: tar >= 1:1.22
36BuildRequires: xz
37Requires(post,postun): gtk-update-icon-cache
a0246318
JB
38Requires(post,postun): glib2 >= 1:2.32
39%{?with_evolution:Requires: evolution-data-server >= 3.33.2}
40Requires: glib2 >= 1:2.32
854bc1f4 41Requires: gpgme >= 1.0.0
a0246318 42Requires: gtk+3 >= 3.15
854bc1f4
JB
43Requires: hicolor-icon-theme
44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
47Almanah is a small GTK+ application to allow you to keep a diary of
48your life.
49
50%description -l pl.UTF-8
51Almanah to mała aplikacja GTK+ pozwalająca prowadzić własny
52pamiętnik.
53
54%prep
55%setup -q
ae9fd647 56%patch0 -p1
854bc1f4
JB
57
58%build
a0246318
JB
59%meson build \
60 %{!?with_evolution:-Devolution=false} \
61 %{!?with_gtkspell:-Dspell_checking=false}
854bc1f4 62
a0246318 63%ninja_build -C build
854bc1f4
JB
64
65%install
66rm -rf $RPM_BUILD_ROOT
67
a0246318 68%ninja_install -C build
854bc1f4
JB
69
70%find_lang %{name}
71
72%clean
73rm -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)
a0246318 85%doc AUTHORS MAINTAINERS NEWS README.md
854bc1f4
JB
86%attr(755,root,root) %{_bindir}/almanah
87%{_datadir}/GConf/gsettings/almanah.convert
854bc1f4 88%{_datadir}/glib-2.0/schemas/org.gnome.almanah.gschema.xml
a0246318 89%{_datadir}/metainfo/almanah.appdata.xml
854bc1f4
JB
90%{_desktopdir}/almanah.desktop
91%{_iconsdir}/hicolor/*x*/apps/almanah.png
92%{_iconsdir}/hicolor/scalable/actions/almanah-tags-symbolic.svg
a0246318 93%{_iconsdir}/hicolor/scalable/apps/almanah-symbolic.svg
This page took 0.116646 seconds and 4 git commands to generate.