1 |
Name: minetest |
Name: minetest |
2 |
Version: 0.4.10 |
Version: 0.4.10 |
3 |
Release: %mkrel 2 |
Release: %mkrel 3 |
4 |
Summary: An InfiniMiner/Minecraft inspired game |
Summary: An InfiniMiner/Minecraft inspired game |
5 |
Group: Games/Other |
Group: Games/Other |
6 |
License: GPLv2+ |
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 |
# Source file from github: https://github.com/minetest/minetest |
9 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
12 |
# https://github.com/minetest/minetest/pull/954 |
# https://github.com/minetest/minetest/pull/954 |
13 |
Patch1: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch |
Patch1: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch |
14 |
Patch2: minetest-0.4.7-mga-desktop.patch |
Patch2: minetest-0.4.7-mga-desktop.patch |
15 |
|
Patch3: minetest-0.4.10-mga-static-cguittfont.patch |
16 |
|
|
17 |
BuildRequires: cmake |
BuildRequires: cmake |
18 |
BuildRequires: bzip2-devel |
BuildRequires: bzip2-devel |
22 |
BuildRequires: jpeg-devel |
BuildRequires: jpeg-devel |
23 |
BuildRequires: jsoncpp-devel |
BuildRequires: jsoncpp-devel |
24 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
25 |
|
BuildRequires: pkgconfig(freetype2) |
26 |
BuildRequires: pkgconfig(gl) |
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) |
BuildRequires: pkgconfig(libpng) |
31 |
BuildRequires: pkgconfig(luajit) |
BuildRequires: pkgconfig(luajit) |
32 |
BuildRequires: pkgconfig(openal) |
BuildRequires: pkgconfig(openal) |
53 |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
54 |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
55 |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
56 |
|
# -DENABLE_CURL:BOOL=ON \ |
57 |
|
-DENABLE_FREETYPE:BOOL=ON \ |
58 |
-DENABLE_GETTEXT:BOOL=ON \ |
-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 |
-DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread |
63 |
%make |
%make |
64 |
|
|
67 |
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
68 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
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} |
%find_lang %{name} |
73 |
# Needed for now to locate the translations in system dir |
# Needed for now to locate the translations in system dir |
74 |
ln -s %{_datadir}/locale %{buildroot}%{_gamesdatadir}/%{name}/locale |
ln -s %{_datadir}/locale %{buildroot}%{_gamesdatadir}/%{name}/locale |