summaryrefslogtreecommitdiff
path: root/four-in-a-row.spec
blob: 64760845c0bb3d489d9b02c2bb3a6e11cd42f6b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Summary:	"Four in a row" game for GNOME
Summary(pl.UTF-8):	Gra "cztery w rzędzie" dla GNOME
Name:		four-in-a-row
Version:	3.38.1
Release:	1
License:	GPL v2+
Group:		X11/Applications/Games
Source0:	http://ftp.gnome.org/pub/GNOME/sources/four-in-a-row/3.38/%{name}-%{version}.tar.xz
# Source0-md5:	123e4aadd4a69f8788777e2f691b12d3
URL:		https://wiki.gnome.org/Apps/Four-in-a-row
BuildRequires:	appstream-glib
BuildRequires:	glib2-devel >= 1:2.40.0
BuildRequires:	gsound-devel >= 1.0.2
BuildRequires:	gtk+3-devel >= 3.24.0
BuildRequires:	libcanberra-gtk3-devel >= 0.26
BuildRequires:	librsvg-devel >= 1:2.32.0
BuildRequires:	meson
BuildRequires:	ninja >= 1.5
BuildRequires:	pkgconfig
BuildRequires:	python3 >= 1:3
BuildRequires:	rpmbuild(macros) >= 1.736
BuildRequires:	tar >= 1:1.22
BuildRequires:	vala >= 2:0.22
BuildRequires:	vala-librsvg >= 1:2.32.0
BuildRequires:	xz
BuildRequires:	yelp-tools
Requires(post,postun):	gtk-update-icon-cache
Requires(post,postun):	glib2 >= 1:2.40.0
Requires:	glib2 >= 1:2.40.0
Requires:	gsound >= 1.0.2
Requires:	gtk+3 >= 3.24.0
Requires:	hicolor-icon-theme
Requires:	libcanberra-gtk3 >= 0.26
Requires:	librsvg >= 1:2.32.0
Provides:	gnome-games-gnect = 1:%{version}-%{release}
Obsoletes:	gnect
Obsoletes:	gnome-games-gnect < 1:3.8.0
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Four-in-a-row is a GNOME game which objective is to build a line of
four of your marbles while trying to stop your opponent (human or
computer) from building a line of his or her own.

%description -l pl.UTF-8
Four-in-a-row to gra dla GNOME, której celem jest zbudowanie rzędu
czterech kafelków, a jednocześnie powstrzymanie przeciwnika (człowieka
lub komputera) od zbudowania własnego rzędu.

%prep
%setup -q

%build
%meson build

%ninja_build -C build

%install
rm -rf $RPM_BUILD_ROOT

%ninja_install -C build

%find_lang %{name} --with-gnome

%clean
rm -rf $RPM_BUILD_ROOT

%post
%glib_compile_schemas
%update_icon_cache hicolor

%postun
%glib_compile_schemas
%update_icon_cache hicolor

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc COPYING.themes NEWS README.md
%attr(755,root,root) %{_bindir}/four-in-a-row
%{_datadir}/dbus-1/services/org.gnome.Four-in-a-row.service
%{_datadir}/glib-2.0/schemas/org.gnome.Four-in-a-row.gschema.xml
%{_datadir}/four-in-a-row
%{_datadir}/metainfo/org.gnome.Four-in-a-row.appdata.xml
%{_desktopdir}/org.gnome.Four-in-a-row.desktop
%{_iconsdir}/hicolor/*x*/apps/org.gnome.Four-in-a-row.png
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Four-in-a-row-symbolic.svg
%{_mandir}/man6/four-in-a-row.6*