Name: widelands Epoch: 1 Version: 1.0 Release: 1mamba Summary: A game like Settlers II Group: Graphical Desktop/Applications/Games Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://widelands.sourceforge.net/ Source: https://launchpad.net/widelands/1.x/1.0/+download/widelands-%{version}.tar.gz Patch0: widelands.flagfix.patch Patch1: widelands-17-gcc-4.7.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libSDL2-devel BuildRequires: libSDL2_ttf-devel BuildRequires: libboost-devel BuildRequires: libcurl-devel BuildRequires: libgcc BuildRequires: libglew-devel BuildRequires: libglvnd-devel BuildRequires: libicu-devel BuildRequires: libpng-devel BuildRequires: libsdl2_image-devel BuildRequires: libsdl2_mixer-devel BuildRequires: libstdc++6-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END #BuildRequires: libSDL_gfx-devel >= 2.0.26 BuildRequires: libglew-devel >= 1.9.0 BuildRequires: ctags BuildRequires: desktop-file-utils BuildRequires: scons BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: libboost-devel BuildRequires: make %description In Widelands, you are the regent of a small tribe. You start out with nothing but your headquarters, a kind of castle in which all your resources are stored. Every member of your tribe will do his or her part to produce more resources - wood, food, iron, gold and more - to further this growth. But you are not alone in the world, and you will meet other tribes sooner or later. Some of them may be friendly and trade with you. However, if you want to rule the world, you will have to train soldiers and fight.. :° %debug_package %prep %setup -q #-D -T #%patch1 -p1 %build #:<< _EOF %cmake -d build \ -DWL_INSTALL_BASEDIR=%{_prefix} \ -DWL_INSTALL_DATADIR=%{_datadir}/widelands #../ \ # -DLUA_LIBRARY=%{_libdir}/liblua.so.5.1 \ # -DLUA_INCLUDE_DIR=`pkg-config --variable=includedir lua5.1` %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build # Fix wrong locations of some installed files (upstream bug) # See also FS#72240 mkdir -p %{buildroot}%{_bindir} mv %{buildroot}%{_prefix}/{widelands,wl_map_object_info,wl_map_info,wl_create_spritesheet} %{buildroot}%{_bindir} mv %{buildroot}%{_prefix}/{VERSION,ChangeLog,CREDITS} %{buildroot}%{_datadir}/widelands mv %{buildroot}/share/* %{buildroot}%{_datadir}/ rm -f %{buildroot}%{_prefix}/COPYING %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" # For the next release #%pre # preparing system before update #cat << EOF | while read name; do rm -rf "%{_datadir}/widelands/maps/${name}.wmf"; done #Checkmate #Dry Riverbed #Elven Forests #Enemy in sight #Finlakes #Firegames #Four Castles #Glacier Lake #Golden Peninsula #Lake of tranquility #Plateau #Riverlands #The Oasis Triangle #The big lake #The long way #Two frontiers #War of the Valleys #EOF %files %defattr(-,root,root) %{_bindir}/widelands %{_bindir}/wl_create_spritesheet %{_bindir}/wl_map_info %{_bindir}/wl_map_object_info %dir %{_datadir}/widelands %{_datadir}/widelands/* %{_datadir}/applications/org.widelands.Widelands.desktop %{_datadir}/metainfo/org.widelands.Widelands.appdata.xml %{_datadir}/icons/hicolor/*/apps/org.widelands.Widelands.png %{_mandir}/man6/widelands.6* %doc COPYING CREDITS #ChangeLog %changelog * Fri Dec 31 2021 Silvan Calarco 1.0-1mamba - update to 1.0 * Sat Mar 01 2014 Automatic Build System 18-1mamba - automatic version update by autodist * Mon Jul 15 2013 Silvan Calarco 17-2mamba - rebuilt with libSDL_gfx 2.0.24 * Sat Apr 28 2012 Ercole 'ercolinux' Carpanetto 17-1mamba - update to 17 * Fri Dec 16 2011 Silvan Calarco 16-1mamba - update to 16 * Fri Sep 19 2008 gil 12-1mamba - added desktop file