From: Michael Schroeder Date: Fri, 26 Jan 2024 10:34:01 +0000 (+0100) Subject: Add 'make clean' in singlespec build X-Git-Tag: 0.7.28~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7a378972e3776b832b229b5ed321caacbf41bad;p=thirdparty%2Flibsolv.git 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... --- diff --git a/package/libsolv.spec.in b/package/libsolv.spec.in index 9a70c72a..89a885a5 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