1 |
Name: minetest |
2 |
Version: 0.4.10 |
3 |
Release: %mkrel 3 |
4 |
Summary: An InfiniMiner/Minecraft inspired game |
5 |
Group: Games/Other |
6 |
License: LGPLv2+ and CC-BY-SA 3.0 |
7 |
URL: http://minetest.net |
8 |
# Source file from github: https://github.com/minetest/minetest |
9 |
Source0: %{name}-%{version}.tar.gz |
10 |
# Source file from github: https://github.com/minetest/minetest_game |
11 |
Source1: %{name}_game-%{version}.tar.gz |
12 |
# https://github.com/minetest/minetest/pull/954 |
13 |
Patch1: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch |
14 |
Patch2: minetest-0.4.7-mga-desktop.patch |
15 |
Patch3: minetest-0.4.10-mga-static-cguittfont.patch |
16 |
|
17 |
BuildRequires: cmake |
18 |
BuildRequires: bzip2-devel |
19 |
BuildRequires: gettext-devel |
20 |
BuildRequires: hiredis-devel |
21 |
BuildRequires: irrlicht-devel |
22 |
BuildRequires: jpeg-devel |
23 |
BuildRequires: jsoncpp-devel |
24 |
BuildRequires: zlib-devel |
25 |
BuildRequires: pkgconfig(freetype2) |
26 |
BuildRequires: pkgconfig(gl) |
27 |
BuildRequires: pkgconfig(leveldb) |
28 |
# Do not enable curl support yet, it induces segfault |
29 |
#BuildRequires: pkgconfig(libcurl) |
30 |
BuildRequires: pkgconfig(libpng) |
31 |
BuildRequires: pkgconfig(luajit) |
32 |
BuildRequires: pkgconfig(openal) |
33 |
BuildRequires: pkgconfig(jthread) |
34 |
BuildRequires: pkgconfig(sqlite3) |
35 |
BuildRequires: pkgconfig(vorbisfile) |
36 |
BuildRequires: pkgconfig(x11) |
37 |
|
38 |
%description |
39 |
One of the first InfiniMiner/Minecraft inspired games with a goal of taking |
40 |
the survival multiplayer gameplay to a slightly different direction. |
41 |
|
42 |
This game is under development, and as of now, the game does not really |
43 |
differ from Minecraft except for having a lot less features. Still, playing |
44 |
is quite fun already, especially for people who have not been able to |
45 |
experience Minecraft. |
46 |
|
47 |
%prep |
48 |
%setup -q -a 1 |
49 |
%apply_patches |
50 |
|
51 |
%build |
52 |
%cmake -DRUN_IN_PLACE=0 \ |
53 |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
54 |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
55 |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
56 |
# -DENABLE_CURL:BOOL=ON \ |
57 |
-DENABLE_FREETYPE:BOOL=ON \ |
58 |
-DENABLE_GETTEXT:BOOL=ON \ |
59 |
-DENABLE_LEVELDB:BOOL=ON \ |
60 |
-DENABLE_REDIS:BOOL=ON \ |
61 |
-DENABLE_SOUND:BOOL=ON \ |
62 |
-DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread |
63 |
%make |
64 |
|
65 |
%install |
66 |
%makeinstall_std -C build |
67 |
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
68 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
69 |
|
70 |
rm -rf %{buildroot}%{_gamesdatadir}/%{name}/client/serverlist/.gitignore |
71 |
|
72 |
%find_lang %{name} |
73 |
# Needed for now to locate the translations in system dir |
74 |
ln -s %{_datadir}/locale %{buildroot}%{_gamesdatadir}/%{name}/locale |
75 |
|
76 |
%files -f %{name}.lang |
77 |
%doc doc/*.txt |
78 |
%{_gamesbindir}/%{name} |
79 |
%{_gamesbindir}/%{name}server |
80 |
%{_gamesdatadir}/%{name}/ |
81 |
%{_datadir}/appdata/%{name}.appdata.xml |
82 |
%{_datadir}/applications/%{name}.desktop |
83 |
%{_iconsdir}/hicolor/scalable/apps/%{name}-icon.svg |
84 |
%{_mandir}/man6/%{name}.6* |
85 |
%{_mandir}/man6/%{name}server.6* |