diff --git a/python-Logbook.changes b/python-Logbook.changes index d78db18..764eb79 100644 --- a/python-Logbook.changes +++ b/python-Logbook.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Sep 14 15:30:16 UTC 2019 - John Vandenberg + +- Use python_expand in %build to allow building only a single flavour + ------------------------------------------------------------------- Tue Mar 5 16:39:48 UTC 2019 - Tomáš Chvátal diff --git a/python-Logbook.spec b/python-Logbook.spec index bf8dfd2..ae0f7b3 100644 --- a/python-Logbook.spec +++ b/python-Logbook.spec @@ -60,11 +60,10 @@ sed -i 's/\r$//' LICENSE %build export CFLAGS="%{optflags} -fno-strict-aliasing" -cython-%{python2_version} logbook/_speedups.pyx -%python2_build +%{python_expand cython-%{$python_version} logbook/_speedups.pyx +%{$python_build} rm logbook/_speedups.c -cython-%{python3_version} logbook/_speedups.pyx -%python3_build +} %install %python_install