1 |
Name: minetest |
2 |
Version: 0.4.16 |
3 |
Release: %mkrel 4 |
4 |
Summary: An InfiniMiner/Minecraft inspired game |
5 |
Group: Games/Simulation |
6 |
License: LGPLv2+ and CC-BY-SA 3.0 |
7 |
URL: http://minetest.net |
8 |
Source0: https://github.com/minetest/minetest/archive/%{version}/%{name}-%{version}.tar.gz |
9 |
Source1: https://github.com/minetest/minetest_game/archive/%{version}/%{name}_game-%{version}.tar.gz |
10 |
# https://github.com/minetest/minetest/issues/4483 |
11 |
Patch0001: 0001-use-pkg-config-to-find-luajit.patch |
12 |
|
13 |
BuildRequires: cmake |
14 |
BuildRequires: bzip2-devel |
15 |
BuildRequires: gettext |
16 |
BuildRequires: gmp-devel |
17 |
BuildRequires: irrlicht-devel |
18 |
BuildRequires: pkgconfig(jsoncpp) |
19 |
BuildRequires: pkgconfig(freetype2) |
20 |
BuildRequires: pkgconfig(gl) |
21 |
BuildRequires: pkgconfig(jthread) |
22 |
BuildRequires: pkgconfig(leveldb) |
23 |
BuildRequires: pkgconfig(libcurl) |
24 |
BuildRequires: pkgconfig(libjpeg) |
25 |
BuildRequires: pkgconfig(libpng) |
26 |
BuildRequires: pkgconfig(luajit) |
27 |
BuildRequires: pkgconfig(openal) |
28 |
BuildRequires: pkgconfig(ncursesw) |
29 |
BuildRequires: pkgconfig(sqlite3) |
30 |
BuildRequires: pkgconfig(vorbisfile) |
31 |
BuildRequires: pkgconfig(x11) |
32 |
BuildRequires: pkgconfig(zlib) |
33 |
|
34 |
%description |
35 |
One of the first InfiniMiner/Minecraft inspired games with a goal of taking |
36 |
the survival multiplayer gameplay to a slightly different direction. |
37 |
|
38 |
This game is under development, and as of now, the game does not really |
39 |
differ from Minecraft except for having a lot less features. Still, playing |
40 |
is quite fun already, especially for people who have not been able to |
41 |
experience Minecraft. |
42 |
|
43 |
%prep |
44 |
%setup -q -a 1 |
45 |
%autopatch -p1 |
46 |
|
47 |
# purge bundled jsoncpp and lua, and gmp |
48 |
rm -vrf lib/jsoncpp lib/lua lib/gmp |
49 |
|
50 |
%build |
51 |
%cmake -DRUN_IN_PLACE=0 \ |
52 |
-DBUILD_SHARED_LIBS=OFF \ |
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=OFF \ |
61 |
-DENABLE_SOUND:BOOL=ON \ |
62 |
-DENABLE_SYSTEM_GMP:BOOL=ON \ |
63 |
-DENABLE_SYSTEM_JSONCPP:BOOL=ON |
64 |
%make_build |
65 |
|
66 |
%install |
67 |
%make_install -C build |
68 |
install -d %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
69 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
70 |
|
71 |
rm -rf %{buildroot}%{_gamesdatadir}/%{name}/client/serverlist/.gitignore |
72 |
|
73 |
%find_lang %{name} |
74 |
|
75 |
%files -f %{name}.lang |
76 |
%doc doc/*.txt README.txt minetest.conf.example |
77 |
%{_gamesbindir}/%{name} |
78 |
%{_gamesdatadir}/%{name}/ |
79 |
%{_datadir}/applications/net.minetest.%{name}.desktop |
80 |
%{_datadir}/metainfo/net.minetest.%{name}.appdata.xml |
81 |
%{_iconsdir}/hicolor/*/apps/%{name}.* |
82 |
%{_mandir}/man6/%{name}.6* |
83 |
%{_mandir}/man6/%{name}server.6* |