]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Bring python singlespec nearer to the documentation
authorMichael Schroeder <mls@suse.de>
Tue, 6 Feb 2024 14:01:11 +0000 (15:01 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 6 Feb 2024 14:01:11 +0000 (15:01 +0100)
package/libsolv.spec.in

index 89a885a59015d679c53231cb40870a6a91ed5bac..434dabf5db54e6c9e9b964e17d7d3f0673ca8f1d 100644 (file)
@@ -285,8 +285,8 @@ ln -s repo2solv %{buildroot}/%{_bindir}/repo2solv.sh
 %endif
 %endif
 %if %{with python_singlespec}
-%{python_expand 
-pyver=%%python_version
+%{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