From 01748d63af16555230f05763036a2df3deeef1ab Mon Sep 17 00:00:00 2001 From: Martin Gansser Date: Apr 06 2018 07:34:54 +0000 Subject: Add bytecompile with Python 2 %global __python %{__python2} --- diff --git a/variety.spec b/variety.spec index 99ba725..f374bd2 100644 --- a/variety.spec +++ b/variety.spec @@ -27,7 +27,11 @@ BuildRequires: pyexiv2 BuildRequires: intltool BuildRequires: yelp-devel BuildRequires: python-dbus +%if 0%{?fedora} >= 27 BuildRequires: python2-cairo-devel +%else +BuildRequires: pycairo-devel +%endif BuildRequires: pkgconfig(libnotify) BuildRequires: gettext BuildRequires: desktop-file-utils @@ -38,7 +42,11 @@ Requires: ImageMagick Requires: libappindicator-gtk3 Requires: python2-lxml Requires: python2-pillow -Requires: python2-cairo +%if 0%{?fedora} >= 27 +BuildRequires: python2-cairo +%else +BuildRequires: pycairo +%endif Requires: python-appindicator Requires: python2-beautifulsoup4 Requires: python2-configobj