1 |
dams |
291300 |
Name: minetest |
2 |
akien |
668438 |
Version: 0.4.10 |
3 |
akien |
552718 |
Release: %mkrel 1 |
4 |
dams |
291300 |
Summary: An InfiniMiner/Minecraft inspired game |
5 |
|
|
Group: Games/Other |
6 |
|
|
License: GPLv2+ |
7 |
akien |
552718 |
URL: http://minetest.net |
8 |
|
|
# Source file from github: https://github.com/minetest/minetest |
9 |
dams |
291819 |
Source0: %{name}-%{version}.tar.gz |
10 |
akien |
552718 |
# Source file from github: https://github.com/minetest/minetest_game |
11 |
dams |
291819 |
Source1: %{name}_game-%{version}.tar.gz |
12 |
akien |
668844 |
# https://github.com/minetest/minetest/pull/954 |
13 |
|
|
Patch1: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch |
14 |
akien |
552718 |
Patch2: minetest-0.4.7-mga-desktop.patch |
15 |
akien |
668844 |
|
16 |
dams |
293094 |
BuildRequires: cmake |
17 |
dams |
291300 |
BuildRequires: bzip2-devel |
18 |
|
|
BuildRequires: gettext-devel |
19 |
akien |
668844 |
BuildRequires: hiredis-devel |
20 |
dams |
291300 |
BuildRequires: irrlicht-devel |
21 |
|
|
BuildRequires: jpeg-devel |
22 |
akien |
668844 |
BuildRequires: jsoncpp-devel |
23 |
dams |
291300 |
BuildRequires: zlib-devel |
24 |
|
|
BuildRequires: pkgconfig(gl) |
25 |
|
|
BuildRequires: pkgconfig(libpng) |
26 |
akien |
668844 |
BuildRequires: pkgconfig(luajit) |
27 |
dams |
291300 |
BuildRequires: pkgconfig(openal) |
28 |
dams |
293094 |
BuildRequires: pkgconfig(jthread) |
29 |
dams |
291300 |
BuildRequires: pkgconfig(sqlite3) |
30 |
|
|
BuildRequires: pkgconfig(vorbisfile) |
31 |
|
|
BuildRequires: pkgconfig(x11) |
32 |
|
|
|
33 |
|
|
%description |
34 |
dams |
291819 |
One of the first InfiniMiner/Minecraft inspired games with a goal of taking |
35 |
|
|
the survival multiplayer gameplay to a slightly different direction. |
36 |
dams |
291300 |
|
37 |
|
|
This game is under development, and as of now, the game does not really |
38 |
|
|
differ from Minecraft except for having a lot less features. Still, playing |
39 |
|
|
is quite fun already, especially for people who have not been able to |
40 |
|
|
experience Minecraft. |
41 |
|
|
|
42 |
|
|
%prep |
43 |
akien |
552718 |
%setup -q -a 1 |
44 |
dams |
291961 |
%apply_patches |
45 |
dams |
291300 |
|
46 |
|
|
%build |
47 |
akien |
668844 |
%cmake -DRUN_IN_PLACE=0 \ |
48 |
|
|
-DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ |
49 |
|
|
-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ |
50 |
|
|
-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ |
51 |
|
|
-DENABLE_GETTEXT:BOOL=ON \ |
52 |
|
|
-DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread |
53 |
akien |
552718 |
%make |
54 |
dams |
291300 |
|
55 |
|
|
%install |
56 |
dams |
291961 |
%makeinstall_std -C build |
57 |
dams |
291962 |
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
58 |
dams |
291961 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
59 |
dams |
291300 |
|
60 |
dams |
493064 |
%find_lang %{name} |
61 |
akien |
668844 |
# Needed for now to locate the translations in system dir |
62 |
|
|
ln -s %{_datadir}/locale %{buildroot}%{_gamesdatadir}/%{name}/locale |
63 |
dams |
291300 |
|
64 |
|
|
%files -f %{name}.lang |
65 |
|
|
%doc doc/*.txt |
66 |
dams |
291819 |
%{_gamesbindir}/%{name} |
67 |
|
|
%{_gamesbindir}/%{name}server |
68 |
akien |
668844 |
%{_gamesdatadir}/%{name}/ |
69 |
|
|
%{_datadir}/appdata/%{name}.appdata.xml |
70 |
dams |
291300 |
%{_datadir}/applications/%{name}.desktop |
71 |
|
|
%{_iconsdir}/hicolor/scalable/apps/%{name}-icon.svg |
72 |
|
|
%{_mandir}/man6/%{name}.6* |
73 |
|
|
%{_mandir}/man6/%{name}server.6* |