forked from pool/rpmdevtools
- Switch to python 3: * Require python3-rpm instead of python2-rpm * Add python3-shebang.patch to run python scripts with python3 * Add rmdevelrpms_fix_filename_search.patch to add compatibility with both newer and older rpm binding * Backport upstream commits 2ddae80, 693c954 and ea772da OBS-URL: https://build.opensuse.org/request/show/797224 OBS-URL: https://build.opensuse.org/package/show/devel:tools/rpmdevtools?expand=0&rev=26
51 lines
1.7 KiB
Diff
51 lines
1.7 KiB
Diff
Index: rpmdevtools-8.10/rpmdev-bumpspec
|
|
===================================================================
|
|
--- rpmdevtools-8.10.orig/rpmdev-bumpspec
|
|
+++ rpmdevtools-8.10/rpmdev-bumpspec
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python -tt
|
|
+#!/usr/bin/python3
|
|
# -*- mode: Python; indent-tabs-mode: nil; coding: utf-8 -*-
|
|
#
|
|
# Copyright (c) 2005-2014 Fedora Project
|
|
Index: rpmdevtools-8.10/rpmdev-checksig
|
|
===================================================================
|
|
--- rpmdevtools-8.10.orig/rpmdev-checksig
|
|
+++ rpmdevtools-8.10/rpmdev-checksig
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python -tt
|
|
+#!/usr/bin/python3
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
Index: rpmdevtools-8.10/rpmdev-rmdevelrpms.py
|
|
===================================================================
|
|
--- rpmdevtools-8.10.orig/rpmdev-rmdevelrpms.py
|
|
+++ rpmdevtools-8.10/rpmdev-rmdevelrpms.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python -tt
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# rpmdev-rmdevelrpms -- Find (and optionally remove) "development" RPMs
|
|
Index: rpmdevtools-8.10/rpmdev-sort
|
|
===================================================================
|
|
--- rpmdevtools-8.10.orig/rpmdev-sort
|
|
+++ rpmdevtools-8.10/rpmdev-sort
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python -tt
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# rpmdev-sort -- sort rpms from standard input
|
|
Index: rpmdevtools-8.10/rpmdev-vercmp
|
|
===================================================================
|
|
--- rpmdevtools-8.10.orig/rpmdev-vercmp
|
|
+++ rpmdevtools-8.10/rpmdev-vercmp
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/python -tt
|
|
+#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# rpmdev-vercmp -- compare rpm versions
|