%define majver %(echo %version | cut -d. -f1-2) Name: glest-data Version: 3.2.1 Release: 2mamba Summary: Data files for the game Glest Group: Applications/Games Vendor: openmamba Distribution: openmamba Packager: gil URL: http://glest.org Source0: http://dl.sf.net/glest/glest_data_%{version}.zip Source1: glest-get-translations.sh License: GPL BuildRequires: ImageMagick Requires: glest => %{majver}, glest <= %{majver}.255 ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Glest is a free 3D real time strategy game, that can be modified using XML and a set of tools. This package contains the data files for the game. %prep %setup -q -n glest_game rm -f glest.log glest.ico glest.ini %build # Only data, no build. %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_datadir}/games/glest cp -a * %{buildroot}%{_datadir}/games/glest/ # Documentation mkdir -p %{buildroot}%{_docdir}/glest-%{version}/ mv %{buildroot}%{_datadir}/games/glest/docs/* %{buildroot}%{_docdir}/glest-%{version}/ rmdir %{buildroot}%{_datadir}/games/glest/docs # Conflics with the glest package mv %{buildroot}%{_docdir}/glest-%{version}/license{.txt,-data.txt} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(644,root,root,755) #%{_datadir}/games/glest/glest_*.url %{_datadir}/games/glest/servers.ini %{_datadir}/games/glest/data %{_datadir}/games/glest/maps %{_datadir}/games/glest/scenarios %{_datadir}/games/glest/techs %{_datadir}/games/glest/tilesets %{_datadir}/games/glest/tutorials #%attr(666,root,root) %{_datadir}/games/glest/configuration.xml %doc %{_docdir}/glest-%{version}/* %changelog * Mon Jul 06 2009 Silvan Calarco 3.2.1-2mamba - make version requirement for glest less strict * Thu Apr 23 2009 Silvan Calarco 3.2.1-1mamba - update to 3.2.1 * Wed Jul 30 2008 gil 3.1.2-1mamba - package created by autospec