1 | Name: 2048
|
---|
2 | Version: 1.6.0
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Summary: A classic 2048 block sliding puzzle game.
|
---|
5 |
|
---|
6 | Group: Games/Logic
|
---|
7 | License: Public Domain
|
---|
8 | URL: https://app.zdechov.net/2048
|
---|
9 | Source0: 2048.tar.gz
|
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
11 |
|
---|
12 | #BuildRequires: lazarus
|
---|
13 |
|
---|
14 | %description
|
---|
15 | Move numbered blocks across board to merge blocks with the same number together to reach 2048 tile.
|
---|
16 |
|
---|
17 | Features:
|
---|
18 | * Selectable board size (from 2x2 to 12x12).
|
---|
19 | * Last move undo.
|
---|
20 | * Keep game between application restarts.
|
---|
21 | * Localization support (English, Czech, French, Spanish).
|
---|
22 | * High DPI support.
|
---|
23 | * Moves history recording.
|
---|
24 | * Dark and light themes.
|
---|
25 | * Tiles move, merge and creation animation.
|
---|
26 | * Selectable tile skins (linear, exponential, alpha, binary, Roman)
|
---|
27 | * Optional randomly generated unmergeable tiles
|
---|
28 | * Optional randomly generated disabled tiles
|
---|
29 | * Detailed score list for previous games
|
---|
30 |
|
---|
31 | %global debug_package %{nil}
|
---|
32 |
|
---|
33 | %prep
|
---|
34 | %setup -q -c $(RPM_NAME)-$(RPM_VERSION)
|
---|
35 |
|
---|
36 |
|
---|
37 | %build
|
---|
38 | lazbuild --build-mode=Release Game2048.lpi
|
---|
39 |
|
---|
40 | %install
|
---|
41 | rm -rf $RPM_BUILD_ROOT
|
---|
42 | install -d -m 755 $RPM_BUILD_ROOT/usr/bin
|
---|
43 | install -s -m 755 Game2048 $RPM_BUILD_ROOT/usr/bin/Game2048
|
---|
44 | install -d -m 755 $RPM_BUILD_ROOT/usr/share/Game2048/languages
|
---|
45 | install -m 744 Languages/*.po $RPM_BUILD_ROOT/usr/share/Game2048/languages
|
---|
46 | install -m 744 Packages/Common/Languages/*.po $RPM_BUILD_ROOT/usr/share/Game2048/languages
|
---|
47 | install -d -m 755 $RPM_BUILD_ROOT/usr/share/applications
|
---|
48 | install -m 744 Install/deb/2048.desktop $RPM_BUILD_ROOT/usr/share/applications
|
---|
49 | install -d -m 755 $RPM_BUILD_ROOT/usr/share/pixmaps
|
---|
50 | install -m 744 Images/2048.png $RPM_BUILD_ROOT/usr/share/pixmaps
|
---|
51 |
|
---|
52 | %clean
|
---|
53 | rm -rf $RPM_BUILD_ROOT
|
---|
54 |
|
---|
55 |
|
---|
56 | %files
|
---|
57 | %defattr(-,root,root,-)
|
---|
58 | /usr/bin/Game2048
|
---|
59 | /usr/share/applications/2048.desktop
|
---|
60 | /usr/share/Game2048/*
|
---|
61 | /usr/share/pixmaps/2048.png
|
---|
62 |
|
---|
63 | %changelog
|
---|