-
Notifications
You must be signed in to change notification settings - Fork 6
/
jackthejanitor.spec
73 lines (55 loc) · 2.05 KB
/
jackthejanitor.spec
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
Name: jackthejanitor
Version: 1.0.1
Release: 2%{?dist}
Summary: Puzzle game where you have to unstack boxes
Group: Amusements/Games
License: GPLv3+
URL: https://unbgames.lappis.rocks/games/
Source0: https://github.com/athos-ribeiro/jtj/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: make
BuildRequires: gcc
BuildRequires: SDL_image-devel
BuildRequires: SDL-devel
BuildRequires: SDL_ttf-devel
Requires: SDL_image
Requires: SDL
Requires: SDL_ttf
%description
Jack, The Janitor is a puzzle game where the player controls Jack, a school's
janitor who must organize the school's warehouse. Jack can push boxes to the
left or to the right and jump boxes.
When jack fills an entire row with boxes, they disappear from the screen and go
to a small window on the right side of he screen called the closet.
The closet shows how jack organized the rows of boxes. When similar boxes are
combined in the closet, Jack gets extra points and some power ups (to be
implemented).
The game ends if a falling box hits Jack or if the closet gets full.
%prep
%autosetup -n jtj-%{version}
# This is needed so jtj can find the game resources. These changes should be
# applied upstream instead. Also, the game resources should be shipped in a
# different package to comply with the Fedora Project packaging guidelines.
sed -i 's|resources|%{_datadir}/%{name}/resources|g' src/*.cpp
# /usr/share/jackthejanitor/ = +26 characters.
# 26 + 26 = 52
# Note that those string sizes are wrong and should also be fixed upstream.
sed -i 's/26/52/g' src/*.cpp
%build
autoreconf --install
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} resourcesdir=%{_datadir}/%{name}/resources
%files
%{_bindir}/jackthejanitor
%{_datadir}/%{name}
%license COPYING
%doc %{_docdir}/%{name}
%changelog
* Thu Jul 13 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 1.0.1-2
- Package game resources in datadir, as specified in FHS
- Include a Group tag
* Thu Jul 06 2017 Athos Ribeiro <athoscr@fedoraproject.org> - 1.0.1-1
- Initial package