File iwidgets.spec of Package iwidgets

# spec file for package iwidgets (Version 4.0.1)
# 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

# norootforbuild

Name:           iwidgets
BuildRequires:  tcl
Version:        4.0.1
Release:        370
License:        X11/MIT
Group:          Development/Languages/Tcl
Source0:        %name%version.tar.bz2
Patch0:         %name%version.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Summary:        Widget Extension for Tcl/Tk
Requires:       itk

[incr Widgets] is an object-oriented mega-widget set that extends
Tcl/Tk and is based on [incr Tcl] and [incr Tk].  This set of
mega-widgets delivers many new, general purpose widgets like option
menus, comboboxes, selection boxes, and various dialogs whose
counterparts are found in Motif and Windows. Since [incr Widgets] is
based on the [incr Tk] extension, the Tk framework of configuration
options, widget commands, and default bindings is maintained.  In other
words, each [incr Widgets] mega-widget seamlessly blends with the
standard Tk widgets. They look, act, and feel like Tk widgets. In
addition, all [incr Widgets] mega-widgets are object oriented and may
themselves be extended, using either inheritance or composition.

    Michael J. McLennan <>
    Dr. John Ousterhout <>

%setup -q -n %name%version

%configure --with-tcl=%_libdir --with-tk=%_libdir

rm -rf %buildroot
make install \
	INSTALL=/usr/bin/install \
	MKINSTALLDIRS="mkdir -p" \
	INSTALL_ROOT=%buildroot \
	MAN_INSTALL_DIR='$(INSTALL_ROOT)%_mandir/mann' \
# Put the right path to wish into the iwidget demos,
# and fix the permissions.
for f in $(find %buildroot%_prefix/lib/%name%version/demos %buildroot%tclscriptdir/%name%version/demos -type f); do
    if test -x $f && grep 'package require Iwidgets' $f > /dev/null; then
        ( echo '#!/usr/bin/wish'; cat $f ) > $
        mv $ $f
        chmod a+x $f
        chmod a-x $f

rm -rf %buildroot

%doc %_mandir/mann/*

* Mon May 19 2008
- Change Requires to reflect the split of itk from itcl.
* Fri Nov 10 2006
- fix docu permissions
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Jun 17 2005
- Moved the sctipt library to /usr/share/tcl .
* Mon Feb 02 2004
- added option # norootforbuild in specfile
* Wed Jul 23 2003
- Removed unneeded stuff from neededforbuild.
* Mon Jan 13 2003
- This package has been split off from itcl, because the sources
  are separate projects now.
- New version 4.0.1.
- As the dependencies for Tcl extensions can't currently be
  tracked automatically, packages that depend on itcl might
  need to be changed to depend on iwidgets as well, if they
  actually use it.
openSUSE Build Service is sponsored by