]>
Commit | Line | Data |
---|---|---|
c0925c66 | 1 | # TODO: use gtk4-update-icon-cache |
0f73612b JB |
2 | Summary: GNOME Nibbles - classic snake game |
3 | Summary(pl.UTF-8): Nibbles dla GNOME - klasyczna gra w węża | |
4 | Name: gnome-nibbles | |
40086541 | 5 | Version: 4.0.3 |
166d9850 | 6 | Release: 1 |
89a6b8e7 | 7 | License: GPL v3+ |
0f73612b | 8 | Group: X11/Applications/Games |
c0925c66 | 9 | Source0: https://download.gnome.org/sources/gnome-nibbles/4.0/%{name}-%{version}.tar.xz |
40086541 | 10 | # Source0-md5: c000d7db2943f506e88653637719aa73 |
0f73612b | 11 | URL: https://wiki.gnome.org/Apps/Nibbles |
89a6b8e7 | 12 | BuildRequires: appstream-glib |
89a6b8e7 | 13 | BuildRequires: gettext-tools |
c0925c66 | 14 | BuildRequires: glib2-devel >= 1:2.66.0 |
89a6b8e7 | 15 | BuildRequires: gsound-devel >= 1.0.2 |
c0925c66 JB |
16 | BuildRequires: gtk4-devel >= 4.6 |
17 | BuildRequires: libgnome-games-support2-devel >= 2.0.0 | |
5980de3f | 18 | BuildRequires: libgee-devel >= 0.8 |
89a6b8e7 | 19 | BuildRequires: librsvg-devel >= 1:2.32.0 |
c0925c66 | 20 | BuildRequires: meson >= 0.62 |
89a6b8e7 | 21 | BuildRequires: ninja >= 1.5 |
c0925c66 | 22 | BuildRequires: pango-devel >= 1:1.10 |
0f73612b | 23 | BuildRequires: pkgconfig |
89a6b8e7 JB |
24 | BuildRequires: rpmbuild(macros) >= 1.736 |
25 | BuildRequires: tar >= 1:1.22 | |
c0925c66 | 26 | BuildRequires: vala >= 2:0.44 |
89a6b8e7 JB |
27 | BuildRequires: vala-gsound >= 1.0.2 |
28 | BuildRequires: vala-libgee >= 0.8 | |
c0925c66 | 29 | BuildRequires: vala-libgnome-games-support2 >= 2.0.0 |
89a6b8e7 | 30 | BuildRequires: xz |
0f73612b JB |
31 | BuildRequires: yelp-tools |
32 | Requires(post,postun): gtk-update-icon-cache | |
c0925c66 JB |
33 | Requires(post,postun): glib2 >= 1:2.66.0 |
34 | Requires: glib2 >= 1:2.66.0 | |
89a6b8e7 | 35 | Requires: gsound >= 1.0.2 |
c0925c66 | 36 | Requires: gtk4 >= 4.6 |
0f73612b | 37 | Requires: hicolor-icon-theme |
c0925c66 | 38 | Requires: libgnome-games-support2 >= 2.0.0 |
89a6b8e7 | 39 | Requires: librsvg >= 1:2.32.0 |
0f73612b JB |
40 | Provides: gnome-games-gnibbles = 1:%{version}-%{release} |
41 | Obsoletes: gnome-games-gnibbles < 1:3.8.0 | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | GNOME Nibbles is a game where the user controls a snake. The snake | |
46 | moves around the board, eating diamonds while avoiding the walls | |
2c42335d | 47 | placed around it. |
0f73612b JB |
48 | |
49 | %description -l pl.UTF-8 | |
50 | GNOME Nibbles to gra, w której użytkownik steruje wężem. Wąż | |
51 | przemieszcza się po planszy zjadając diamenty, unikając zderzeń ze | |
52 | ścianami. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | ||
57 | %build | |
89a6b8e7 | 58 | %meson build |
0f73612b | 59 | |
89a6b8e7 | 60 | %ninja_build -C build |
0f73612b JB |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
89a6b8e7 | 65 | %ninja_install -C build |
0f73612b JB |
66 | |
67 | %find_lang %{name} --with-gnome | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
73 | %glib_compile_schemas | |
0f73612b JB |
74 | %update_icon_cache hicolor |
75 | ||
76 | %postun | |
77 | %glib_compile_schemas | |
0f73612b JB |
78 | %update_icon_cache hicolor |
79 | ||
80 | %files -f %{name}.lang | |
81 | %defattr(644,root,root,755) | |
82 | %doc NEWS | |
83 | %attr(755,root,root) %{_bindir}/gnome-nibbles | |
93130859 JB |
84 | %{_datadir}/dbus-1/services/org.gnome.Nibbles.service |
85 | %{_datadir}/glib-2.0/schemas/org.gnome.Nibbles.gschema.xml | |
0f73612b | 86 | %{_datadir}/gnome-nibbles |
166d9850 | 87 | %{_datadir}/metainfo/org.gnome.Nibbles.appdata.xml |
2c42335d | 88 | %{_desktopdir}/org.gnome.Nibbles.desktop |
89a6b8e7 JB |
89 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Nibbles.svg |
90 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Nibbles-symbolic.svg | |
0f73612b | 91 | %{_mandir}/man6/gnome-nibbles.6* |