From cd7455666d2e9d489eb703b0ad8839be79f8c492 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 2 Dec 2008 20:35:27 +0000 Subject: [PATCH] - bah, mock src.rpm generation doesnt like macros depending on build-required things.. - tclsh is only required if tcl enabled --- sqlite.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlite.spec b/sqlite.spec index ed31dfd..cff8122 100644 --- a/sqlite.spec +++ b/sqlite.spec @@ -15,10 +15,10 @@ Source: http://www.sqlite.org/sqlite-%{version}.tar.gz Patch1: sqlite-3.6.6.2-libdl.patch Obsoletes: sqlite3 sqlite3-devel BuildRequires: ncurses-devel readline-devel glibc-devel -BuildRequires: /usr/bin/tclsh %if %{with tcl} +BuildRequires: /usr/bin/tclsh BuildRequires: tcl-devel -%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)} +%{!?tcl_version: %global tcl_version 8.5} %{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}} %endif BuildRoot: %{_tmppath}/%{name}-root