File itcl.spec of Package itcl

#
# spec file for package itcl (Version 3.4)
#
# Copyright (c) 2010 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:           itcl
BuildRequires:  tcl-devel
Version:        3.4
Release:        42
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      itcl-64bit
%endif
#
Group:          Development/Languages/Tcl
License:        MIT
Summary:        Object Oriented Extension for Tcl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name%version-20080207.tar.bz2
Source1:        baselibs.conf

%description
Incr Tcl adds object-oriented programming facilities to Tcl.  It was
NOT designed as another whiz-bang, object-oriented programming
language. It is patterned somewhat after C++.  It was designed to
support more structured programming in Tcl.  Scripts that grow beyond a
few thousand lines become extremely difficult to maintain. [incr Tcl]
attacks this problem in the same way that any object- oriented
programming language would, by providing mechanisms for data
encapsulation behind well-defined interfaces.



Authors:
--------
    Michael J. McLennan <michael.mclennan@att.com>
    Dr. John Ousterhout <john.ousterhout@eng.sun.com>

%package devel
Group:          Development/Languages/Tcl
Summary:        Header Files and C API Documentation for Itcl
License:        MIT
# bug437293
%ifarch ppc64
Obsoletes:      itcl-devel-64bit
%endif
#

%description devel
Incr Tcl adds object-oriented programming facilities to Tcl.

This package contains header files and documentation needed to access
[Incr Tcl] from C code. Tcl scripts that use [Incr Tcl] do not need
this package.



Authors:
--------
    Michael J. McLennan <michael.mclennan@att.com>
    Dr. John Ousterhout <john.ousterhout@eng.sun.com>

%prep
%setup -q -n %name%version

%build
export CFLAGS="%optflags -fno-strict-aliasing"
%configure --with-tcl=%_libdir
make

%install
%makeinstall pkglibdir=%_libdir/tcl/%name%version
# The stubs library needs to be in libdir
mv %buildroot%_libdir/tcl/*/lib*.a %buildroot%_libdir

%files
%defattr(-,root,root)
%doc README CHANGES ChangeLog INCOMPATIBLE TODO
%doc license.terms
%doc %_mandir/mann/*
%_libdir/tcl

%files devel
%defattr(-,root,root)
%_includedir/*
%attr(0644,root,root)
%_libdir/*Config.sh
%_libdir/lib*.a

%changelog
openSUSE Build Service is sponsored by