cvsextras 1953b0
Summary: BLT widget extension to Tcl/Tk scripting language development
cvsextras 1953b0
Name: blt
cvsextras 1953b0
Version: 2.4
Jean-Luc Fontaine d295b1
Release: 14.z%{?dist}
4ce389
cvsextras 1953b0
License: MIT
cvsextras 1953b0
Group: Development/Libraries
cvsextras 1953b0
Source: http://download.sourceforge.net/blt/BLT2.4z.tar.gz
62bed1
Patch0: http://download.sourceforge.net/blt/blt2.4z-patch-2
62bed1
Patch1: http://jfontain.free.fr/blt2.4z-patch-64
cvsextras 1953b0
URL: http://sourceforge.net/projects/blt/
Jean-Luc Fontaine 87490d
BuildRequires: tk-devel >= 8.4.7
Jean-Luc Fontaine 87490d
Requires: tk >= 8.4.7
b580e6
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n)
cvsextras 1953b0
cvsextras 1953b0
%description
cvsextras 1953b0
BLT is a very powerful extension to Tk. It adds plotting widgets
cvsextras 1953b0
(graph, barchart and stripchart), hierarchy tree and table, tab
cvsextras 1953b0
notebook, table geometry manager, vector, background program
cvsextras 1953b0
execution, busy utility, eps canvas item, drag and drop facility,
cvsextras 1953b0
bitmap command and miscellaneous commands.
cvsextras 1953b0
Note: this version is stubs enabled and therefore should be compatible
cvsextras 1953b0
with Tcl/Tk versions after and including 8.3.1.
cvsextras 1953b0
cvsextras 1953b0
%prep
b580e6
%setup -q -n %{name}%{version}z
62bed1
%patch0 -p1
62bed1
%patch1 -p1
cvsextras 1953b0
cvsextras 1953b0
%build
b580e6
%configure --with-tcl=%{_libdir} --with-tk=%{_libdir}
cvsextras 1953b0
cd src/shared
cvsextras 1953b0
%__make SHLIB_LD_FLAGS=-shared # no _smp_mflags; race conditions.
cvsextras 1953b0
cvsextras 1953b0
%install
cvsextras 1953b0
rm -rf $RPM_BUILD_ROOT
b580e6
DIRECTORY=$RPM_BUILD_ROOT%{_libdir}/%{name}%{version}
cvsextras 1953b0
install -d $DIRECTORY
cvsextras 1953b0
install -m 755 -p src/shared/libBLT24.so src/shared/libBLTlite24.so $DIRECTORY
cvsextras 1953b0
install -m 644 -p library/*.{pro,tcl,xbm} library/tclIndex $DIRECTORY
cvsextras 1953b0
echo 'package ifneeded BLT 2.4 "if {[llength [info commands tk]] > 0} {load [file join $dir libBLT24.so]} else {load [file join $dir libBLTlite24.so] BLT}"' > $DIRECTORY/pkgIndex.tcl
cvsextras 1953b0
cp -p -r library/dd_protocols $DIRECTORY
cvsextras 1953b0
rm -f html/Makefile.vc
cvsextras 1953b0
cvsextras 1953b0
%clean
cvsextras 1953b0
rm -rf $RPM_BUILD_ROOT
cvsextras 1953b0
cvsextras 1953b0
%files
b580e6
%defattr(-,root,root,0755)
cvsextras 1953b0
%doc README INSTALL PROBLEMS html/
b580e6
%{_libdir}/%{name}%{version}/
cvsextras 1953b0
cvsextras 1953b0
%changelog
Jean-Luc Fontaine 0aeef8
Jean-Luc Fontaine d295b1
* Mon Aug 28 2006 Jean-Luc Fontaine <jfontain@free.fr> 2.4-14.z
Jean-Luc Fontaine d295b1
- added dist tag
Jean-Luc Fontaine d295b1
- rebuild for Fedora Extras 6
Jean-Luc Fontaine d295b1
Jean-Luc Fontaine 0aeef8
* Tue Feb 28 2006 Jean-Luc Fontaine <jfontain@free.fr> 2.4-13.z
Jean-Luc Fontaine 0aeef8
- rebuild for Fedora Extras 5
Jean-Luc Fontaine 0aeef8
Jean-Luc Fontaine 87490d
* Thu Nov 10 2005 Jean-Luc Fontaine <jfontain@free.fr> 2.4-12.z
Jean-Luc Fontaine 87490d
- only require tk and tk-devel for building
Jean-Luc Fontaine 87490d
4ce389
* Fri Apr  7 2005 Michael Schwendt <mschwendt[at]users.sf.net>
4ce389
- rebuilt
4ce389
62bed1
* Fri Nov 5 2004 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-10.z
62bed1
- added patch to allow building on 64 bit architectures
62bed1
- use %%libdir instead of %%prefix in configure for the same reason
cvsextras 1953b0
cvsextras 1953b0
* Tue Nov 16 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.9.z
cvsextras 1953b0
- in build requirements, work around tcl-devel and tk-devel packages non
cvsextras 1953b0
  existence in RH 8.0 and 9
cvsextras 1953b0
cvsextras 1953b0
* Wed Nov 7 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> 0:2.4-0.fdr.8.z
cvsextras 1953b0
- disabled %%_smp_mflags in make stage
cvsextras 1953b0
- escaped percent characters in change log
cvsextras 1953b0
cvsextras 1953b0
* Tue Nov 5 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.7.z
cvsextras 1953b0
- in installation stage, removed some leftover copies in parent
cvsextras 1953b0
  directory which left dirt in BUILD directory
cvsextras 1953b0
cvsextras 1953b0
* Tue Nov 4 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.6.z
cvsextras 1953b0
- changed release tag from 0.fdr.0.X.z to 0.fdr.X.z as this is a post
cvsextras 1953b0
  release
cvsextras 1953b0
- use "download.sourceforge.net/..." instead of
cvsextras 1953b0
  "prdownloads.sourceforge.net/..." to make URLs directly downloadable
cvsextras 1953b0
- removed AutoReqProv
cvsextras 1953b0
- used "%%setup -q -n ..." to remove unnecessary cd's.
cvsextras 1953b0
- no longer override $RPM_OPT_FLAGS
cvsextras 1953b0
- used %%_prefix instead of %%_usr
cvsextras 1953b0
- added -p argument to install and cp to preserve timestamps
cvsextras 1953b0
- replaced %%__cp and %%__install by cp and install
cvsextras 1953b0
- fixed URL to point to sourceforge project page as homepage is empty
cvsextras 1953b0
- no longer use RPM_OPT_FLAGS in CFLAGS as make argument as %%configure
cvsextras 1953b0
  already handles it
cvsextras 1953b0
cvsextras 1953b0
* Tue Nov 1 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.5.z
cvsextras 1953b0
- removed RCS line
62bed1
- set Epoch to 0 and removed it from Release
cvsextras 1953b0
- used a full macroless URL to the source tarball and patches
cvsextras 1953b0
- removed Packager (not used in Fedora)
cvsextras 1953b0
- used rm instead of %%__rm macro
cvsextras 1953b0
- used SMP flags in make stage
cvsextras 1953b0
cvsextras 1953b0
* Tue Oct 22 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.4.z
cvsextras 1953b0
- checked with rpmlint and improved accordingly.