SPECS: sqlite3.spec - added doc and tcl build conditionals
wrobell
wrobell at pld-linux.org
Fri Sep 30 17:08:33 CEST 2005
Author: wrobell Date: Fri Sep 30 15:08:33 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added doc and tcl build conditionals
---- Files affected:
SPECS:
sqlite3.spec (1.15 -> 1.16)
---- Diffs:
================================================================
Index: SPECS/sqlite3.spec
diff -u SPECS/sqlite3.spec:1.15 SPECS/sqlite3.spec:1.16
--- SPECS/sqlite3.spec:1.15 Mon Sep 26 12:54:59 2005
+++ SPECS/sqlite3.spec Fri Sep 30 17:08:28 2005
@@ -4,12 +4,14 @@
#
# Conditional build:
%bcond_without tests # don't run tests
+%bcond_without tcl # disable tcl extension
+%bcond_without docs # disable documentation building
#
Summary: SQLite library
Summary(pl): Biblioteka SQLite
Name: sqlite3
Version: 3.2.7
-Release: 1
+Release: 2
License: LGPL
Group: Libraries
# Source0Download: http://sqlite.org/download.html
@@ -21,7 +23,7 @@
BuildRequires: automake
BuildRequires: libtool
BuildRequires: readline-devel
-BuildRequires: tcl-devel
+%{?with_tcl:BuildRequires: tcl-devel}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%ifarch alpha %{x8664}
@@ -149,10 +151,14 @@
%{__aclocal}
%{__autoconf}
%configure \
- --with-tcl=%{_ulibdir} \
+ %{?with_tcl:--with-tcl=%{_ulibdir}} \
+ %{!?with_tcl:--disable-tcl} \
--enable-threadsafe
%{__make}
+
+%if %{with docs}
%{__make} doc
+%endif
%{?with_tests:LC_ALL=C %{__make} test}
@@ -190,11 +196,13 @@
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%if %{with tcl}
%files -n tcl-%{name}
%defattr(644,root,root,755)
%dir %{_ulibdir}/tcl*/sqlite3
%attr(755,root,root) %{_ulibdir}/tcl*/sqlite3/*.so
%{_ulibdir}/tcl*/sqlite3/*.tcl
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -202,6 +210,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.16 2005/09/30 15:08:28 wrobell
+- added doc and tcl build conditionals
+
Revision 1.15 2005/09/26 10:54:59 zboczuch
- up to 3.2.7
- fix conflict-tests (patch excluded from sqlite's CVS)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sqlite3.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list