From 9f12860d1e2b2ac6e62ddcdc5583d93e8fd3f2a088e3e322f5a6e1edd68f7ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Sep 2019 07:36:48 +0000 Subject: [PATCH] Accepting request 730983 from home:jayvdb:py3only - Use python_expand in %build to allow building only a single flavour OBS-URL: https://build.opensuse.org/request/show/730983 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Logbook?expand=0&rev=11 --- python-Logbook.changes | 5 +++++ python-Logbook.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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