%global buildno 19 %global buildid build%{buildno} Name: widelands Version: 0 Release: 0.62.%{buildid}%{?dist} Summary: Open source realtime-strategy game Group: Amusements/Games License: GPLv2+ URL: http://www.widelands.org Source0: https://launchpad.net/widelands/%{buildid}/%{buildid}/+download/widelands-%{buildid}-src-gcc7.tar.bz2 Patch0: widelands-build19-ppc64le.patch BuildRequires: SDL2-devel BuildRequires: SDL2_image-devel BuildRequires: SDL2_mixer-devel BuildRequires: SDL2_net-devel BuildRequires: SDL2_ttf-devel BuildRequires: boost-devel >= 1.48.0 BuildRequires: cmake BuildRequires: ctags BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: glew-devel BuildRequires: libpng-devel Requires: hicolor-icon-theme # The game contains a copy of these fonts, we replaces these with system fonts Requires: amiri-fonts Requires: dejavu-serif-fonts Requires: dejavu-sans-fonts Requires: dejavu-sans-mono-fonts Requires: drehatlas-widelands-fonts Requires: lklug-fonts Requires: wqy-microhei-fonts %description Widelands is an open source (GPLed), realtime-strategy game, using SDL and other free libraries, which is still under development. Widelands is inspired by Settlers II (Bluebyte) and is partly similar to it, so if you know it, you perhaps will have a thought, what Widelands is all about. %prep %setup -q -n widelands-%{buildid}-src-gcc7 %ifarch ppc64le %patch0 -p1 -b .ppc64le %endif %build mkdir build pushd build # We need to set CMAKE_INCLUDE_PATH to /usr for FindLua51.cmake %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{_bindir} \ -DWL_INSTALL_BASEDIR=%{_prefix}/share/%{name} \ -DWL_INSTALL_DATADIR=%{_prefix}/share/%{name} \ -DOPTION_BUILD_WEBSITE_TOOLS=OFF \ .. make %{?_smp_mflags} popd %install pushd build %make_install popd mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps ln -s /usr/share/%{name}/images/logos/wl-logo-64.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > widelands.desktop < %{_builddir}/widelands-%{buildid}-src-gcc7/%{name}.files find usr/share/widelands/locale/ -maxdepth 1 -type d ! -name "*_*" | sed -n -e 's#\(usr/share/widelands/locale/\(.\+\)\)#%lang(\2) /\1#p' >> %{_builddir}/widelands-%{buildid}-src-gcc7/%{name}.files find usr/share/widelands/ -mindepth 1 -maxdepth 1 -not -name locale | sed -n 's#\(usr/share/widelands/*\)#/\1#p' >> %{_builddir}/widelands-%{buildid}-src-gcc7/%{name}.files popd %files -f %{name}.files %doc ChangeLog COPYING CREDITS %{_bindir}/%{name} %{_datadir}/icons/hicolor/64x64/apps/%{name}.png %{_datadir}/applications/%{name}.desktop %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/locale %changelog * Tue Feb 20 2018 Nils Philippsen - 0-0.62.build19 - require gcc, gcc-c++ for building - FTBFS: build with --std=gnu++11 on ppc64le * Thu Feb 08 2018 Hans de Goede - 0-0.61.build19 - Update to new upstream Build19 release (rhbz#1397883) - Strip 2012 and older changelog entries * Thu Jan 18 2018 Igor Gnatenko - 0-0.60.build18 - Remove obsolete scriptlets * Thu Aug 03 2017 Fedora Release Engineering - 0-0.59.build18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0-0.58.build18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering - 0-0.57.build18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0-0.56.build18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jan 27 2017 Jonathan Wakely - 0-0.55.build18 - Rebuilt for Boost 1.63 * Tue Jan 10 2017 Orion Poplawski - 0-0.54.build18 - Rebuild for glew 2.0.0 * Fri Feb 05 2016 Fedora Release Engineering - 0-0.53.build18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Jan 16 2016 Jonathan Wakely - 0-0.52.build18 - Rebuilt for Boost 1.60 * Thu Jan 14 2016 Adam Jackson - 0-0.51.build18 - Rebuild for glew 1.13 * Thu Aug 27 2015 Jonathan Wakely - 0-0.50.build18 - Rebuilt for Boost 1.59 * Wed Jul 29 2015 Fedora Release Engineering - 0-0.49.build18 - Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159 * Wed Jul 22 2015 David Tardon - 0-0.48.build18 - rebuild for Boost 1.58 * Fri Jun 19 2015 Fedora Release Engineering - 0-0.47.build18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0-0.46.build18 - Rebuilt for GCC 5 C++11 ABI change * Tue Jan 27 2015 Petr Machata - 0-0.45.build18 - Rebuild for boost 1.57.0 * Mon Aug 18 2014 Fedora Release Engineering - 0-0.44.build18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jun 13 2014 Hans de Goede - 0-0.43.build18 - Update to new upstream Build18 release (rhbz#1085517) - Rebuild for new SDL_gfx * Sun Jun 08 2014 Fedora Release Engineering - 0-0.42.build17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri May 23 2014 Petr Machata - 0-0.41.build17 - Rebuild for boost 1.55.0 * Tue Dec 03 2013 Nils Philippsen - 0-0.40.build17 - use string literals as format strings (#1037384) * Mon Nov 18 2013 Dave Airlie - 0-0.39.build17 - rebuilt for GLEW 1.10 * Sun Aug 04 2013 Hans de Goede - 0-0.38.build17 - Build with compat-lua on f20+ * Sun Aug 04 2013 Fedora Release Engineering - 0-0.37.build17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 30 2013 Petr Machata - 0-0.36.build17 - Rebuild for boost 1.54.0 * Sat Feb 09 2013 Parag Nemade - 0-0.35.build17 - Remove vendor tag from desktop file as per https://fedorahosted.org/fesco/ticket/1077 - Cleanup spec as per recently changed packaging guidelines