public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kig] epel10: Fix Python paths for Python 3.8.
@ 2026-08-04 19:44 Kevin Kofler
0 siblings, 0 replies; only message in thread
From: Kevin Kofler @ 2026-08-04 19:44 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/kig
Branch : epel10
Commit : 8a08497c0a17f4102c3d73ae13dc1ad6867b5b85
Author : Kevin Kofler <Kevin@tigcc.ticalc.org>
Date : 2019-10-29T15:39:21+01:00
Stats : +6/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/kig/c/8a08497c0a17f4102c3d73ae13dc1ad6867b5b85?branch=epel10
Log:
Fix Python paths for Python 3.8.
Determine them in a portable way.
---
diff --git a/kig.spec b/kig.spec
index 39c1890..078f85d 100644
--- a/kig.spec
+++ b/kig.spec
@@ -1,3 +1,5 @@
+%global _python3_include %(%{__python3} -Ic "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
+%global _python3_lib %{_libdir}/lib%(basename %{_python3_include}).so
Name: kig
Summary: Interactive Geometry
@@ -72,10 +74,10 @@ mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-DPYTHON_EXECUTABLE:PATH=%{__python3} \
- -DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python3_version}m \
- -DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}m.so \
- -DBoostPython_INCLUDE_DIRS="%{_includedir}/python%{python3_version}m;%{_includedir}/boost" \
- -DBoostPython_LIBRARIES="%{_libdir}/libpython%{python3_version}m.so;%{_libdir}/libboost_python%{python3_version_nodots}.so"
+ -DPYTHON_INCLUDE_DIR=%{_python3_include} \
+ -DPYTHON_LIBRARY=%{_python3_lib} \
+ -DBoostPython_INCLUDE_DIRS="%{_python3_include};%{_includedir}/boost" \
+ -DBoostPython_LIBRARIES="%{_python3_lib};%{_libdir}/libboost_python%{python3_version_nodots}.so"
popd
%make_build -C %{_target_platform}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-04 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-04 19:44 [rpms/kig] epel10: Fix Python paths for Python 3.8 Kevin Kofler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox