From 1ab2e779cb9fc6a9b9fcb4d538819fb286ef92f9 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Tue, 11 Jul 2017 08:22:15 -0500 Subject: [PATCH] Force Python 3 for main RPM. --- brltty.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/brltty.spec b/brltty.spec index 9eec058..1c89daf 100644 --- a/brltty.spec +++ b/brltty.spec @@ -22,7 +22,7 @@ Name: brltty Version: %{pkg_version} -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2+ Group: System Environment/Daemons URL: http://mielke.cc/brltty/ @@ -34,6 +34,7 @@ Patch2: brltty-5.0-libspeechd.patch Summary: Braille display driver for Linux/Unix BuildRequires: byacc, glibc-kernheaders, bluez-libs-devel, systemd BuildRequires: gettext, at-spi2-core-devel, espeak-devel +BuildRequires: python2-tools Requires: brlapi%{?_isa} = %{api_version}-%{release} # work around a bug in the install process: Requires(post): coreutils @@ -270,6 +271,7 @@ while read file; do iconv -f iso8859-1 -t utf-8 $file > $file.conv && mv -f $file.conv $file done + %install %if 0%{?with_ocaml} mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs @@ -314,6 +316,11 @@ chmod 755 ${RPM_BUILD_ROOT}%{_bindir}/brltty-config # handle locales %find_lang %{name} +#Use python 3 for latex-access, BZ 1465657. +/usr/bin/2to3 -wn ${RPM_BUILD_ROOT}/etc/brltty/Contraction/latex-access.ctb +sed -i 's|/usr/bin/python|/usr/bin/python3|g' ${RPM_BUILD_ROOT}/etc/brltty/Contraction/latex-access.ctb + + %post %systemd_post brltty.service @@ -423,6 +430,9 @@ fi %endif %changelog +* Tue Jul 11 2017 Gwyn Ciesla - 5.5-5 +- Use python 3 for latex-access, BZ 1465657. + * Tue Jun 27 2017 Gwyn Ciesla - 5.5-4 - OCaml 4.04.2 rebuild.