Force Python 3 for main RPM.

This commit is contained in:
Gwyn Ciesla 2017-07-11 08:22:15 -05:00
parent 222fb87b2d
commit 1ab2e779cb
1 changed files with 11 additions and 1 deletions

View File

@ -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 <limburgher@gmail.com> - 5.5-5
- Use python 3 for latex-access, BZ 1465657.
* Tue Jun 27 2017 Gwyn Ciesla <limburgher@gmail.com> - 5.5-4
- OCaml 4.04.2 rebuild.