1 |
Name: minetest |
2 |
Version: 0.4.15 |
3 |
Release: %mkrel 2 |
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 |
|
11 |
BuildRequires: cmake |
12 |
BuildRequires: bzip2-devel |
13 |
BuildRequires: gettext |
14 |
BuildRequires: gmp-devel |
15 |
BuildRequires: irrlicht-devel |
16 |
BuildRequires: jpeg-devel |
17 |
# Curl features crash when using system jsoncpp |
18 |
# https://github.com/minetest/minetest/issues/1793 |
19 |
#BuildRequires: jsoncpp-devel |
20 |
BuildRequires: pkgconfig(freetype2) |
21 |
BuildRequires: pkgconfig(gl) |
22 |
BuildRequires: pkgconfig(jthread) |
23 |
BuildRequires: pkgconfig(leveldb) |
24 |
BuildRequires: pkgconfig(libcurl) |
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 |
%build |
48 |
%cmake -DRUN_IN_PLACE=0 \ |
49 |
-DBUILD_SHARED_LIBS=OFF \ |
50 |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
51 |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
52 |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
53 |
-DENABLE_CURL:BOOL=ON \ |
54 |
-DENABLE_FREETYPE:BOOL=ON \ |
55 |
-DENABLE_GETTEXT:BOOL=ON \ |
56 |
-DENABLE_LEVELDB:BOOL=ON \ |
57 |
-DENABLE_REDIS:BOOL=OFF \ |
58 |
-DENABLE_SOUND:BOOL=ON |
59 |
%make_build |
60 |
|
61 |
%install |
62 |
%make_install -C build |
63 |
install -d %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
64 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
65 |
|
66 |
rm -rf %{buildroot}%{_gamesdatadir}/%{name}/client/serverlist/.gitignore |
67 |
|
68 |
%find_lang %{name} |
69 |
|
70 |
%files -f %{name}.lang |
71 |
%doc doc/*.txt README.txt minetest.conf.example |
72 |
%{_gamesbindir}/%{name} |
73 |
%{_gamesdatadir}/%{name}/ |
74 |
%{_datadir}/appdata/%{name}.appdata.xml |
75 |
%{_datadir}/applications/%{name}.desktop |
76 |
%{_iconsdir}/hicolor/*/apps/%{name}.* |
77 |
%{_mandir}/man6/%{name}.6* |
78 |
%{_mandir}/man6/%{name}server.6* |