Name: minetest Version: 0.4.10 Release: 1%{?dist} Summary: Multiplayer infinite-world block sandbox with survival mode # bundled(jthread) uses MIT license License: LGPLv2+ and CC-BY-SA and MIT URL: http://minetest.net/ Source0: https://github.com/minetest/minetest/archive/%{version}/%{name}-%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}@.service Source3: %{name}.rsyslog Source4: %{name}.logrotate Source5: %{name}.README Source6: https://github.com/minetest/minetest_game/archive/%{version}/%{name}_game-%{version}.tar.gz Source7: http://www.gnu.org/licenses/lgpl-2.1.txt Source8: default.conf # https://github.com/minetest/minetest/pull/954 Patch0: 0001-FindJson.cmake-now-will-correctly-find-system-module.patch # Shared irrlicht (patch from gentoo) Patch1: minetest-0.4.8-shared-irrlicht.patch # https://fedorahosted.org/fpc/ticket/347 Provides: bundled(jthread) BuildRequires: cmake >= 2.6.0 BuildRequires: irrlicht-devel BuildRequires: bzip2-devel gettext-devel sqlite-devel BuildRequires: libpng-devel libjpeg-turbo-devel libXxf86vm mesa-libGL-devel BuildRequires: desktop-file-utils BuildRequires: systemd BuildRequires: openal-soft-devel BuildRequires: libvorbis-devel BuildRequires: jsoncpp-devel BuildRequires: libcurl-devel BuildRequires: luajit-devel # TODO: add unicode patches to irrlicht #BuildRequires: freetype-devel Requires: %{name}-server = %{version}-%{release} Requires: hicolor-icon-theme %description Game of mining, crafting and building in the infinite world of cubic blocks with optional hostile creatures, features both single and the network multiplayer mode. There are no in-game sounds yet %package server Summary: Minetest multiplayer server Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description server Minetest multiplayer server. This package does not require X Window System %prep %setup -q %patch0 -p1 %patch1 -p1 pushd games tar xf %{SOURCE6} mv %{name}_game-%{version} %{name}_game popd cp %{SOURCE7} doc/ # purge bundled jsoncpp and lua rm -rf src/json src/lua %build # -DENABLE_FREETYPE=ON needed for Unicode in text chat %cmake . make %{?_smp_mflags} %install %make_install # Add desktop file desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} # Systemd unit file mkdir -p %{buildroot}%{_unitdir}/ install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir} # /etc/rsyslog.d/minetest.conf mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d/ install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/rsyslog.d/%{name}.conf # /etc/logrotate.d/minetest mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/ install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server # /var/lib/minetest directory for server data files install -d -m 0775 %{buildroot}%{_sharedstatedir}/%{name}/ install -d -m 0775 %{buildroot}%{_sharedstatedir}/%{name}/default/ # /etc/minetest/default.conf install -d -m 0775 %{buildroot}%{_sysconfdir}/%{name}/ install -m 0664 minetest.conf.example %{buildroot}%{_sysconfdir}/%{name}/default.conf # /etc/sysconfig/default.conf install -d -m 0775 %{buildroot}%{_sysconfdir}/sysconfig/%{name}/ install -m 0664 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/%{name} cp -p %{SOURCE5} README.fedora # Move doc directory back to the sources mkdir __doc mv %{buildroot}%{_datadir}/doc/%{name}/* __doc rm -rf %{buildroot}%{_datadir}/doc/%{name} # %%find_lang %%{name} %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %pre server getent group %{name} >/dev/null || groupadd -r %{name} getent passwd %{name} >/dev/null || \ useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin \ -c "Minetest multiplayer server" %{name} exit 0 %post server %systemd_post %{name}@default.service %preun server %systemd_preun %{name}@default.service %postun server %systemd_postun_with_restart %{name}@default.service # %%files -f %%{name}.lang %files %doc doc/lgpl-2.1.txt src/jthread/LICENSE.MIT README.fedora %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}-icon.svg %{_mandir}/man6/minetest.* %files server %doc README.txt doc/lgpl-2.1.txt src/jthread/LICENSE.MIT doc/mapformat.txt doc/protocol.txt README.fedora %{_bindir}/%{name}server %{_unitdir}/%{name}@.service %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server %config(noreplace) %{_sysconfdir}/rsyslog.d/%{name}.conf %attr(-,minetest,minetest)%{_sharedstatedir}/%{name}/ %attr(-,minetest,minetest)%{_sysconfdir}/%{name}/ %attr(-,minetest,minetest)%{_sysconfdir}/sysconfig/%{name}/ %{_mandir}/man6/minetestserver.* %changelog * Mon Jul 07 2014 Igor Gnatenko - 0.4.10-1 - 0.4.10 upstream release (Changelog: http://dev.minetest.net/Changelog#0.4.9_.E2.86.92_0.4.10) (RHBZ #1116862) * Sat Jun 07 2014 Fedora Release Engineering - 0.4.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun May 25 2014 Igor Gnatenko - 0.4.9-2 - rebuild against new irrlicht (RHBZ #1098784) * Sun Jan 12 2014 Igor Gnatenko - 0.4.9-1 - Update to 0.4.9 (Changelog: http://dev.minetest.net/Changelog#0.4.8_.E2.86.92_0.4.9) * Mon Nov 25 2013 Igor Gnatenko - 0.4.8-2 - add support of multiple server cfgs - allow acces for group to server parts - Shared irrlicht (patch from gentoo) * Sun Nov 24 2013 Igor Gnatenko - 0.4.8-1 - Update to 0.4.8 (Changelog: http://dev.minetest.net/Changelog#0.4.7_.E2.86.92_0.4.8) * Fri Oct 11 2013 Igor Gnatenko - 0.4.7-1 - Update to 0.4.7 w/ bundled jthread - Bundle jthread correctly (kalev) * Thu Sep 5 2013 Igor Gnatenko - 0.4.4-1 - Update to 0.4.4 - Fix systemd scripts (rhbz 850208) - fixed hardcoded paths - Spaces instead of tabs - Fixed URL, sources - buildroot macro instead of rpm_build_dir * Sat Aug 03 2013 Fedora Release Engineering - 0.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Jan 21 2013 Adam Tkac - 0.4.3-2 - rebuild due to "jpeg8-ABI" feature drop * Tue Nov 13 2012 Tom Callaway - 0.4.3-1 - update to 0.4.3 * Fri Jul 20 2012 Fedora Release Engineering - 0.3.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Apr 13 2012 Jon Ciesla - 0.3.1-10 - Added hardened build. * Tue Feb 28 2012 Fedora Release Engineering - 0.3.1-9 - Rebuilt for c++ ABI breakage * Sat Jan 14 2012 Aleksandra Bookwar - 0.3.1-8 - Fixed to build with gcc-4.7.0 * Fri Jan 13 2012 Fedora Release Engineering - 0.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Dec 8 2011 Aleksandra Bookwar - 0.3.1-6 - Fixed docs for minetest package * Mon Dec 5 2011 Aleksandra Bookwar - 0.3.1-5 - Changed tarball and logrotate names, removed git commit, new README file. * Mon Nov 14 2011 Aleksandra Bookwar - 0.3.1-4.gitbc0e5c0 - Removed clean section and defattr according to guidelines * Sun Nov 13 2011 Aleksandra Bookwar - 0.3.1-3.gitbc0e5c0 - Systemd unit file, rsyslog, user/group and other server-related fixes - Fixed Release tag for Fedora review * Sat Nov 12 2011 Aleksandra Bookwar - 0.3.1-2.gitbc0e5c0.R - Fixed doc directories - Split package into main and -server parts * Wed Nov 9 2011 Aleksandra Bookwar - 0.3.1-1.gitbc0e5c0.R - Update to stable 0.3.1 version * Thu Nov 3 2011 Aleksandra Bookwar - 0.3.0-1.gitf65d157.R - Update to stable 0.3.0 version * Fri Sep 30 2011 Aleksandra Bookwar - 0.2.20110922_2-2.git960009d - Desktop file and icon * Fri Sep 30 2011 Aleksandra Bookwar - 0.2.20110922_2-1.git960009d - Basic build of the current stable version