1 |
Name: minetest |
2 |
Version: 0.4.16 |
3 |
Release: %mkrel 3 |
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: pkgconfig(jsoncpp) |
17 |
BuildRequires: pkgconfig(freetype2) |
18 |
BuildRequires: pkgconfig(gl) |
19 |
BuildRequires: pkgconfig(jthread) |
20 |
BuildRequires: pkgconfig(leveldb) |
21 |
BuildRequires: pkgconfig(libcurl) |
22 |
BuildRequires: pkgconfig(libjpeg) |
23 |
BuildRequires: pkgconfig(libpng) |
24 |
BuildRequires: pkgconfig(luajit) |
25 |
BuildRequires: pkgconfig(openal) |
26 |
BuildRequires: pkgconfig(ncursesw) |
27 |
BuildRequires: pkgconfig(sqlite3) |
28 |
BuildRequires: pkgconfig(vorbisfile) |
29 |
BuildRequires: pkgconfig(x11) |
30 |
BuildRequires: pkgconfig(zlib) |
31 |
|
32 |
%description |
33 |
One of the first InfiniMiner/Minecraft inspired games with a goal of taking |
34 |
the survival multiplayer gameplay to a slightly different direction. |
35 |
|
36 |
This game is under development, and as of now, the game does not really |
37 |
differ from Minecraft except for having a lot less features. Still, playing |
38 |
is quite fun already, especially for people who have not been able to |
39 |
experience Minecraft. |
40 |
|
41 |
%prep |
42 |
%setup -q -a 1 |
43 |
%autopatch -p1 |
44 |
|
45 |
%build |
46 |
%cmake -DRUN_IN_PLACE=0 \ |
47 |
-DBUILD_SHARED_LIBS=OFF \ |
48 |
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
49 |
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
50 |
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
51 |
-DENABLE_CURL:BOOL=ON \ |
52 |
-DENABLE_FREETYPE:BOOL=ON \ |
53 |
-DENABLE_GETTEXT:BOOL=ON \ |
54 |
-DENABLE_LEVELDB:BOOL=ON \ |
55 |
-DENABLE_REDIS:BOOL=OFF \ |
56 |
-DENABLE_SOUND:BOOL=ON \ |
57 |
-DENABLE_SYSTEM_JSONCPP:BOOL=ON |
58 |
%make_build |
59 |
|
60 |
%install |
61 |
%make_install -C build |
62 |
install -d %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
63 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
64 |
|
65 |
rm -rf %{buildroot}%{_gamesdatadir}/%{name}/client/serverlist/.gitignore |
66 |
|
67 |
%find_lang %{name} |
68 |
|
69 |
%files -f %{name}.lang |
70 |
%doc doc/*.txt README.txt minetest.conf.example |
71 |
%{_gamesbindir}/%{name} |
72 |
%{_gamesdatadir}/%{name}/ |
73 |
%{_datadir}/applications/net.minetest.%{name}.desktop |
74 |
%{_datadir}/metainfo/net.minetest.%{name}.appdata.xml |
75 |
%{_iconsdir}/hicolor/*/apps/%{name}.* |
76 |
%{_mandir}/man6/%{name}.6* |
77 |
%{_mandir}/man6/%{name}server.6* |