Add patch to port example to python3
This commit is contained in:
parent
5f4342f1b7
commit
9afcd0abee
22
0001-tools-Use-Python3-for-GetAllMatchRules.patch
Normal file
22
0001-tools-Use-Python3-for-GetAllMatchRules.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From 59ddde9e1ed5de03b060ff3ce27e35509707dff2 Mon Sep 17 00:00:00 2001
|
||||
From: Colin Walters <walters@verbum.org>
|
||||
Date: Tue, 31 Jul 2018 12:33:59 -0400
|
||||
Subject: [PATCH] tools: Use Python3 for GetAllMatchRules
|
||||
|
||||
---
|
||||
tools/GetAllMatchRules.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tools/GetAllMatchRules.py b/tools/GetAllMatchRules.py
|
||||
index 6a7e4cd9..f7e340d6 100755
|
||||
--- a/tools/GetAllMatchRules.py
|
||||
+++ b/tools/GetAllMatchRules.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
import argparse
|
||||
--
|
||||
2.17.1
|
||||
|
@ -19,7 +19,7 @@
|
||||
Name: dbus
|
||||
Epoch: 1
|
||||
Version: 1.12.8
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: D-BUS message bus
|
||||
|
||||
Group: System Environment/Libraries
|
||||
@ -30,6 +30,7 @@ URL: http://www.freedesktop.org/Software/dbus/
|
||||
#VCS: git:git://git.freedesktop.org/git/dbus/dbus
|
||||
Source0: https://dbus.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
|
||||
Source1: 00-start-message-bus.sh
|
||||
Patch0: 0001-tools-Use-Python3-for-GetAllMatchRules.patch
|
||||
|
||||
BuildRequires: autoconf-archive
|
||||
BuildRequires: libtool
|
||||
@ -191,6 +192,9 @@ pushd build
|
||||
make install DESTDIR=%{buildroot} INSTALL="install -p"
|
||||
popd
|
||||
|
||||
# Delete python2 code
|
||||
rm -f %{buildroot}/%{_pkgdocdir}/examples/GetAllMatchRules.py
|
||||
|
||||
find %{buildroot} -name '*.a' -type f -delete
|
||||
find %{buildroot} -name '*.la' -type f -delete
|
||||
|
||||
@ -411,6 +415,9 @@ popd
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jul 31 2018 Colin Walters <walters@verbum.org> - 1:1.12.8-5
|
||||
- More python3
|
||||
|
||||
* Tue Jul 31 2018 Colin Walters <walters@verbum.org> - 1:1.12.8-4
|
||||
- Use python3-dbus to drop python2 deps
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user