[owfs] Fixed hardcoded tcl_sitearch
Jaroslav Škarvada
jskarvad at fedoraproject.org
Sat May 24 21:06:21 UTC 2014
commit df66106648fb3646fa7b132616b39075ba39aa88
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date: Sat May 24 23:05:57 2014 +0200
Fixed hardcoded tcl_sitearch
owfs.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/owfs.spec b/owfs.spec
index 8da2561..d7ef7c9 100644
--- a/owfs.spec
+++ b/owfs.spec
@@ -1,3 +1,6 @@
+%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)}
+%{!?tcl_sitearch: %global tcl_sitearch %{_prefix}/%{_lib}/tcl%{tcl_version}}
+
Name: owfs
Version: 2.9p5
Release: 2%{?dist}
@@ -384,8 +387,8 @@ exit 0
%files tcl
-%dir %{_libdir}/tcl8.5/owtcl-*
-%{_libdir}/tcl8.5/owtcl-*/*
+%dir %{tcl_sitearch}/owtcl-*
+%{tcl_sitearch}/owtcl-*/*
%{_mandir}/mann/owtcl.n.*
%{_mandir}/mann/ow.n.*
More information about the scm-commits
mailing list