08d051c
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
08d051c
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
7bbd7f1
%define major_ver 8.4
bea1e99
%define tcltk_ver 8.4.13
08d051c
#define for 8.4 is needed, tclx wasn't updated on higher version
cvsdist c4a68ec
54ccaff
# Disable 'make test' for now since the unit tests are broken
54ccaff
%define _without_check 1
54ccaff
cvsdist c4a68ec
Summary: Extensions for Tcl and Tk
cvsdist c4a68ec
Name: tclx
6a14071
Version: %{major_ver}.0
08d051c
Release: 9%{?dist}
cvsdist c4a68ec
License: BSD
cvsdist c4a68ec
Group: Development/Languages
cvsdist c4a68ec
URL: http://tclx.sourceforge.net/
7bbd7f1
Source: http://prdownloads.sourceforge.net/tclx/tclx%{major_ver}.tar.bz2
d2e1354
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7bbd7f1
Requires: tcl >= %{tcltk_ver}, tk >= %{tcltk_ver}
7bbd7f1
BuildRequires: tcl-devel >= %{tcltk_ver}, tk-devel >= %{tcltk_ver}
939b0bf
#BuildRequires: autoconf
7bbd7f1
Patch1: tclx-%{major_ver}-varinit.patch
7bbd7f1
Patch2: tclx-%{major_ver}-relid.patch
939b0bf
Patch3: tclx-%{major_ver}-man.patch
cvsdist c4a68ec
cvsdist c4a68ec
%description
cvsdist c4a68ec
Extended Tcl (TclX) is a set of extensions to the Tcl programming language.
cvsdist c4a68ec
Extended Tcl is oriented towards system programming tasks and large
cvsdist c4a68ec
application development.  TclX provides additional interfaces to the
cvsdist c4a68ec
operating system, and adds many new programming constructs, text manipulation
cvsdist c4a68ec
and debugging tools.
d2e1354
This package contains the tclx documentation.
cvsdist c4a68ec
cvsdist c4a68ec
%package devel
cvsdist c4a68ec
Summary: Extended Tcl development files
cvsdist c4a68ec
Group: Development/Languages
cvsdist c4a68ec
Requires: tclx = %{version}-%{release}
cvsdist c4a68ec
cvsdist c4a68ec
%description devel
cvsdist c4a68ec
Extended Tcl (TclX) is a set of extensions to the Tcl programming language.
cvsdist c4a68ec
Extended Tcl is oriented towards system programming tasks and large
cvsdist c4a68ec
application development.  TclX provides additional interfaces to the
cvsdist c4a68ec
operating system, and adds many new programming constructs, text manipulation
cvsdist c4a68ec
and debugging tools.
cvsdist c4a68ec
cvsdist c4a68ec
This package contains the tclx development files needed for building
cvsdist c4a68ec
tix applications.
cvsdist c4a68ec
cvsdist c4a68ec
%prep
7bbd7f1
%setup -q -n tclx%{major_ver}
7bbd7f1
%patch1 -p1 -b .1.varinit
7bbd7f1
%patch2 -p1 -b .2.relid
939b0bf
%patch3 -p1 -b .3.patch
cvsdist c4a68ec
7bbd7f1
# patch2 touches tcl.m4
f80eac9
7bbd7f1
%build
7bbd7f1
%configure \
7bbd7f1
   --enable-tk=YES \
7bbd7f1
   --with-tclconfig=%{_libdir} \
7bbd7f1
   --with-tkconfig=%{_libdir} \
7bbd7f1
   --with-tclinclude=%{_includedir} \
7bbd7f1
   --with-tkinclude=%{_includedir} \
7bbd7f1
   --enable-gcc \
08d051c
   --enable-64bit \
08d051c
   --libdir=%{tcl_sitearch}
cvsdist c4a68ec
# smp building doesn't work
cvsdist c4a68ec
make all
cvsdist c4a68ec
d2e1354
%check
7bbd7f1
# run "make test" by default
7bbd7f1
%{?_without_check: %define _without_check 1}
7bbd7f1
%{!?_without_check: %define _without_check 0}
7bbd7f1
7bbd7f1
%if ! %{_without_check}
7bbd7f1
   make test
