diff --git a/anjuta.spec b/anjuta.spec index 290ee53..e0e712b 100644 --- a/anjuta.spec +++ b/anjuta.spec @@ -1,6 +1,12 @@ # The Python templates in /usr/share/anjuta/project can not be byte-compiled. %global _python_bytecompile_errors_terminate_build 0 +%if 0%{?fedora} +%global with_python3 1 +%else +%global with_python3 0 +%endif + Name: anjuta Epoch: 1 Version: 3.22.0 @@ -27,7 +33,11 @@ BuildRequires: neon-devel BuildRequires: perl-generators BuildRequires: perl(Locale::gettext) BuildRequires: perl(XML::Parser) +%if 0%{?with_python3} BuildRequires: python3-devel +%else +BuildRequires: python-devel +%endif BuildRequires: sqlite-devel BuildRequires: subversion-devel BuildRequires: vala-devel @@ -75,7 +85,9 @@ sed -i -e '/vala/s/0\.32/0.34/g' configure %build +%if 0%{?with_python3} export PYTHON=%{__python3} +%endif %configure \ --disable-compile-warnings \ --disable-schemas-compile \