commit d183884fdf014943b70a3214e57c9525a69664f8 Author: Jacek Konieczny <jaj...@jajcus.net> Date: Wed Oct 3 19:49:05 2012 +0200
new package unknown-horizons.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) --- diff --git a/unknown-horizons.spec b/unknown-horizons.spec new file mode 100644 index 0000000..d7302b2 --- /dev/null +++ b/unknown-horizons.spec @@ -0,0 +1,83 @@ +# used in the tarball name +%define ver_hash1 244f49f +# used in the directory name +%define ver_hash2 bedaf75 +Summary: Unknown Horizons - a 2D realtime strategy simulation +Name: unknown-horizons +Version: 2012.1a +Release: 0.1 +License: GPL v2+, distributable (see docs) +Group: Applications/Games +# https://nodeload.github.com/unknown-horizons/unknown-horizons/zipball/%{version} +Source0: %{name}-%{name}-%{version}-0-g%{ver_hash1}.zip +# Source0-md5: 522c5a6c7a583d98a9ecb686b085f7d6 +URL: http://www.unknown-horizons.org/ +BuildRequires: python-distribute +BuildRequires: rpm-pythonprov +Requires: python-PyYAML +Requires: python-fife +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Unknown Horizons is a 2D realtime strategy simulation with an emphasis +on economy and city building. Expand your small settlement to a strong +and wealthy colony, collect taxes and supply your inhabitants with +valuable goods. Increase your power with a well balanced economy and +with strategic trade and diplomacy. + +%prep +%setup -q -n %{name}-%{name}-%{ver_hash2} + +# fix #!%{_bindir}/env python -> #!%{__python}: +%{__sed} -i -e '1s,^#!.*python,#!%{__python},' run_uh.py + +%build +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{py_sitedir} + +%{__python} setup.py install \ + --root=$RPM_BUILD_ROOT + +# contains binary code +mv $RPM_BUILD_ROOT%{py_sitescriptdir}/* $RPM_BUILD_ROOT%{py_sitedir} + +rm -r $RPM_BUILD_ROOT%{py_sitedir}/horizons/network/{darwin,freebsd,windows}-* + +%py_ocomp $RPM_BUILD_ROOT%{py_sitedir} +%py_comp $RPM_BUILD_ROOT%{py_sitedir} + +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc README doc/{APL,AUTHORS,CC,CHANGELOG,GPL_fontexception,LICENSE,MIT,OFL} +%attr(755,root,root) %{_bindir}/%{name} +%{_datadir}/%{name} +%dir %{py_sitedir} +%dir %{py_sitedir}/horizons +%{py_sitedir}/horizons/ai +%{py_sitedir}/horizons/command +%{py_sitedir}/horizons/engine +%{py_sitedir}/horizons/ext +%{py_sitedir}/horizons/gui +%{py_sitedir}/horizons/i18n +%dir %{py_sitedir}/horizons/network +%dir %{py_sitedir}/horizons/network/linux-* +%attr(755,root,root) %{py_sitedir}/horizons/network/linux-*/enet.so +%{py_sitedir}/horizons/network/linux-*/*.py* +%{py_sitedir}/horizons/network/packets +%{py_sitedir}/horizons/network/*.py* +%{py_sitedir}/horizons/scenario +%{py_sitedir}/horizons/util +%{py_sitedir}/horizons/world +%{py_sitedir}/horizons/*.py* +%{py_sitedir}/*.egg-info +%{_pixmapsdir}/* +%{_desktopdir}/* +%{_mandir}/man6/%{name}.6* ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/unknown-horizons.git/commitdiff/d183884fdf014943b70a3214e57c9525a69664f8 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit