From a4977b43e1c873d612f35721c32128a7025817d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 22 May 2014 00:45:58 +0300 Subject: [PATCH] do not package python dir; avoid evil globs possibly matching dirs --- unknown-horizons.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/unknown-horizons.spec b/unknown-horizons.spec index eacacba..9de8411 100644 --- a/unknown-horizons.spec +++ b/unknown-horizons.spec @@ -1,3 +1,7 @@ +# TODO +# - do py_postclean +# - noarch subpackage for data +# # used in the tarball name %define ver_hash1 244f49f # used in the directory name @@ -8,12 +12,13 @@ Version: 2012.1a Release: 1 License: GPL v2+, distributable (see docs) Group: Applications/Games -# https://nodeload.github.com/unknown-horizons/unknown-horizons/zipball/%{version} +# https://github.com/unknown-horizons/unknown-horizons/releases Source0: %{name}-%{name}-%{version}-0-g%{ver_hash1}.zip # Source0-md5: 522c5a6c7a583d98a9ecb686b085f7d6 URL: http://www.unknown-horizons.org/ BuildRequires: python-distribute BuildRequires: rpm-pythonprov +BuildRequires: unzip Requires: python-PyYAML Requires: python-fife BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -59,7 +64,6 @@ rm -rf $RPM_BUILD_ROOT %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 @@ -78,6 +82,6 @@ rm -rf $RPM_BUILD_ROOT %{py_sitedir}/horizons/world %{py_sitedir}/horizons/*.py* %{py_sitedir}/*.egg-info -%{_pixmapsdir}/* -%{_desktopdir}/* +%{_pixmapsdir}/*.xpm +%{_desktopdir}/*.desktop %{_mandir}/man6/%{name}.6* -- 2.44.0