7a11b9e
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
7a11b9e
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
67857ca
%{!?tcl_sitelib: %define tcl_sitelib %{_datadir}/tcl%{tcl_version}}
7a11b9e
cvsextras 1953b02
Summary: BLT widget extension to Tcl/Tk scripting language development
cvsextras 1953b02
Name: blt
cvsextras 1953b02
Version: 2.4
Michael Thomas cbaf2fd
Release: 25%{?dist}
4ce3891
cvsextras 1953b02
License: MIT
cvsextras 1953b02
Group: Development/Libraries
7a11b9e
URL: http://sourceforge.net/projects/blt/
7a11b9e
Source0: 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
7a11b9e
Patch2: blt2.4-tk8.5.patch
Michael Thomas b5a8ec1
Patch3: blt2.4z-destdir.patch
Michael Thomas cbaf2fd
Patch4: blt2.4z-norpath.patch
7a11b9e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n)
7a11b9e
7a11b9e
Provides: tk-blt = %{version}-%{release}
cc00508
BuildRequires: tk-devel >= 8.4.7
7a11b9e
cc00508
Requires: tk >= 8.4.7
7a11b9e
Requires: tcl(abi) = 8.5
7a11b9e
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
cc00508
cc00508
%package devel
cc00508
Summary:        Development package for BLT
cc00508
Group:          Development/Libraries
cc00508
Requires:       %{name} = %{version}-%{release}
cc00508
cc00508
%description devel
Michael Thomas b5a8ec1
BLT is an extension to the Tk toolkit. BLT's most useful feature is the
cc00508
provision of more widgets for Tk, but it also provides more geometry managers
cc00508
and miscellaneous other commands. Note that you won't need to any patching
cc00508
of the Tcl or Tk source file to use BLT, but you will need to have Tcl/Tk
cc00508
installed in order to use BLT.
cc00508
cc00508
This package provides headers needed to build packages based on BLT.
cc00508
cvsextras 1953b02
%prep
b580e65
%setup -q -n %{name}%{version}z
62bed18
%patch0 -p1
62bed18
%patch1 -p1
7a11b9e
%patch2 -p1
Michael Thomas b5a8ec1
%patch3 -p1
Michael Thomas cbaf2fd
%patch4 -p1
Michael Thomas b5a8ec1
Michael Thomas b5a8ec1
# Fix bad interpreter path
Michael Thomas b5a8ec1
sed -i -e 's#/usr/local/bin/tclsh#/usr/bin/tclsh#' demos/scripts/page.tcl
Michael Thomas b5a8ec1
Michael Thomas b5a8ec1
# Rename a couple of files that conflict with other packages
Michael Thomas b5a8ec1
mv man/graph.mann man/bltgraph.mann
Michael Thomas b5a8ec1
mv man/bitmap.mann man/bltbitmap.mann
cvsextras 1953b02
cvsextras 1953b02
%build
Michael Thomas b5a8ec1
%configure --with-tcl=%{_libdir} --with-tk=%{_libdir} --with-blt=%{tcl_sitelib} --includedir=%{_includedir}/%{name}
Michael Thomas cbaf2fd
pushd src/shared
Michael Thomas b5a8ec1
# no _smp_mflags; race conditions.
Michael Thomas cbaf2fd
make
Michael Thomas cbaf2fd
popd
Michael Thomas cbaf2fd
Michael Thomas cbaf2fd
for file in demos/*.tcl ; do
Michael Thomas cbaf2fd
    sed -i -e 's#../src/bltwish#/usr/bin/wish#' $file
Michael Thomas cbaf2fd
done
Michael Thomas cbaf2fd
sed -i -e 's#../bltwish#/usr/bin/wish#' demos/scripts/xcolors.tcl
cvsextras 1953b02
cvsextras 1953b02
%install
cvsextras 1953b02
rm -rf $RPM_BUILD_ROOT
Michael Thomas b5a8ec1
make install INSTALL_ROOT=$RPM_BUILD_ROOT
Michael Thomas b5a8ec1
# Fedora policy is not to generate new shells for Tcl extensions
Michael Thomas b5a8ec1
rm -f $RPM_BUILD_ROOT%{_bindir}/bltsh*
Michael Thomas b5a8ec1
rm -f $RPM_BUILD_ROOT%{_bindir}/bltwish*
Michael Thomas b5a8ec1
# Remove static libraries
Michael Thomas b5a8ec1
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
Michael Thomas b5a8ec1
# Remove some doc files from the script area
Michael Thomas b5a8ec1
rm -f $RPM_BUILD_ROOT%{tcl_sitelib}/%{name}%{version}/{README,NEWS,PROBLEMS}
cvsextras 1953b02
cvsextras 1953b02
%clean
cvsextras 1953b02
rm -rf $RPM_BUILD_ROOT
cvsextras 1953b02
b810d33
%post -p /sbin/ldconfig
b810d33
b810d33
%postun -p /sbin/ldconfig
b810d33
cvsextras 1953b02
%files
b580e65
%defattr(-,root,root,0755)
cvsextras 1953b02
%doc README INSTALL PROBLEMS html/
6190cee
%{_libdir}/*.so
Michael Thomas b5a8ec1
%{tcl_sitelib}/%{name}%{version}
Michael Thomas 5328fc2
%{tcl_sitearch}/%{name}%{version}
Michael Thomas b5a8ec1
%{_mandir}/man3/*
Michael Thomas b5a8ec1
%{_mandir}/mann/*
cvsextras 1953b02
cc00508
%files devel
cc00508
%defattr(-,root,root,-)
Michael Thomas b5a8ec1
%{_includedir}/%{name}
cc00508
cvsextras 1953b02
%changelog
Michael Thomas cbaf2fd
* Sat Feb 9 2008 Wart <wart at kobold.org> 2.4-25
Michael Thomas cbaf2fd
- Rebuild for gcc 4.3
Michael Thomas cbaf2fd
- Add patch to add soname and remove rpath
Michael Thomas cbaf2fd
Michael Thomas 5328fc2
* Mon Jan 07 2008 Wart <wart at kobold.org> 2.4-24
Michael Thomas 5328fc2
- Move pkgIndex.tcl file to %%{_libdir} as it contains arch-specific
Michael Thomas 5328fc2
  components
Michael Thomas 5328fc2
Michael Thomas b5a8ec1
* Mon Jan 07 2008 Wart <wart at kobold.org> 2.4-23
Michael Thomas b5a8ec1
- Clean up spec file by creating patch for broken Makefile stanzas
Michael Thomas b5a8ec1
6190cee
* Mon Jan 07 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-22
6190cee
- Debug files in debug package (bug #427681)
6190cee
67857ca
* Sat Jan 05 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-21
67857ca
- Libraries moved to %%libdir, file in ld.so.conf.d not needed
67857ca
- Tcl files moved to %%tcl_sitelib
67857ca
7a11b9e
* Fri Jan 04 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-20
7a11b9e
- Rebuilt for tk 8.5 (added patch)
7a11b9e
- Following PackagingDrafts/Tcl
7a11b9e
a9fe903
* Thu Nov 15 2007 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-19
a9fe903
- Renaming the file in /etc/ld.so.conf.d to %%name
a9fe903
b810d33
* Mon Nov 05 2007 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-18
b810d33
- Providing file in /etc/ld.so.conf.d (bug #333081)
b810d33
2d142c2
* Mon Oct 22 2007 Marek Mahut <mmahut fedoraproject.org> 2.4-17
cc00508
- Providing devel package as per request in BZ#249812
Jean-Luc Fontaine 0aeef8a
Jean-Luc Fontaine 01704b3
* Thu Feb 8 2007 Jean-Luc Fontaine <jfontain@free.fr> 2.4-15.z
Jean-Luc Fontaine 01704b3
- require tk < 8.5
Jean-Luc Fontaine 01704b3
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.