1 |
Name: minetest |
2 |
Version: 0.4.12 |
3 |
Release: %mkrel 1 |
4 |
Summary: An InfiniMiner/Minecraft inspired game |
5 |
Group: Games/Other |
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 |
Patch0: minetest-0.4.12-mga-desktop.patch |
11 |
Patch1: minetest-0.4.12-mga-deb-i18n.patch |
12 |
|
13 |
BuildRequires: cmake |
14 |
BuildRequires: bzip2-devel |
15 |
BuildRequires: gettext |
16 |
BuildRequires: irrlicht-devel |
17 |
BuildRequires: jpeg-devel |
18 |
# Curl features crash when using system jsoncpp |
19 |
# https://github.com/minetest/minetest/issues/1793 |
20 |
#BuildRequires: jsoncpp-devel |
21 |
BuildRequires: zlib-devel |
22 |
BuildRequires: pkgconfig(freetype2) |
23 |
BuildRequires: pkgconfig(gl) |
24 |
BuildRequires: pkgconfig(leveldb) |
25 |
BuildRequires: pkgconfig(libcurl) |
26 |
BuildRequires: pkgconfig(libpng) |
27 |
BuildRequires: pkgconfig(luajit) |
28 |
BuildRequires: pkgconfig(openal) |
29 |
BuildRequires: pkgconfig(jthread) |
30 |
BuildRequires: pkgconfig(sqlite3) |
31 |
BuildRequires: pkgconfig(vorbisfile) |
32 |
BuildRequires: pkgconfig(x11) |
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 |
%apply_patches |
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 |
-DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread |
60 |
%make |
61 |
|
62 |
%install |
63 |
%makeinstall_std -C build |
64 |
install -d %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
65 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
66 |
|
67 |
rm -rf %{buildroot}%{_gamesdatadir}/%{name}/client/serverlist/.gitignore |
68 |
|
69 |
%find_lang %{name} |
70 |
|
71 |
%files -f %{name}.lang |
72 |
%doc doc/*.txt |
73 |
%{_gamesbindir}/%{name} |
74 |
%{_gamesbindir}/%{name}server |
75 |
%{_gamesdatadir}/%{name}/ |
76 |
%{_datadir}/appdata/%{name}.appdata.xml |
77 |
%{_datadir}/applications/%{name}.desktop |
78 |
%{_iconsdir}/hicolor/scalable/apps/%{name}-icon.svg |
79 |
%{_mandir}/man6/%{name}.6* |
80 |
%{_mandir}/man6/%{name}server.6* |