]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - tcl.spec
- more updates
[projects/template-specs.git] / tcl.spec
index 93731c582bdc65305a904e20ab8d04fbdd208ec9..35309e3658ce555bcb5bbb6f904ce9512dab9da1 100644 (file)
--- a/tcl.spec
+++ b/tcl.spec
@@ -1,3 +1,12 @@
+
+# as th tcl is broken, use rpmdb:
+#%%define              tcl_version             %(echo 'puts $tcl_version' | tclsh)
+%define                tcl_version             %(rpm -q --qf %{V} tcl-devel | cut -d. -f1,2)
+%define                tcl_sitearch    %{_libdir}/tcl%{tcl_version}
+# pld tcl doesn't use %{_datadir}
+#%%define              tcl_sitelib             %{_datadir}/tcl%{tcl_version}
+%define                tcl_sitelib             %{_libdir}/tcl%{tcl_version}
+
 Summary:       Tcl TEMPLATE
 Name:          tcl-TEMPLATE
 Version:       0.1
@@ -8,7 +17,7 @@ Source0:       http://dl.sourceforge.net/tcl/TEMPLATE%{version}.tar.gz
 # Source0-md5: 3c69b4a891590f23bb79a1fa98d879f7
 URL:           http://tcl.sourceforge.net/
 BuildRequires: tcl-devel >= 8.4
-Requires:      tcl >= 8.4
+Requires:      tcl >= %{tcl_version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
This page took 0.026093 seconds and 4 git commands to generate.