File itcl.spec of Package itcl

#
# spec file for package itcl (Version 3.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           itcl
BuildRequires:  tcl-devel
Version:        3.4
Release:        3
AutoReqProv:    on
Group:          Development/Languages/Tcl
License:        X11/MIT
Summary:        Object Oriented Extension for Tcl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name%version-20080207.tar.bz2

%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:        X11/MIT

%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
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Fri Apr 04 2008 max@suse.de
- Update to version 3.4 from CVS, which works with Tcl 8.5.
- Separate itcl and itk source packages
- Add itcl-devel subpackage.
* Wed May 16 2007 olh@suse.de
- remove unused libusb from Buildrequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Dec 14 2005 ro@suse.de
- fixed syntax error in tcl configure
* Tue Jun 14 2005 max@suse.de
- Updated to current CVS snapshot.
- Moved script libraries to /usr/share/tcl .
* Thu Nov 11 2004 ro@suse.de
- fixed file list
* Tue Aug 17 2004 max@suse.de
- Updated to current CVS snapshot.
- Cleaned up the spec file from lots of old cruft.
- Disabled running the test suite due to problems with Xvfb.
* Sat Apr 24 2004 sndirsch@suse.de
- fixed neededforbuild (XFree86 --> xorg-x11)
* Sun Feb 22 2004 ro@suse.de
- added libusb and resmgr to neededforbuild
* Fri Feb 06 2004 max@suse.de
- Added -fno-strict-aliasing to CFLAGS.
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr and %%run_ldconfig
* Wed Jul 23 2003 max@suse.de
- Added tk-devel to neededforbuild.
* Thu Jan 09 2003 ro@suse.de
- added freetype2 to neededforbuild (needed to run Xvfb)
* Thu Nov 28 2002 max@suse.de
- Itcl is a source package of it's own now.
  For older history see the change log of the tcl package.
- New CVS snapshot: itcl3.3-20021030
- Build with threading support if Tcl was built to support threads.
- Place the libraries in libdir instead of libdir/itcl3.3
- Running the testsuite during build. The following tests are known
  to fail currently: basic-5.6a, mkindex-1.3, interp-1.2
openSUSE Build Service is sponsored by