[plplot] Determine itcl/itk versions automatically
Orion Poplawski
orion at fedoraproject.org
Sat Feb 15 14:49:33 UTC 2014
commit 1a448f10aa1901fdd749c553b66bf297d61660ee
Author: Orion Poplawski <orion at nwra.com>
Date: Sat Feb 15 07:48:37 2014 -0700
Determine itcl/itk versions automatically
plplot.spec | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plplot.spec b/plplot.spec
index 172286f..6158ee3 100644
--- a/plplot.spec
+++ b/plplot.spec
@@ -369,10 +369,10 @@ unset TERM
printenv
# We assume that tk version is the same as tcl, cannot check without DISPLAY
tkver=$(echo 'puts [info patchlevel]; exit' | tclsh)
-# Hardcode for now - need a way to determine versions
-itclver=3.4
-itkver=3.4
-iwidgetsver=4.0.2
+# Hacks to determine versions without DISPLAY
+itclver=$(echo %{_libdir}/libitcl*.so | sed -e 's/.*\([0-9]\.[0-9]\)\.so/\1/')
+itkver=$(echo %{_libdir}/libitk*.so | sed -e 's/.*\([0-9]\.[0-9]\)\.so/\1/')
+iwidgetsver=$(echo %{_datadir}/tcl*/iwidgets* | sed -e 's/.*iwidgets//')
%cmake .. \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
-DF95_MOD_DIR:PATH=%{_fmoddir} \
More information about the scm-commits
mailing list