1 |
%define game_version %{version} |
%define game_version %{version} |
2 |
|
%define irrlichtmt_version 1.9.0mt8 |
3 |
|
|
4 |
Name: minetest |
Name: minetest |
5 |
Version: 5.4.1 |
Version: 5.6.1 |
6 |
Release: %mkrel 1 |
Release: %mkrel 1 |
7 |
Summary: Open source voxel game engine and InfiniMiner/Minecraft-inspired game |
Summary: Open source voxel game engine and InfiniMiner/Minecraft-inspired game |
8 |
Group: Games/Simulation |
Group: Games/Simulation |
9 |
License: LGPLv2+ and CC-BY-SA 3.0 |
License: LGPLv2+ and CC-BY-SA 3.0 |
10 |
URL: http://minetest.net |
URL: https://minetest.net/ |
11 |
Source0: https://github.com/minetest/minetest/archive/%{version}/%{name}-%{version}.tar.gz |
Source0: https://github.com/minetest/minetest/archive/%{version}/%{name}-%{version}.tar.gz |
12 |
Source1: https://github.com/minetest/minetest_game/archive/%{version}/%{name}_game-%{game_version}.tar.gz |
Source1: https://github.com/minetest/minetest_game/archive/%{version}/%{name}_game-%{game_version}.tar.gz |
13 |
|
# Now using its own Minetest-specific fork of irrlicht. |
14 |
|
Source2: https://github.com/minetest/irrlicht/archive/%{irrlichtmt_version}/irrlicht-%{irrlichtmt_version}.tar.gz |
15 |
|
|
16 |
BuildRequires: cmake |
BuildRequires: cmake |
17 |
BuildRequires: bzip2-devel |
BuildRequires: bzip2-devel |
18 |
BuildRequires: gettext |
BuildRequires: gettext |
19 |
BuildRequires: gmp-devel |
BuildRequires: gmp-devel |
|
BuildRequires: irrlicht-devel |
|
20 |
BuildRequires: pkgconfig(jsoncpp) |
BuildRequires: pkgconfig(jsoncpp) |
21 |
BuildRequires: pkgconfig(freetype2) |
BuildRequires: pkgconfig(freetype2) |
22 |
BuildRequires: pkgconfig(gl) |
BuildRequires: pkgconfig(gl) |
24 |
BuildRequires: pkgconfig(libcurl) |
BuildRequires: pkgconfig(libcurl) |
25 |
BuildRequires: pkgconfig(libjpeg) |
BuildRequires: pkgconfig(libjpeg) |
26 |
BuildRequires: pkgconfig(libpng) |
BuildRequires: pkgconfig(libpng) |
27 |
|
BuildRequires: pkgconfig(libzstd) |
28 |
BuildRequires: pkgconfig(luajit) |
BuildRequires: pkgconfig(luajit) |
29 |
BuildRequires: pkgconfig(openal) |
BuildRequires: pkgconfig(openal) |
30 |
BuildRequires: pkgconfig(ncursesw) |
BuildRequires: pkgconfig(ncursesw) |
31 |
BuildRequires: pkgconfig(sqlite3) |
BuildRequires: pkgconfig(sqlite3) |
32 |
BuildRequires: pkgconfig(vorbisfile) |
BuildRequires: pkgconfig(vorbisfile) |
33 |
BuildRequires: pkgconfig(x11) |
BuildRequires: pkgconfig(x11) |
34 |
|
BuildRequires: pkgconfig(xi) |
35 |
BuildRequires: pkgconfig(zlib) |
BuildRequires: pkgconfig(zlib) |
36 |
|
|
37 |
|
# Extra deps for irrlichtMT: |
38 |
|
BuildRequires: pkgconfig(xcursor) |
39 |
|
BuildRequires: pkgconfig(xext) |
40 |
|
BuildRequires: pkgconfig(xft) |
41 |
|
BuildRequires: pkgconfig(xxf86vm) |
42 |
|
|
43 |
%description |
%description |
44 |
Minetest in an open source voxel game engine. You can play one of the many |
Minetest in an open source voxel game engine. You can play one of the many |
45 |
games designed by its community, mod a game to your liking, make your own |
games designed by its community, mod a game to your liking, make your own |
49 |
mods, which should provide a gaming experience similar to Minecraft. |
mods, which should provide a gaming experience similar to Minecraft. |
50 |
|
|
51 |
%prep |
%prep |
52 |
%autosetup -p1 -a 1 |
# autosetup can't handle multiple -a arguments sources... |
53 |
|
%setup -q -a 1 -a 2 |
54 |
|
%autopatch -p1 |
55 |
|
|
56 |
|
mv irrlicht-%{irrlichtmt_version} lib/irrlichtmt |
57 |
|
|
58 |
# purge bundled jsoncpp and lua, and gmp |
# purge bundled jsoncpp and lua, and gmp |
59 |
rm -rf lib/jsoncpp lib/lua lib/gmp |
rm -rf lib/jsoncpp lib/lua lib/gmp |
60 |
|
|
61 |
%build |
%build |
62 |
%cmake \ |
%cmake \ |
63 |
-DRUN_IN_PLACE=0 \ |
-DBUILD_SHARED_LIBS:BOOL=OFF \ |
|
-DBUILD_SHARED_LIBS=OFF \ |
|
64 |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
65 |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
66 |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |