From f7a378972e3776b832b229b5ed321caacbf41bad Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 26 Jan 2024 11:34:01 +0100 Subject: [PATCH] Add 'make clean' in singlespec build This seems to be unneeded as the Makefile written by cmake automatically detects that it needs to rebuild if a different python version is used. But just be be on the safe side... --- package/libsolv.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index 9a70c72a0..89a885a59 100644 --- a/package/libsolv.spec.in +++ b/package/libsolv.spec.in @@ -288,6 +288,7 @@ ln -s repo2solv %{buildroot}/%{_bindir}/repo2solv.sh %{python_expand pyver=%%python_version cmake . -U '*PYTHON*' -DENABLE_PYTHON=1 -DPYTHON_VERSION_MAJOR=${pyver%%.*} -DPYTHON_VERSION_MINOR=${pyver#*.} +make DESTDIR=%{buildroot} -C bindings/python clean make DESTDIR=%{buildroot} -C bindings/python install } %python_compileall