Name: minetest Version: 0.4.7 Release: %mkrel 1 Summary: An InfiniMiner/Minecraft inspired game Group: Games/Other License: GPLv2+ URL: http://celeron.55.lt/minetest/ Source0: %{name}-%{version}.tar.gz Source1: %{name}_game-%{version}.tar.gz Patch0: minetest-0.4.7-jthread.patch Patch1: minetest-0.4.7-json.patch BuildRequires: cmake BuildRequires: bzip2-devel BuildRequires: gettext-devel BuildRequires: irrlicht-devel BuildRequires: jpeg-devel BuildRequires: zlib-devel BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(libpng) 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 # Fix hard-coded locale directories sed -i -e 's|set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/locale")|set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale")|' CMakeLists.txt %build %cmake -DRUN_IN_PLACE=0 -DCUSTOM_BINDIR:STRING=%{_gamesbindir} -DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} -DCMAKE_BUILD_TYPE:STRING=Release -DENABLE_GETTEXT:BOOL=ON -DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DCMAKE_SHARE_INSTALL_PREFIX:PATH=%{_datadir} 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 %find_lang %{name} --with-gnome --with-help %files -f %{name}.lang %doc doc/*.txt %{_gamesbindir}/%{name} %{_gamesbindir}/%{name}server %{_gamesdatadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_iconsdir}/hicolor/scalable/apps/%{name}-icon.svg %{_mandir}/man6/%{name}.6* %{_mandir}/man6/%{name}server.6*