public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Kofler <Kevin@tigcc.ticalc.org>
To: git-commits@fedoraproject.org
Subject: [rpms/kig] epel10: Fix Python paths for Python 3.8.
Date: Tue, 04 Aug 2026 19:44:49 GMT	[thread overview]
Message-ID: <178587268983.1.2608799438447545524.rpms-kig-8a08497c0a17@fedoraproject.org> (raw)

            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}

                 reply	other threads:[~2026-08-04 19:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178587268983.1.2608799438447545524.rpms-kig-8a08497c0a17@fedoraproject.org \
    --to=kevin@tigcc.ticalc.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox