Name: minetest Version: 0.4.3 Release: %mkrel 2 Summary: An InfiniMiner/Minecraft inspired game Group: Games/Other License: GPLv2+ URL: http://celeron.55.lt/minetest/ # re-pack to get rid of ugly directory names Source0: %{name}-%{version}.tar.gz Source1: %{name}_game-%{version}.tar.gz Patch0: minetest-0.4.3-jthread.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 %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 %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} %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*