source: trunk/Install/rpm/2048.spec

Last change on this file was 126, checked in by chronos, 6 weeks ago
  • Fixed: Wrong RPM .desktop file location.
File size: 1.9 KB
Line 
1Name: 2048
2Version: 1.6.0
3Release: 1%{?dist}
4Summary: A classic 2048 block sliding puzzle game.
5
6Group: Games/Logic
7License: Public Domain
8URL: https://app.zdechov.net/2048
9Source0: 2048.tar.gz
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12#BuildRequires: lazarus
13
14%description
15Move numbered blocks across board to merge blocks with the same number together to reach 2048 tile.
16
17Features:
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
38lazbuild --build-mode=Release Game2048.lpi
39
40%install
41rm -rf $RPM_BUILD_ROOT
42install -d -m 755 $RPM_BUILD_ROOT/usr/bin
43install -s -m 755 Game2048 $RPM_BUILD_ROOT/usr/bin/Game2048
44install -d -m 755 $RPM_BUILD_ROOT/usr/share/Game2048/languages
45install -m 744 Languages/*.po $RPM_BUILD_ROOT/usr/share/Game2048/languages
46install -m 744 Packages/Common/Languages/*.po $RPM_BUILD_ROOT/usr/share/Game2048/languages
47install -d -m 755 $RPM_BUILD_ROOT/usr/share/applications
48install -m 744 Install/deb/2048.desktop $RPM_BUILD_ROOT/usr/share/applications
49install -d -m 755 $RPM_BUILD_ROOT/usr/share/pixmaps
50install -m 744 Images/2048.png $RPM_BUILD_ROOT/usr/share/pixmaps
51
52%clean
53rm -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
Note: See TracBrowser for help on using the repository browser.