File spectcl.spec of Package spectcl

# spec file for package spectcl
# Copyright (c) 2014 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

Name:           spectcl
Release:        0
Summary:        Interface Builder for Tcl/Tk and Java
License:        SUSE-Sun-Laboratories
Group:          Development/Tools/GUI Builders
Patch0:         SpecTcl1.1-dir.patch
Patch1:         SpecTcl1.1-tk8.4.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Provides:       SpecTcl1.1
Requires:       tk

An interface builder for Tcl/Tk and Java.

Main Features of SpecTcl: * Easy to Learn:SpecTcl's drag & drop
   interface along with a powerful toolbar and on-line help that
   make it easy to start building GUI applications.

* Tcl and Java Support: SpecTcl generates both Tcl and Java code.
   Note: this generates code for the old JDK 1.0

* Platform Independent: SpecTcl runs on all major platforms:
   Solaris, SunOS, Linux, Windows 95, Windows NT, MacOS, and Irix.

* Constraint Based Geometry Manager: Alignment and resizing of widgets
(buttons, check boxes, and more.) is automatic. This makes creating
dynamic UIs and cross platform UIs a snap!

    Raymond Johnson <>
    Ioi Lam
    Allan Pratt

%setup -q -n SpecTcl
#%patch -P 0
#%patch -P 1


#touch /lastinit
INSTALLDIR="install -m 755 -d"
INSTALLEXE="install -m 755"
INSTALLFIL="install -m 644"
export SPECTCL_LIB=/usr/share/SpecTcl
export DOCDIR=%{_defaultdocdir}/spectcl
( cd bin && ${INSTALLEXE} specTcl specJava $RPM_BUILD_ROOT/${SPECTCL_LIB}/bin )
for i in `find SpecTcl -type f`
for i in `find demo -type f`
for i in `find examples -type f`
    cd $RPM_BUILD_ROOT/usr/bin && \
    rm -f specTcl  && ln -s ${SPECTCL_LIB}/bin/specTcl && \
    rm -f specJava && ln -s ${SPECTCL_LIB}/bin/specJava
#fix executable permissions for tcl scripts
chmod ugo+x *tcl

%doc license.terms changes README README.JAVA INSTALL.JAVA
%docdir /usr/share/SpecTcl/SpecTcl/help

openSUSE Build Service is sponsored by