diff --git a/lyx.changes b/lyx.changes index 251c88c..0eaaecd 100644 --- a/lyx.changes +++ b/lyx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 28 19:54:38 UTC 2018 - cornelis@solcon.nl + +- Add remove-env-for-python.patch to remove rpmlint errors. + ------------------------------------------------------------------- Tue Aug 28 19:37:33 UTC 2018 - cornelis@solcon.nl diff --git a/lyx.spec b/lyx.spec index d697fa6..d8be4fa 100644 --- a/lyx.spec +++ b/lyx.spec @@ -27,6 +27,8 @@ Source: ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/lyx-%{version}.tar.xz Source1: lyxrc.dist Source2: lyx.keyring Source3: ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/lyx-%{version}.tar.xz.sig +# PATCH-FIX-OPENSUSE - use #! /usr/bin/python as shebang +Patch0: remove-env-for-python.patch #!BuildIgnore: lyx BuildRequires: autoconf BuildRequires: automake diff --git a/remove-env-for-python.patch b/remove-env-for-python.patch new file mode 100644 index 0000000..545ec83 --- /dev/null +++ b/remove-env-for-python.patch @@ -0,0 +1,45 @@ +diff -ur a/lib/configure.py b/lib/configure.py +--- a/lib/configure.py 2018-08-27 20:12:11.000000000 +0200 ++++ b/lib/configure.py 2018-08-28 21:42:49.360229706 +0200 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python + # -*- coding: utf-8 -*- + # + # file configure.py +diff -ur a/lib/lyx2lyx/lyx2lyx b/lib/lyx2lyx/lyx2lyx +--- a/lib/lyx2lyx/lyx2lyx 2018-08-27 20:12:11.000000000 +0200 ++++ b/lib/lyx2lyx/lyx2lyx 2018-08-28 21:42:24.759811210 +0200 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/python + # -*- coding: utf-8 -*- + # Copyright (C) 2002-2011 The LyX Team + # Copyright (C) 2002-2007 José Matos +diff -ur a/lib/scripts/listerrors b/lib/scripts/listerrors +--- a/lib/scripts/listerrors 2018-08-27 20:12:11.000000000 +0200 ++++ b/lib/scripts/listerrors 2018-08-28 21:40:34.005927089 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + + # file listerrors + # This file is part of LyX, the document processor. +diff -ur a/lib/scripts/svg2pdftex.py b/lib/scripts/svg2pdftex.py +--- a/lib/scripts/svg2pdftex.py 2018-08-27 20:12:11.000000000 +0200 ++++ b/lib/scripts/svg2pdftex.py 2018-08-28 21:41:14.790620909 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + # -*- coding: utf-8 -*- + + # file svg2pdftex.py +diff -ur a/lib/scripts/svg2pstex.py b/lib/scripts/svg2pstex.py +--- a/lib/scripts/svg2pstex.py 2018-08-27 20:12:11.000000000 +0200 ++++ b/lib/scripts/svg2pstex.py 2018-08-28 21:41:32.770926786 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + # -*- coding: utf-8 -*- + + # file svg2pstex.py