Name: minetest Version: 0.4.10 Release: %mkrel 5 Summary: An InfiniMiner/Minecraft inspired game Group: Games/Other License: LGPLv2+ and CC-BY-SA 3.0 URL: http://minetest.net # Source file from github: https://github.com/minetest/minetest Source0: %{name}-%{version}.tar.gz # Source file from github: https://github.com/minetest/minetest_game Source1: %{name}_game-%{version}.tar.gz # https://github.com/minetest/minetest/pull/954 Patch1: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch Patch2: minetest-0.4.7-mga-desktop.patch Patch3: minetest-0.4.10-mga-static-cguittfont.patch BuildRequires: cmake BuildRequires: bzip2-devel BuildRequires: gettext-devel BuildRequires: hiredis-devel BuildRequires: irrlicht-devel BuildRequires: jpeg-devel BuildRequires: jsoncpp-devel BuildRequires: zlib-devel BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(leveldb) # Do not enable curl support yet, it induces segfault #BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(luajit) BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(jthread) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(vorbisfile) BuildRequires: pkgconfig(x11) %description One of the first InfiniMiner/Minecraft inspired games with a goal of taking the survival multiplayer gameplay to a slightly different direction. This game is under development, and as of now, the game does not really differ from Minecraft except for having a lot less features. Still, playing is quite fun already, especially for people who have not been able to experience Minecraft. %prep %setup -q -a 1 %apply_patches %build %cmake -DRUN_IN_PLACE=0 \ -DCUSTOM_BINDIR:STRING=%{_gamesbindir} \ -DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \ -DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \ -DENABLE_FREETYPE:BOOL=ON \ -DENABLE_GETTEXT:BOOL=ON \ -DENABLE_LEVELDB:BOOL=ON \ -DENABLE_REDIS:BOOL=ON \ -DENABLE_SOUND:BOOL=ON \ -DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread # -DENABLE_CURL:BOOL=ON \ %make %install %makeinstall_std -C build mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game rm -rf %{buildroot}%{_gamesdatadir}/%{name}/client/serverlist/.gitignore %find_lang %{name} # Needed for now to locate the translations in system dir ln -s %{_datadir}/locale %{buildroot}%{_gamesdatadir}/%{name}/locale %files -f %{name}.lang %doc doc/*.txt %{_gamesbindir}/%{name} %{_gamesbindir}/%{name}server %{_gamesdatadir}/%{name}/ %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_iconsdir}/hicolor/scalable/apps/%{name}-icon.svg %{_mandir}/man6/%{name}.6* %{_mandir}/man6/%{name}server.6*