[wesnoth/f16] Fix tools.

Jon Ciesla limb at fedoraproject.org
Tue Jan 31 21:25:31 UTC 2012


commit 72a35841195ff0237e155827ea7e18bf0771e5dd
Author: Jon Ciesla <limburgher at gmail.com>
Date:   Tue Jan 31 15:24:12 2012 -0600

    Fix tools.

 wesnoth.spec |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/wesnoth.spec b/wesnoth.spec
index d8fb89e..bbbfdb6 100644
--- a/wesnoth.spec
+++ b/wesnoth.spec
@@ -1,3 +1,5 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
 Name:           wesnoth
 Version:        1.8.6
 Release:        3%{?dist}
@@ -123,6 +125,10 @@ rm -rf $RPM_BUILD_ROOT
 #%ifarch noarch
 ### Data Files and Desktop Files
 make install-data DESTDIR=${RPM_BUILD_ROOT}
+#Python modules for tools
+mkdir -p $RPM_BUILD_ROOT%{python_sitelib} 
+mv $RPM_BUILD_ROOT%{_datadir}/wesnoth/data/tools/wesnoth $RPM_BUILD_ROOT%{python_sitelib} 
+
 rm -rf $RPM_BUILD_ROOT%{_datadir}/applications
 
 desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
@@ -256,10 +262,14 @@ fi
 #%{_mandir}/*/man6/wesnoth_editor.6*
 %{_mandir}/man6/wesnothd.*
 %{_mandir}/*/man6/wesnothd.*
+%{python_sitelib}/wesnoth
 
 #%endif
 
 %changelog
+* Tue Jan 31 2012 Jon Ciesla <limburgher at gmail.com> - 1.8.6-4
+- Fix python modules for tools, 781769.
+
 * Thu Jul 21 2011 Jon Ciesla <limb at jcomserv.net> - 1.8.6-3
 - Rebuild for new boost.
 - Patch for foreach change, BZ 724818.


More information about the scm-commits mailing list