# $Id: tktable.spec,v 1.13 2001/07/10 20:29:00 jfontain Exp $ %define version 2.7 %define directory /usr Summary: table/matrix widget extension to Tcl/Tk. Name: tktable Version: %{version} Release: 1 Copyright: public domain Group: Development/Languages/Tcl Source: http://prdownloads.sourceforge.net/tktable/Tktable%{version}.tar.gz URL: http://www.purl.org/net/hobbs/tcl/capp/ Packager: Jean-Luc Fontaine BuildRequires: XFree86-libs >= 4, XFree86-devel >= 4, tk >= 8.3.1 AutoReqProv: no Requires: tk >= 8.3.1 Buildroot: /var/tmp/%{name}%{version} %description Tktable provides a table/matrix widget for Tk programs. Features: multi-line cells, embedded windows, variable width columns/height rows (interactively resizable), scrollbar support, tag styles per row, column or cell, in-cell editing, works on UNIX, Windows and MacIntosh, Unicode support with Tk 8.1 and above. %prep %setup -q -c %build cd Tktable%{version}/unix ./configure --with-tcl=%{directory}/lib --with-tk=%{directory}/lib sed -e 's,$(SHLIB_LD) -o $@ $(OBJS) $(SHLIB_LD_LIBS) $(TK_LD_SEARCH_FLAGS),$(SHLIB_LD) -o $@ $(OBJS),;' Makefile > $$; mv $$ Makefile make TBL_CFLAGS=-O2 %install cd Tktable%{version} DIRECTORY=$RPM_BUILD_ROOT%{directory}/lib/%{name}%{version} install -d $DIRECTORY install unix/Tktable.so $DIRECTORY/Tktable.so.%{version} install -m 644 unix/pkgIndex.tcl library/tkTable.tcl $DIRECTORY install -d $RPM_BUILD_ROOT%{directory}/man/mann install -m 644 doc/tkTable.n $RPM_BUILD_ROOT%{directory}/man/mann install -m 644 ChangeLog README.txt README.blt TODO.txt UPGRADING.txt license.txt .. install -d ../doc install -m 644 doc/tkTable.html ../doc %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc ChangeLog README.txt README.blt TODO.txt UPGRADING.txt license.txt doc/tkTable.html %{directory}/lib/%{name}%{version} %{directory}/man/mann/tkTable.n.gz