diff --git a/sqlite.spec b/sqlite.spec index ef4fce0..23998e8 100644 --- a/sqlite.spec +++ b/sqlite.spec @@ -1,5 +1,5 @@ # --with-tcl enables sqlite-tcl subpackage, and also makes %%check possible. -%bcond_with tcl +%define tcl 0%{?_with_tcl:1} Summary: Library that implements an embeddable SQL database engine Name: sqlite @@ -12,7 +12,7 @@ Source: http://www.sqlite.org/sqlite-%{version}.tar.gz Obsoletes: sqlite3 sqlite3-devel BuildRequires: ncurses-devel readline-devel BuildRequires: /usr/bin/tclsh -%if %{with tcl} +%if %{tcl} BuildRequires: tcl-devel %endif BuildRoot: %{_tmppath}/%{name}-root @@ -36,7 +36,7 @@ This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. -%if %{with tcl} +%if %{tcl} %package tcl Summary: Tcl module for the sqlite3 embeddable SQL database engine. Group: Development/Languages @@ -61,7 +61,7 @@ make DESTDIR=${RPM_BUILD_ROOT} install %{__install} -D -m0644 sqlite3.1 %{buildroot}%{_mandir}/man1/sqlite3.1 -%if %{with tcl} +%if %{tcl} %check make test %endif @@ -89,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc -%if %{with tcl} +%if %{tcl} %files tcl %defattr(-, root, root) %{_datadir}/tcl*/sqlite3