From 84495e6eaa7d5edd5be54b773f343171b7cdb8cc Mon Sep 17 00:00:00 2001 From: Colin B. Macdonald Date: Jun 18 2018 17:54:27 +0000 Subject: Call "python3" instead of "python", depend on python3 (https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package) Don't bytecompile our small .py helper (https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation) --- diff --git a/octave-symbolic.spec b/octave-symbolic.spec index 23a6008..5aa8ae5 100644 --- a/octave-symbolic.spec +++ b/octave-symbolic.spec @@ -1,10 +1,12 @@ %global octpkg symbolic +# Disable automatic compilation of Python files in extra directories +%global _python_bytecompile_extra 0 + Name: octave-%{octpkg} Version: 2.6.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Symbolic computations for Octave -Group: Applications/Engineering License: GPLv3+ URL: https://octave.sourceforge.io/%{octpkg} Source0: https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.tar.gz @@ -12,13 +14,13 @@ Source0: https://downloads.sourceforge.net/octave/%{octpkg}-%{version}.ta BuildArch: noarch BuildRequires: octave-devel BuildRequires: octave-doctest >= 0.5.0 -BuildRequires: python2 -BuildRequires: python2-sympy >= 1.0 +BuildRequires: python3 +BuildRequires: python3-sympy >= 1.0 Requires: octave(api) = %{octave_api} Requires(post): octave Requires(postun): octave -Requires: python2-sympy >= 1.0 +Requires: python3-sympy >= 1.0 %description @@ -29,6 +31,7 @@ variable precision arithmetic and other features. %prep %setup -q -n %{octpkg}-%{version} +sed -i "s/DEFAULTPYTHON = 'python'/DEFAULTPYTHON = 'python3'/" inst/sympref.m rm bin/*.bat rmdir bin/ @@ -75,6 +78,12 @@ popd %changelog +* Mon Apr 02 2018 Colin B. Macdonald - 2.6.0-7 +- Call "python3" instead of "python", depend on python3 + (https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package) +- Don't bytecompile our small .py helper + (https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation) + * Mon Mar 19 2018 Iryna Shcherbina - 2.6.0-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)