1 |
Name: minetest |
Name: minetest |
2 |
Version: 0.4.10 |
Version: 0.4.10 |
3 |
Release: %mkrel 5 |
Release: %mkrel 6 |
4 |
Summary: An InfiniMiner/Minecraft inspired game |
Summary: An InfiniMiner/Minecraft inspired game |
5 |
Group: Games/Other |
Group: Games/Other |
6 |
License: LGPLv2+ and CC-BY-SA 3.0 |
License: LGPLv2+ and CC-BY-SA 3.0 |
7 |
URL: http://minetest.net |
URL: http://minetest.net |
8 |
# Source file from github: https://github.com/minetest/minetest |
Source0: https://github.com/minetest/minetest/%{version}/%{name}-%{version}.tar.gz |
9 |
Source0: %{name}-%{version}.tar.gz |
Source1: https://github.com/minetest/minetest_game/%{version}/%{name}_game-%{version}.tar.gz |
|
# Source file from github: https://github.com/minetest/minetest_game |
|
|
Source1: %{name}_game-%{version}.tar.gz |
|
10 |
# https://github.com/minetest/minetest/pull/954 |
# https://github.com/minetest/minetest/pull/954 |
11 |
Patch1: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch |
#Patch1: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch |
12 |
Patch2: minetest-0.4.7-mga-desktop.patch |
Patch2: minetest-0.4.7-mga-desktop.patch |
13 |
Patch3: minetest-0.4.10-mga-static-cguittfont.patch |
Patch3: minetest-0.4.10-mga-static-cguittfont.patch |
14 |
|
|
15 |
BuildRequires: cmake |
BuildRequires: cmake |
16 |
BuildRequires: bzip2-devel |
BuildRequires: bzip2-devel |
17 |
BuildRequires: gettext-devel |
BuildRequires: gettext |
|
BuildRequires: hiredis-devel |
|
18 |
BuildRequires: irrlicht-devel |
BuildRequires: irrlicht-devel |
19 |
BuildRequires: jpeg-devel |
BuildRequires: jpeg-devel |
20 |
BuildRequires: jsoncpp-devel |
# Curl features crash when using system jsoncpp |
21 |
|
# https://github.com/minetest/minetest/issues/1793 |
22 |
|
#BuildRequires: jsoncpp-devel |
23 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
24 |
BuildRequires: pkgconfig(freetype2) |
BuildRequires: pkgconfig(freetype2) |
25 |
BuildRequires: pkgconfig(gl) |
BuildRequires: pkgconfig(gl) |
26 |
BuildRequires: pkgconfig(leveldb) |
BuildRequires: pkgconfig(leveldb) |
27 |
# Do not enable curl support yet, it induces segfault |
BuildRequires: pkgconfig(libcurl) |
|
#BuildRequires: pkgconfig(libcurl) |
|
28 |
BuildRequires: pkgconfig(libpng) |
BuildRequires: pkgconfig(libpng) |
29 |
BuildRequires: pkgconfig(luajit) |
BuildRequires: pkgconfig(luajit) |
30 |
BuildRequires: pkgconfig(openal) |
BuildRequires: pkgconfig(openal) |
48 |
|
|
49 |
%build |
%build |
50 |
%cmake -DRUN_IN_PLACE=0 \ |
%cmake -DRUN_IN_PLACE=0 \ |
51 |
|
-DBUILD_SHARED_LIBS=OFF \ |
52 |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
53 |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
54 |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
55 |
|
-DENABLE_CURL:BOOL=ON \ |
56 |
-DENABLE_FREETYPE:BOOL=ON \ |
-DENABLE_FREETYPE:BOOL=ON \ |
57 |
-DENABLE_GETTEXT:BOOL=ON \ |
-DENABLE_GETTEXT:BOOL=ON \ |
58 |
-DENABLE_LEVELDB:BOOL=ON \ |
-DENABLE_LEVELDB:BOOL=ON \ |
59 |
-DENABLE_REDIS:BOOL=ON \ |
-DENABLE_REDIS:BOOL=OFF \ |
60 |
-DENABLE_SOUND:BOOL=ON \ |
-DENABLE_SOUND:BOOL=ON \ |
61 |
-DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread |
-DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread |
|
# -DENABLE_CURL:BOOL=ON \ |
|
62 |
%make |
%make |
63 |
|
|
64 |
%install |
%install |