Switch to Python 3 for Fedora 30

This commit is contained in:
Robin Lee 2019-01-22 17:19:15 +08:00
parent f383b9774b
commit f157272fba
1 changed files with 11 additions and 1 deletions

View File

@ -1,10 +1,13 @@
%if 0%{?fedora} >= 22
%global use_qt5 1
%endif
%if 0%{?fedora} >= 30 || 0%{?rhel} > 7
%global use_python3 1
%endif
Name: texworks
Version: 0.6.2
Release: 14%{?dist}
Release: 15%{?dist}
Summary: A simple IDE for authoring TeX documents
Group: Applications/Editors
@ -28,7 +31,11 @@ BuildRequires: zlib-devel
%else
BuildRequires: poppler-qt4-devel
%endif
%if 0%{?use_python3}
BuildRequires: python3-devel
%else
BuildRequires: python2-devel
%endif
BuildRequires: lua-devel
BuildRequires: desktop-file-utils
BuildRequires: cmake
@ -79,6 +86,9 @@ update-desktop-database &> /dev/null || :
%changelog
* Tue Jan 22 2019 Robin Lee <cheeselee@fedoraproject.org> - 0.6.2-15
- Switch to Python 3 for Fedora 30
* Tue Aug 14 2018 Marek Kasik <mkasik@redhat.com> - 0.6.2-14
- Rebuild for poppler-0.67.0