7bbd7f1
%endif
7bbd7f1
cvsdist c4a68ec
%install
cvsdist c4a68ec
rm -rf $RPM_BUILD_ROOT
cvsdist c4a68ec
cvsdist f8b7b9f
# utf-8 locale needed to avoid truncating help files
939b0bf
# it's easy way to change encoding on utf8
d2e1354
LANG=en_US.UTF-8 make install DESTDIR=$RPM_BUILD_ROOT
cvsdist c4a68ec
cvsdist c4a68ec
%clean
cvsdist c4a68ec
rm -rf $RPM_BUILD_ROOT
cvsdist c4a68ec
cvsdist c4a68ec
%post -p /sbin/ldconfig
cvsdist c4a68ec
cvsdist c4a68ec
%postun -p /sbin/ldconfig
cvsdist c4a68ec
cvsdist c4a68ec
%files
cvsdist c4a68ec
%defattr(-,root,root,-)
d2e1354
%doc ChangeLog README
08d051c
%{tcl_sitearch}/%{name}%{major_ver}
d2e1354
%{_mandir}/mann/*
939b0bf
%{_mandir}/man3/*
cvsdist c4a68ec
cvsdist c4a68ec
%files devel
cvsdist c4a68ec
%defattr(-,root,root,-)
cvsdist c4a68ec
%{_includedir}/*
cvsdist c4a68ec
cvsdist c4a68ec
%changelog
08d051c
* Mon Jan  7 2008 Marcela Maslanova <mmaslano@redhat.com> - 8.4.0-9
08d051c
- rebuild for tcl8.5
08d051c
fd359f5
* Fri Aug 24 2007 Marcela Maslanova <mmaslano@redhat.com> - 8.4.0-8
fd359f5
- rebuild for mass rebuild, check license
fd359f5
939b0bf
* Tue Mar 20 2007 Marcela Maslanova <mmaslano@redhat.com> - 8.4.0-7
939b0bf
- rebuild for merge review
939b0bf
d2e1354
* Thu Mar 7 2007 Marcela Maslanova <mmaslano@redhat.com> - 8.4.0-6
d2e1354
- rebuild for merge review
d2e1354
6a14071
* Tue Oct 2 2006 Marcela Maslanova <mmaslano@redhat.com> - 8.4.0-5
6a14071
- rebuild
6a14071
e2d8f5b
* Fri Sep 15 2006 Marcela Maslanova <mmaslano@redhat.com> - 8.4-4
e2d8f5b
- rebuild
e2d8f5b
c722b0c
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 8.4.0-3.1
c722b0c
- rebuild
c722b0c
54ccaff
* Thu Jun 29 2006 David Cantrell <dcantrell@redhat.com> - 8.4.0-3
54ccaff
- Unit tests broken, disabling for now (#197107)
54ccaff
bea1e99
* Thu Apr 20 2006 David Cantrell <dcantrell@redhat.com> - 8.4.0-2
bea1e99
- Rebuild against Tcl/Tk 8.4.13
bea1e99
e3f3e21
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 8.4.0-1.2
e3f3e21
- bump again for double-long bug on ppc(64)
e3f3e21
537f75d
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 8.4.0-1.1
537f75d
- rebuilt for new gcc4.1 snapshot and glibc changes
537f75d
7bbd7f1
* Fri Feb 03 2006 David Cantrell <dcantrell@redhat.com> - 8.4.0-1
7bbd7f1
- Upgraded to tclx-8.4.0
7bbd7f1
- Removed patches that applied to the old build method for tclx
7bbd7f1
- Removed Tcl and Tk doc archives
7bbd7f1
234835f
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
234835f
- rebuilt
234835f
9a1c796
* Wed Mar  9 2005 Jens Petersen <petersen@redhat.com> - 8.3.5-6
9a1c796
- add unversioned symlinks to the static libs (Dave Botsch, 149734)
9a1c796
- rebuild with gcc 4
f80eac9
  - add tclx-8.3.5-clock_t-gcc4.patch to skip clock_t test in configure
f80eac9
  - buildrequire autoconf213
9a1c796
15b9e22
* Sun Feb 13 2005 Jens Petersen <petersen@redhat.com> - 8.3.5-5
15b9e22
- rebuild
15b9e22
75acdfc
* Thu Sep 30 2004 Jens Petersen <petersen@redhat.com> - 8.3.5-4
75acdfc
- buildrequire groff (Maxim Dzumanenko, 124554)
75acdfc
cvsdist 478dcfe
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 478dcfe
- rebuilt
cvsdist 478dcfe
cvsdist f8b7b9f
* Wed Mar 03 2004 Jens Petersen <petersen@redhat.com> - 8.3.5-2
cvsdist f8b7b9f
- install using utf-8 locale so that tclhelp help files get built properly
cvsdist f8b7b9f
  (#116804)
cvsdist f8b7b9f
cvsdist f8b7b9f
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> - 8.3.5-1.1
cvsdist f8b7b9f
- rebuilt
cvsdist f8b7b9f
cvsdist c4a68ec
* Wed Feb 25 2004 Jens Petersen <petersen@redhat.com> - 8.3.5-1
cvsdist c4a68ec
- new package split out from tcltk
cvsdist c4a68ec
- update to 8.3.5 release
cvsdist c4a68ec
- update source url
cvsdist c4a68ec
- no longer need tclx-8.3-argv.patch and tclx-8.3-helpdir.patch
cvsdist c4a68ec
- new devel and doc subpackages
cvsdist c4a68ec
- set TCLX_INST_LIB for configure
cvsdist c4a68ec
- add symlink for libtkx.so too
cvsdist c4a68ec
- clean build remnants from tclxConfig.sh and tkxConfig.sh
cvsdist c4a68ec
- rename memory.n to Memory.n, since tcl provides memory.n
cvsdist c4a68ec
- move help and manpages to -doc subpackage
cvsdist c4a68ec
- filtered out non-tclx changelog entries
cvsdist c4a68ec
- define tcltk_ver and use it
cvsdist c4a68ec
- include copy of tcl and tk manpages for buildhelp and
cvsdist c4a68ec
  apply tclx-8.3.5-tcltk-man-help.patch to point at them
cvsdist c4a68ec
cvsdist c4a68ec
* Wed Sep 17 2003 Matt Wilson <msw@redhat.com> 8.3.5-92
cvsdist c4a68ec
- rebuild again for #91211
cvsdist c4a68ec
cvsdist c4a68ec
* Fri Jan 17 2003 Jens Petersen <petersen@redhat.com> - 8.3.5-85
cvsdist c4a68ec
- build all except tclx with _smp_mflags
cvsdist c4a68ec
- add some requires
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Jan 14 2003 Jens Petersen <petersen@redhat.com> - 8.3.5-84
cvsdist c4a68ec
- link all libs with DT_SONAME using tcl.m4 patch (#81297)
cvsdist c4a68ec
- drop synthetic lib provides
cvsdist c4a68ec
- remove obsolete patches from srpm
cvsdist c4a68ec
- update buildrequires
cvsdist c4a68ec
- use buildroot instead of RPM_BUILD_ROOT
cvsdist c4a68ec
- install all man pages under mandir, instead of moving some from /usr/man
cvsdist c4a68ec
- introduce _genfilelist macro for clean single-sweep find filelist generation
cvsdist c4a68ec
  for each package
cvsdist c4a68ec
- use perl to remove buildroot prefix from filelists
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Jan  7 2003 Jeff Johnson <jbj@redhat.com> 8.3.5-80
cvsdist c4a68ec
- rebuild to generate deps for4 DSO's w/o DT_SONAME correctly.
cvsdist c4a68ec
cvsdist c4a68ec
* Sat Jan  4 2003 Jeff Johnson <jbj@redhat.com> 8.3.5-79
cvsdist c4a68ec
- set execute bits on library so that requires are generated.
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Dec 10 2002 Jens Petersen <petersen@redhat.com> 8.3.5-78
cvsdist c4a68ec
- make lib symlinks to .so not .so.0
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Dec 10 2002 Jens Petersen <petersen@redhat.com> 8.3.5-77
cvsdist c4a68ec
- build and install tclx with _libdir (not libdir!)
cvsdist c4a68ec
- fix summary-not-capitalized for tclx, tcllib, tcl-html
cvsdist c4a68ec
cvsdist c4a68ec
* Mon Dec  9 2002 Jens Petersen <petersen@redhat.com> 8.3.5-76
cvsdist c4a68ec
- make it build on x86_64 (details below)
cvsdist c4a68ec
- don't explicitly update config.{guess,sub} since %%configure does it for us
cvsdist c4a68ec
- build and install tclx and tkx with INST_RUNTIME files under datadir, and
cvsdist c4a68ec
  EXEC_RUNTIME file under libdir
cvsdist c4a68ec
- generate filelists from datadir and not from mandir from now on
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Dec  3 2002 Jens Petersen <petersen@redhat.com>
cvsdist c4a68ec
- update url for tcl, tk, tclx, itcl, tcllib
cvsdist c4a68ec
- build without all makecfg patches for now
cvsdist c4a68ec
  - in particular use upstream versioned library name convention
cvsdist c4a68ec
- add backward compatible lib symlinks for now
cvsdist c4a68ec
- use make's -C option rather than jumping in and out of source dirs
cvsdist c4a68ec
  during install
cvsdist c4a68ec
- use INSTALL_ROOT destdir-like make variable instead of makeinstall
cvsdist c4a68ec
  for all subpackages except tix and itcl
cvsdist c4a68ec
cvsdist c4a68ec
* Mon Oct 21 2002 Jens Petersen <petersen@redhat.com>
cvsdist c4a68ec
- move tclx HELP_DIR fix to separate patch
cvsdist c4a68ec
cvsdist c4a68ec
* Sat Jul 20 2002 Akira TAGOH <tagoh@redhat.com> 8.3.3-70
cvsdist c4a68ec
- tclx-8.3-nonstrip.patch: applied to fix the stripped binary issue.
cvsdist c4a68ec
cvsdist c4a68ec
* Mon Jan 07 2002 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist c4a68ec
- fix config.guess and config.sub to newer versions
cvsdist c4a68ec
cvsdist c4a68ec
* Mon Aug  8 2001 Adrian Havill <havill@redhat.com>
cvsdist c4a68ec
- re-enable glibc string and math inlines; recent gcc is a-ok.
cvsdist c4a68ec
- optimize at -O2 instead of -O
cvsdist c4a68ec
- rename "soname" patches related to makefile/autoconf changes
cvsdist c4a68ec
- added elf "needed" for tk, tclx, tix, itk
cvsdist c4a68ec
- removed warnings from tclX
cvsdist c4a68ec
cvsdist c4a68ec
* Wed Jul 25 2001 Adrian Havill <havill@redhat.com>
cvsdist c4a68ec
- fixed 64 bit RPM provides for dependencies
cvsdist c4a68ec
cvsdist c4a68ec
* Thu Jul 19 2001 Adrian Havill <havill@redhat.com>
cvsdist c4a68ec
- updated tclX to the latest version
cvsdist c4a68ec
- fixed tclX 8.3's busted help install
cvsdist c4a68ec
- eliminated make TK_LIB kludge for multiple math libs for tclX
cvsdist c4a68ec
- used %%makeinstall to brute force fix any remaining unflexible makefile dirs
cvsdist c4a68ec
cvsdist c4a68ec
* Sun Jul  8 2001 Adrian Havill <havill@redhat.com>
cvsdist c4a68ec
- refresh all sources to latest stable (TODO: separate expect/expectk)
cvsdist c4a68ec
- massage out some build stuff to patches (TODO: libtoolize hacked constants)
cvsdist c4a68ec
- remove patches already rolled into the upstream
cvsdist c4a68ec
- removed RPATH (bugs 45569, 46085, 46086), added SONAMEs to ELFs
cvsdist c4a68ec
- changed shared object filenames to something less gross
cvsdist c4a68ec
- fixed tclX shell's argv parsing (bug 47710)
cvsdist c4a68ec
cvsdist c4a68ec
* Fri Mar 23 2001 Bill Nottingham <notting@redhat.com>
cvsdist c4a68ec
- bzip2 sources
cvsdist c4a68ec
cvsdist c4a68ec
* Mon Mar 19 2001 Bill Nottingham <notting@redhat.com>
cvsdist c4a68ec
- build with -D_GNU_SOURCE - fixes expect on ia64
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Jun  6 2000 Jeff Johnson <jbj@redhat.com>
cvsdist c4a68ec
- tclX had wrong version.
cvsdist c4a68ec
cvsdist c4a68ec
* Fri Jun  2 2000 Jeff Johnson <jbj@redhat.com>
cvsdist c4a68ec
- FHS packaging changes.
cvsdist c4a68ec
cvsdist c4a68ec
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
cvsdist c4a68ec
- handle compressed manpages
cvsdist c4a68ec
cvsdist c4a68ec
* Thu Feb 03 2000 Elliot Lee <sopwith@redhat.com>
cvsdist c4a68ec
- Make changes from bug number 7602
cvsdist c4a68ec
- Apply patch from bug number 7537
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Nov 30 1999 Jakub Jelinek <jakub@redhat.com>
cvsdist c4a68ec
- fix tclX symlinks.
cvsdist c4a68ec
- compile on systems where SIGPWR == SIGLOST.
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Feb 16 1999 Jeff Johnson <jbj@redhat.com>
cvsdist c4a68ec
- upgrade tcl/tk/tclX to 8.0.4
cvsdist c4a68ec
cvsdist c4a68ec
* Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com>
cvsdist c4a68ec
- update tcl/tk/tclX to 8.0.3, expect is updated also.
cvsdist c4a68ec
cvsdist c4a68ec
* Thu May 07 1998 Prospector System <bugs@redhat.com>
cvsdist c4a68ec
- translations modified for de, fr, tr
cvsdist c4a68ec
cvsdist c4a68ec
* Wed Mar 25 1998 Cristian Gafton <gafton@redhat.com>
cvsdist c4a68ec
- updated tclX to 8.0.2
cvsdist c4a68ec
cvsdist c4a68ec
* Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
cvsdist c4a68ec
- built against glibc
cvsdist c4a68ec
- fixed dangling tclx/tkx symlinks