]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add 'make clean' in singlespec build
authorMichael Schroeder <mls@suse.de>
Fri, 26 Jan 2024 10:34:01 +0000 (11:34 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 26 Jan 2024 10:34:01 +0000 (11:34 +0100)
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

index 9a70c72a06bebd06ed22d8e0c878879468d14de0..89a885a59015d679c53231cb40870a6a91ed5bac 100644 (file)
@@ -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