File PgTcl.spec of Package PgTcl
#
# spec file for package PgTcl
#
# 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/
#
Name: PgTcl
BuildRequires: krb5-devel openssl-devel postgresql-devel tcl-devel
Summary: Tcl Client Library for PostgreSQL
Version: 1.5
Release: 179
License: X11/MIT
Group: Productivity/Databases/Clients
Url: http://www.postgresql.org/
Source0: pgtcl%version.tar.bz2
Patch0: pgtcl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: pg_tcl postgresql-tcl
Provides: pg_tcl postgresql-tcl pg_ifa:/usr/lib/pgsql/bin/pgtclsh
%description
This package contains the libpgtcl client library as a loadable Tcl
package. It is needed to access PostgreSQL databases from Tcl scripts.
%prep
%setup -q -n pgtcl%version
%patch0
%build
autoconf
%configure \
--with-tcl=%_libdir \
--with-postgres-include=%_includedir/pgsql \
--with-postgres-lib=%_libdir
make %{?_smp_mflags}
make pkgIndex.tcl-hand %{?_smp_mflags}
%install
make install \
pkglibdir=%tclscriptdir/%name%version \
DESTDIR=%buildroot
%files
%defattr(-,root,root,-)
%doc ChangeLog README README.async TODO
%doc doc/PGTCL-NOTES doc/libpgtcl.pdf doc/html
%_includedir/libpgtcl.h
%_libdir/*so
%tclscriptdir
%changelog