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