1 Summary: A Tk toolkit extension, including widgets, geometry managers, etc.
6 Group: Development/Tools
8 Source0: ftp://ftp.tcltk.org/pub/blt/BLT%{version}.tar.gz
9 Patch0: blt-prefix.patch
10 Buildroot: /tmp/%{name}-%{version}-root
13 BLT is an extension to the Tk toolkit. BLT's most useful feature is the
14 provision of more widgets for Tk, but it also provides more geometry
15 managers and miscellaneous other commands. Note that you won't need to do
16 any patching of the Tcl or Tk source files to use BLT, but you will need to
17 have Tcl/Tk installed in order to use BLT.
19 If you are programming with the Tk toolkit, you should install BLT.
20 You will need to have Tcl/Tk installed.
27 %setup -q -n blt%{version}
31 LDFLAGS="-s"; export LDFLAGS
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT/{etc,sbin}
39 make exec_prefix=$RPM_BUILD_ROOT/usr prefix=$RPM_BUILD_ROOT/usr \
40 scriptdir=$RPM_BUILD_ROOT/usr/lib/blt2.4 bare_prefix=/usr install
42 ln -sf libBLT.so.2.4 $RPM_BUILD_ROOT/usr/lib/libBLT.so
44 rm -f $RPM_BUILD_ROOT%{_mandir}/mann/{bitmap,tabset,watch}.n
46 strip $RPM_BUILD_ROOT/usr/bin/* || :
48 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/mann/*
51 %post -p /sbin/ldconfig
52 %postun -p /sbin/ldconfig
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %attr(755,root,root) /usr/bin/*
61 %attr(755,root,root) /usr/lib/lib*.so.*.*
65 %defattr(644,root,root,755)
66 %attr(755,root,root) /usr/lib/lib*.so
71 %attr(644,root,root) /usr/lib/lib*.a