- Add remove-env-for-python.patch to remove rpmlint errors.

OBS-URL: https://build.opensuse.org/package/show/Publishing/lyx?expand=0&rev=148
This commit is contained in:
Cor Blom 2018-08-28 20:00:29 +00:00 committed by Git OBS Bridge
parent d9671d83d4
commit 96b5885fab
3 changed files with 52 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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 <jamatos@lyx.org>
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