# $Id: tclodbc.spec,v 1.3 2003/12/24 11:09:54 jfontain Exp $ Summary: ODBC interface for Tcl Name: tclodbc Version: 2.2.1 Release: 0.fdr.1 Epoch: 0 License: BSD-like Group: Development/Libraries Source: http://download.sourceforge.net/tclodbc/tclodbc.2.2.1.tar.gz URL: http://sourceforge.net/projects/tclodbc Packager: Jean-Luc Fontaine BuildRequires: gcc-c++, %_includedir/tcl.h, unixODBC-devel Requires: tcl >= 0:8.3.1, unixODBC BuildRoot: %_tmppath/%name-%version-%release-root-%(%__id_u -n) %description Tclodbc is an extension to the Tool Command Language (Tcl) that provides ODBC (Open DataBase Connectivity) access to SQL database servers. %prep %setup -q -n %name %build sed -e 's/@VERSION@/%version/' tclodbc.hxx.in > tclodbc.hxx c++ -shared $RPM_OPT_FLAGS -o lib%name.so.%version -fPIC -DINCLUDE_EXTENSIONS -DDONT_TD_VOID *.cxx -lodbc -lodbcinst %install DIRECTORY=$RPM_BUILD_ROOT%_libdir/%name install -d $DIRECTORY install lib%name.so.%version $DIRECTORY echo 'package ifneeded %name %version [list load [file join $dir lib%name.so.%version]]' > $DIRECTORY/pkgIndex.tcl %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README license.txt doc/reference.htm doc/samples.htm doc/utilref.htm %_libdir/%name %changelog * Tue Dec 24 2003 Jean-Luc Fontaine 0:2.2.1-0.fdr.1 - first Fedora Core 1 compatible package