File sqlite3-tcl.spec of Package sqlite3-tcl

#
# spec file for package sqlite3-tcl
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%if 0%{?!tcl_archdir:1}
# tcl_archdir didn't exist before openSUSE 11.0
%define tcl_archdir %{expand:%(echo 'puts [lindex $tcl_pkgPath 0]' | tclsh)}
%endif
%define tarversion %{expand:%(IFS=.; a="%{version}"; printf "%d%02d%02d%02d" $a)}
#

Name:           sqlite3-tcl
Version:        3.7.5
Release:        1
BuildRequires:  sqlite3-devel tcl-devel
License:        Public Domain, Freeware
Group:          Development/Libraries/Tcl
Summary:        Tcl binding for SQLite
Url:            http://sqlite.org/
Source:         sqlite-tea-%tarversion.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains laguage bindings from the Tcl programming
language SQLite.

SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process.

Authors:
--------
    D. Richard Hipp <drh@hwaci.com>

%prep
%setup -n sqlite-tea-%tarversion

%build
%configure --with-tcl=%_libdir --with-system-sqlite

%install
make install DESTDIR=%buildroot libdir=%tcl_archdir

%clean
  rm -rf %buildroot

%files
%defattr(-,root,root)
%tcl_archdir
%doc %_mandir/mann/*
%changelog
openSUSE Build Service is sponsored by