File tktable.spec of Package tktable

#
# spec file for package tktable (Version 2.9)
#
# Copyright (c) 2009 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


Name:           tktable
BuildRequires:  tk-devel xorg-x11-devel
Version:        2.9
Release:        176
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A Table/Matrix Widget Extension to Tcl/Tk
Group:          Development/Libraries/Tcl
License:        BSD 3-Clause
Source:         Tktable%{version}.tar.bz2
Patch0:         tktable.patch
Patch1:         tktable-warnings.patch

%description
The basic features of the widgets are:

* multi-line cells

* support for embedded windows (one per cell)

* row & column spanning

* variable width/height columns/rows (interactively re-sizable)

* row and column titles

* multiple data sources ((Tcl array || Tcl command) &| internal
   caching)

* supports standard Tk reliefs, fonts, colors, etc.

* x/y scrollbar support

* 'tag' styles per row, column or cell to change visual appearance

* in-cell editing - returns value back to data source

* support for disabled (read-only) tables or cells (via tags)

* multiple selection modes, with "active" cell

* multiple drawing modes to get optimal performance for larger
   tables

* optional 'flashes' when things update

* cell validation support

* works everywhere Tk does (including Windows and Mac!)

* unicode support (Tk8.1+)



Authors:
--------
    Jeffrey Hobbs <jeff.hobbs@acm.org>

%prep
%setup -q -n Tktable%{version}
%patch0
%patch1

%build
autoconf
export CFLAGS="%optflags"
./configure \
	--prefix=%_prefix \
	--libdir=%_libdir \
	--with-tcl=%_libdir \
	--with-tk=%_libdir \
	--mandir=%_mandir
make

%install
make install DESTDIR=%buildroot tclscriptdir=%tclscriptdir
mkdir -p %buildroot%_mandir/mann
install -m 644 doc/tkTable.n %buildroot%_mandir/mann

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%_mandir/mann/*
%_libdir/lib*
%tclscriptdir/*
%doc ChangeLog README.blt README.txt
%doc TODO.txt license.txt UPGRADING.txt
%doc demos doc/tkTable.html

%changelog
* Thu Jan 25 2007 max@suse.de
- Fixed some warnings and made sure everything is compiled with
  optflags.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 13 2005 max@suse.de
- Fixed a typo in tcl.m4 that broke configure with bash 3.1.
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Thu Jul 28 2005 max@suse.de
- New version: 2.9.
- Moved the script library to /usr/share/tcl .
* Wed Jul 23 2003 max@suse.de
- New version: 2.8.
- Added tk-devel to neededforbuild.
* Mon Nov 11 2002 ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
- changed neededforbuild <xdevel> to <>
* Tue Jun 04 2002 ro@suse.de
- fix build on lib64
* Mon Jan 21 2002 max@suse.de
- new package: tktable-2.7
- A table widget for Tk
openSUSE Build Service is sponsored by