Hello community,

here is the log from the commit of package moinmoin-wiki for openSUSE:Factory 
checked in at 2017-07-17 09:13:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/moinmoin-wiki (Old)
 and      /work/SRC/openSUSE:Factory/.moinmoin-wiki.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "moinmoin-wiki"

Mon Jul 17 09:13:08 2017 rev:2 rq:510614 version:1.9.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/moinmoin-wiki/moinmoin-wiki.changes      
2016-04-22 16:22:48.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.moinmoin-wiki.new/moinmoin-wiki.changes 
2017-07-17 09:13:09.383050111 +0200
@@ -1,0 +2,5 @@
+Sun Jul 16 19:32:57 UTC 2017 - seroto...@gmail.com
+
+- Always use python2 interpreter
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ moinmoin-wiki.spec ++++++
--- /var/tmp/diff_new_pack.xdc4IL/_old  2017-07-17 09:13:10.818847867 +0200
+++ /var/tmp/diff_new_pack.xdc4IL/_new  2017-07-17 09:13:10.822847304 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package moinmoin-wiki
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -63,6 +63,10 @@
 %prep
 %setup -q -n moin-%{version}
 
+# Always use python2
+grep -rl "#!/usr/bin/env python" . | xargs -L 1 --verbose sed -i -e 
"s|#!/usr/bin/env python|#!/usr/bin/python2|g"
+sed -i -e "s|#!/usr/bin/python|#!/usr/bin/python2|g" wiki/server/moin.fcgi
+
 # remove pre-built JARs
 find . -type f -name "*.jar" -print -delete
 # prepare rebuild of AnyWikiDraw applet JAR
@@ -91,6 +95,8 @@
 %install
 python setup.py install --root=%{buildroot} --prefix=%{_prefix}
 
+sed -i -e "s|#! /usr/bin/python|#!/usr/bin/python2|g" %{buildroot}/usr/bin/moin
+
 mkdir -p %{buildroot}%{_sbindir}
 
 install -m 744 %{SOURCE4} %{buildroot}%{_sbindir}


Reply via email to