cvsextras 1953b02
Summary: BLT widget extension to Tcl/Tk scripting language development
cvsextras 1953b02
Name: blt
cvsextras 1953b02
Version: 2.4
4512dcf
Release: 21.z%{?dist}
4ce3891
cvsextras 1953b02
License: MIT
cvsextras 1953b02
Group: Development/Libraries
cvsextras 1953b02
Source: http://download.sourceforge.net/blt/BLT2.4z.tar.gz
62bed18
Patch0: http://download.sourceforge.net/blt/blt2.4z-patch-2
62bed18
Patch1: http://jfontain.free.fr/blt2.4z-patch-64
cvsextras 1953b02
URL: http://sourceforge.net/projects/blt/
Jean-Luc Fontaine 87490df
BuildRequires: tk-devel >= 8.4.7
Jean-Luc Fontaine 87490df
Requires: tk >= 8.4.7
b580e65
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n)
cvsextras 1953b02
cvsextras 1953b02
%description
cvsextras 1953b02
BLT is a very powerful extension to Tk. It adds plotting widgets
cvsextras 1953b02
(graph, barchart and stripchart), hierarchy tree and table, tab
cvsextras 1953b02
notebook, table geometry manager, vector, background program
cvsextras 1953b02
execution, busy utility, eps canvas item, drag and drop facility,
cvsextras 1953b02
bitmap command and miscellaneous commands.
cvsextras 1953b02
Note: this version is stubs enabled and therefore should be compatible
cvsextras 1953b02
with Tcl/Tk versions after and including 8.3.1.
cvsextras 1953b02
d0502d4
d0502d4
%package devel
d0502d4
Summary:        Development package for BLT
d0502d4
Group:          Development/Libraries
d0502d4
Requires:       %{name} = %{version}-%{release}
d0502d4
d0502d4
%description devel
d0502d4
BLT is an extension to the Tk toolkiy. BLT's most useful feature is the
d0502d4
provision of more widgets for Tk, but it also provides more geometry managers
d0502d4
and miscellaneous other commands. Note that you won't need to any patching
d0502d4
of the Tcl or Tk source file to use BLT, but you will need to have Tcl/Tk
d0502d4
installed in order to use BLT.
d0502d4
d0502d4
This package provides headers needed to build packages based on BLT.
d0502d4
cvsextras 1953b02
%prep
4512dcf
%setup -q -n %{name}%{version}z
62bed18
%patch0 -p1
62bed18
%patch1 -p1
cvsextras 1953b02
cvsextras 1953b02
%build
b580e65
%configure --with-tcl=%{_libdir} --with-tk=%{_libdir}
cvsextras 1953b02
cd src/shared
cvsextras 1953b02
%__make SHLIB_LD_FLAGS=-shared # no _smp_mflags; race conditions.
cvsextras 1953b02
cvsextras 1953b02
%install
cvsextras 1953b02
rm -rf $RPM_BUILD_ROOT
b580e65
DIRECTORY=$RPM_BUILD_ROOT%{_libdir}/%{name}%{version}
cvsextras 1953b02
install -d $DIRECTORY
cvsextras 1953b02
install -m 755 -p src/shared/libBLT24.so src/shared/libBLTlite24.so $DIRECTORY
cvsextras 1953b02
install -m 644 -p library/*.{pro,tcl,xbm} library/tclIndex $DIRECTORY
d0502d4
install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
d0502d4
install -m 644 -p src/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
cvsextras 1953b02
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 1953b02
cp -p -r library/dd_protocols $DIRECTORY
cvsextras 1953b02
rm -f html/Makefile.vc
d0502d4
# File in /etc/ld.so.conf.d
d0502d4
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
d0502d4
echo "%{_libdir}/%{name}%{version}" >> $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
cvsextras 1953b02
cvsextras 1953b02
%clean
cvsextras 1953b02
rm -rf $RPM_BUILD_ROOT
cvsextras 1953b02
d0502d4
%post -p /sbin/ldconfig
d0502d4
d0502d4
%postun -p /sbin/ldconfig
d0502d4
cvsextras 1953b02
%files
b580e65
%defattr(-,root,root,0755)
cvsextras 1953b02
%doc README INSTALL PROBLEMS html/
d0502d4
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/*
b580e65
%{_libdir}/%{name}%{version}/
cvsextras 1953b02
d0502d4
%files devel
d0502d4
%defattr(-,root,root,-)
d0502d4
%{_includedir}/blt/*
d0502d4
cvsextras 1953b02
%changelog
4512dcf
* Thu Jul 24 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-21.z
d0502d4
- Rebuilt for EL-5
4512dcf
- Minor typo fixed
d0502d4
d0502d4
* Thu Nov 15 2007 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-19
d0502d4
- Renaming the file in /etc/ld.so.conf.d to %%name
d0502d4
d0502d4
* Mon Nov 05 2007 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-18
d0502d4
- Providing file in /etc/ld.so.conf.d (bug #333081)
d0502d4
d0502d4
* Mon Oct 22 2007 Marek Mahut <mmahut fedoraproject.org> 2.4-17
d0502d4
- Providing devel package as per request in BZ#249812
d0502d4
d0502d4
* Thu Feb 8 2007 Jean-Luc Fontaine <jfontain@free.fr> 2.4-15.z
d0502d4
- require tk < 8.5
Jean-Luc Fontaine 0aeef8a
Jean-Luc Fontaine d295b1f
* Mon Aug 28 2006 Jean-Luc Fontaine <jfontain@free.fr> 2.4-14.z
Jean-Luc Fontaine d295b1f
- added dist tag
Jean-Luc Fontaine d295b1f
- rebuild for Fedora Extras 6
Jean-Luc Fontaine d295b1f
Jean-Luc Fontaine 0aeef8a
* Tue Feb 28 2006 Jean-Luc Fontaine <jfontain@free.fr> 2.4-13.z
Jean-Luc Fontaine 0aeef8a
- rebuild for Fedora Extras 5
Jean-Luc Fontaine 0aeef8a
Jean-Luc Fontaine 87490df
* Thu Nov 10 2005 Jean-Luc Fontaine <jfontain@free.fr> 2.4-12.z
Jean-Luc Fontaine 87490df
- only require tk and tk-devel for building
Jean-Luc Fontaine 87490df
4ce3891
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
4ce3891
- rebuilt
4ce3891
62bed18
* Fri Nov 5 2004 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-10.z
62bed18
- added patch to allow building on 64 bit architectures
62bed18
- use %%libdir instead of %%prefix in configure for the same reason
cvsextras 1953b02
cvsextras 1953b02
* Tue Nov 16 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.9.z
cvsextras 1953b02
- in build requirements, work around tcl-devel and tk-devel packages non
cvsextras 1953b02
  existence in RH 8.0 and 9
cvsextras 1953b02
cvsextras 1953b02
* Wed Nov 7 2003 Ville Skyttä <ville.skytta at iki.fi> 0:2.4-0.fdr.8.z
cvsextras 1953b02
- disabled %%_smp_mflags in make stage
cvsextras 1953b02
- escaped percent characters in change log
cvsextras 1953b02
cvsextras 1953b02
* Tue Nov 5 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.7.z
cvsextras 1953b02
- in installation stage, removed some leftover copies in parent
cvsextras 1953b02
  directory which left dirt in BUILD directory
cvsextras 1953b02
cvsextras 1953b02
* Tue Nov 4 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.6.z
cvsextras 1953b02
- changed release tag from 0.fdr.0.X.z to 0.fdr.X.z as this is a post
cvsextras 1953b02
  release
cvsextras 1953b02
- use "download.sourceforge.net/..." instead of
cvsextras 1953b02
  "prdownloads.sourceforge.net/..." to make URLs directly downloadable
cvsextras 1953b02
- removed AutoReqProv
cvsextras 1953b02
- used "%%setup -q -n ..." to remove unnecessary cd's.
cvsextras 1953b02
- no longer override $RPM_OPT_FLAGS
cvsextras 1953b02
- used %%_prefix instead of %%_usr
cvsextras 1953b02
- added -p argument to install and cp to preserve timestamps
cvsextras 1953b02
- replaced %%__cp and %%__install by cp and install
cvsextras 1953b02
- fixed URL to point to sourceforge project page as homepage is empty
cvsextras 1953b02
- no longer use RPM_OPT_FLAGS in CFLAGS as make argument as %%configure
cvsextras 1953b02
  already handles it
cvsextras 1953b02
cvsextras 1953b02
* Tue Nov 1 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.5.z
cvsextras 1953b02
- removed RCS line
62bed18
- set Epoch to 0 and removed it from Release
cvsextras 1953b02
- used a full macroless URL to the source tarball and patches
cvsextras 1953b02
- removed Packager (not used in Fedora)
cvsextras 1953b02
- used rm instead of %%__rm macro
cvsextras 1953b02
- used SMP flags in make stage
cvsextras 1953b02
cvsextras 1953b02
* Tue Oct 22 2003 Jean-Luc Fontaine <jfontain@free.fr> 0:2.4-0.fdr.4.z
cvsextras 1953b02
- checked with rpmlint and improved accordingly.