forked from pool/python-Logbook
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
This commit is contained in:
committed by
Git OBS Bridge
parent
3d9f5feac9
commit
9f12860d1e
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 14 15:30:16 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Use python_expand in %build to allow building only a single flavour
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 5 16:39:48 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user