diff --git a/README.md b/README.md index aceafc4..c6d74f5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # megaglest-data +MegaGlest 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. + diff --git a/glest-get-translations.sh b/glest-get-translations.sh new file mode 100644 index 0000000..1d9cba3 --- /dev/null +++ b/glest-get-translations.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +version=$1 + +if [ -z "$version" ]; then + echo "Usage: $0 " + exit 2 +fi + +rm -rf translations +mkdir translations +cd translations +wget -r -N -l 1 -np -nd -A "*_$version.zip" http://www.glest.org/files/contrib/translations/ +rm -f robots.txt +cd .. +tar -czf glest-translations-$version.tar.gz translations +rm -rf translations \ No newline at end of file diff --git a/megaglest-data.spec b/megaglest-data.spec new file mode 100644 index 0000000..28f2793 --- /dev/null +++ b/megaglest-data.spec @@ -0,0 +1,68 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: megaglest-data +Version: 3.13.0 +Release: 1mamba +Summary: Data files for the game MegaGlest +Group: Applications/Games +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://glest.org +Source0: https://github.com/MegaGlest/megaglest-data.git/%{version}/megaglest-data-%{version}.tar.bz2 +Source1: glest-get-translations.sh +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: ImageMagick +Requires: megaglest => %{majver} +Requires: megaglest <= %{majver}.255 +Provides: glest-data +Obsoletes: glest-data +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +MegaGlest 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 + +%build +%cmake -d build + +%install +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_datadir}/megaglest +%{_datadir}/megaglest/* +%{_datadir}/appdata/megaglest*.appdata.xml +%{_datadir}/applications/megaglest*.desktop +%{_datadir}/menu/megaglest +%{_datadir}/pixmaps/megaglest.* + +%changelog +* Thu Mar 09 2017 Automatic Build System 3.13.0-1mamba +- automatic version update by autodist + +* Fri May 20 2016 Silvan Calarco 3.12.0-1mamba +- update to 3.12.0 + +* Sun Mar 15 2015 Silvan Calarco 3.9.0-1mamba +- update to 3.9.0 + +* Mon Jul 29 2013 Silvan Calarco 3.7.1-1mamba +- update to 3.7.1 + +* 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