Dmitrij S. Kryzhevich 8f3f83
%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)}
Dmitrij S. Kryzhevich 8f3f83
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}}
Dmitrij S. Kryzhevich 8f3f83
%{!?tcl_sitelib: %global tcl_sitelib %{_datadir}/tcl%{tcl_version}}
7a11b9
Michael Thomas d7c305
Summary: Widget extension to the Tcl/Tk scripting language
cvsextras 1953b0
Name: blt
cvsextras 1953b0
Version: 2.4
Dmitrij S. Kryzhevich 11f288
Release: 54.z%{?dist}
4ce389
cvsextras 1953b0
License: MIT
cvsextras 1953b0
Group: Development/Libraries
7a11b9
URL: http://sourceforge.net/projects/blt/
Michael Thomas b229c1
Source0: http://downloads.sourceforge.net/blt/BLT2.4z.tar.gz
Michael Thomas 828f70
#Source0: http://downloads.sourceforge.net/blt/blt-20050731cvs.tgz
Michael Thomas b229c1
Patch0: http://downloads.sourceforge.net/blt/blt2.4z-patch-2
62bed1
Patch1: http://jfontain.free.fr/blt2.4z-patch-64
7a11b9
Patch2: blt2.4-tk8.5.patch
Michael Thomas b5a8ec
Patch3: blt2.4z-destdir.patch
Michael Thomas cbaf2f
Patch4: blt2.4z-norpath.patch
Michael Thomas 494fa4
Patch5: blt2.4z-noexactversion.patch
Michael Thomas 828f70
Patch6: blt2.4z-zoomstack.patch
Michael Thomas 828f70
Patch7: blt2.4z-tk8.5.6-patch
Dmitrij S. Kryzhevich 7323f5
Patch8: blt2.4z-tcl8.6.patch
Dmitrij S. Kryzhevich 5583a1
Patch9: blt2.4z-tk8.6.patch
9c8b86
7a11b9
7a11b9
Provides: tk-blt = %{version}-%{release}
Dmitrij S. Kryzhevich 11f288
BuildRequires: tk-devel >= 8.4.7 gcc
7a11b9
cc0050
Requires: tk >= 8.4.7
Dmitrij S. Kryzhevich d856fa
Requires: itcl
Dmitrij S. Kryzhevich d856fa
%if 0%{?rhel}
Dmitrij S. Kryzhevich d856fa
Requires: tcl(abi) = 8.5
Dmitrij S. Kryzhevich d856fa
%else
Dmitrij S. Kryzhevich d856fa
Requires: tcl(abi) = 8.6
Dmitrij S. Kryzhevich d856fa
%endif
7a11b9
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
cc0050
cc0050
%package devel
Michael Thomas 828f70
Summary:        Development files for BLT
cc0050
Group:          Development/Libraries
Dmitrij S. Kryzhevich 8f3f83
Requires:       tcl-devel
cc0050
Requires:       %{name} = %{version}-%{release}
cc0050
cc0050
%description devel
Michael Thomas b5a8ec
BLT is an extension to the Tk toolkit. BLT's most useful feature is the
cc0050
provision of more widgets for Tk, but it also provides more geometry managers
cc0050
and miscellaneous other commands. Note that you won't need to any patching
cc0050
of the Tcl or Tk source file to use BLT, but you will need to have Tcl/Tk
cc0050
installed in order to use BLT.
cc0050
cc0050
This package provides headers needed to build packages based on BLT.
cc0050
Michael Thomas 828f70
%package doc
Michael Thomas 828f70
Summary:        HTML documentation for BLT
Michael Thomas 828f70
Group:          Development/Libraries
Dmitrij S. Kryzhevich 8f3f83
BuildArch:      noarch
Michael Thomas 828f70
Michael Thomas 828f70
%description doc
Michael Thomas 828f70
This package provides the html documentation for BLT
Michael Thomas 828f70
cvsextras 1953b0
%prep
b580e6
%setup -q -n %{name}%{version}z
62bed1
%patch0 -p1
62bed1
%patch1 -p1
7a11b9
%patch2 -p1
Michael Thomas b5a8ec
%patch3 -p1
Michael Thomas cbaf2f
%patch4 -p1
Michael Thomas 494fa4
%patch5 -p0
Michael Thomas 828f70
%patch6 -p0
Michael Thomas 828f70
%patch7 -p1
Dmitrij S. Kryzhevich d856fa
Dmitrij S. Kryzhevich d856fa
%if 0%{?fedora} >= 21
Dmitrij S. Kryzhevich 7323f5
%patch8 -p1
Dmitrij S. Kryzhevich 5583a1
%patch9 -p1
Dmitrij S. Kryzhevich d856fa
%endif
Michael Thomas b5a8ec
Michael Thomas b5a8ec
# Fix bad interpreter path
Michael Thomas b5a8ec
sed -i -e 's#/usr/local/bin/tclsh#/usr/bin/tclsh#' demos/scripts/page.tcl
Michael Thomas b5a8ec
Michael Thomas b5a8ec
# Rename a couple of files that conflict with other packages
Michael Thomas b5a8ec
mv man/graph.mann man/bltgraph.mann
Michael Thomas b5a8ec
mv man/bitmap.mann man/bltbitmap.mann
cvsextras 1953b0
cvsextras 1953b0
%build
Dmitrij S. Kryzhevich 7d4078
# fix RHBZ 1105266
Dmitrij S. Kryzhevich 0f2388
sed -i -e "s|SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,\$@'|SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,\$@ -ltk -ltcl'|" configure
Michael Thomas b5a8ec
%configure --with-tcl=%{_libdir} --with-tk=%{_libdir} --with-blt=%{tcl_sitelib} --includedir=%{_includedir}/%{name}
Michael Thomas cbaf2f
pushd src/shared
Michael Thomas b5a8ec
# no _smp_mflags; race conditions.
Michael Thomas cbaf2f
make
Michael Thomas cbaf2f
popd
Michael Thomas cbaf2f
Michael Thomas cbaf2f
for file in demos/*.tcl ; do
Michael Thomas cbaf2f
    sed -i -e 's#../src/bltwish#/usr/bin/wish#' $file
Michael Thomas cbaf2f
done
Michael Thomas cbaf2f
sed -i -e 's#../bltwish#/usr/bin/wish#' demos/scripts/xcolors.tcl
cvsextras 1953b0
cvsextras 1953b0
%install
Dmitrij S. Kryzhevich d856fa
make install INSTALL_ROOT=%{buildroot}
Michael Thomas b5a8ec
# Fedora policy is not to generate new shells for Tcl extensions
Dmitrij S. Kryzhevich d856fa
rm -f %{buildroot}%{_bindir}/bltsh*
Dmitrij S. Kryzhevich d856fa
rm -f %{buildroot}%{_bindir}/bltwish*
Michael Thomas b5a8ec
# Remove static libraries
Dmitrij S. Kryzhevich d856fa
rm -f %{buildroot}%{_libdir}/*.a
Michael Thomas b5a8ec
# Remove some doc files from the script area
Dmitrij S. Kryzhevich d856fa
rm -f %{buildroot}%{tcl_sitelib}/%{name}%{version}/{README,NEWS,PROBLEMS}
Michael Thomas b229c1
# Remove man pages.  HTML documentation is already available.
Dmitrij S. Kryzhevich d856fa
rm -rf %{buildroot}%{_mandir}/
cvsextras 1953b0
b810d3
%post -p /sbin/ldconfig
b810d3
b810d3
%postun -p /sbin/ldconfig
b810d3
cvsextras 1953b0
%files
Michael Thomas 828f70
%doc README INSTALL PROBLEMS
6190ce
%{_libdir}/*.so
Michael Thomas b5a8ec
%{tcl_sitelib}/%{name}%{version}
Michael Thomas 5328fc
%{tcl_sitearch}/%{name}%{version}
Michael Thomas b229c1
# Man pages conflict with iwidgets.  This is a common problem among
Michael Thomas b229c1
# Tk widget extensions.
Michael Thomas b229c1
#%{_mandir}/man3/*
Michael Thomas b229c1
#%{_mandir}/mann/*
cvsextras 1953b0
Michael Thomas 828f70
%files doc
Michael Thomas 828f70
%doc html/
Michael Thomas 828f70
cc0050
%files devel
Michael Thomas b5a8ec
%{_includedir}/%{name}
cc0050
cvsextras 1953b0
%changelog
Dmitrij S. Kryzhevich 11f288
* Sun Jul 22 2018 Dmitrij S. Kryzhevich <kryzhev@ispms.ru> - 2.4-54.z
Dmitrij S. Kryzhevich 11f288
- Add gcc to BR.
Dmitrij S. Kryzhevich 11f288
6d8885
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-53.z
6d8885
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6d8885
7625aa
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-52.z
7625aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7625aa
81829d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-51.z
81829d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
81829d
29b064
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-50.z
29b064
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
29b064
04f2ee
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-49.z
04f2ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
04f2ee
0ce708
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-48.z
0ce708
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0ce708
Dmitrij S. Kryzhevich 8f3f83
* Tue Dec 15 2015 Dmitrij S. Kryzhevich <kryzhev@ispms.ru> - 2.4-47.z
Dmitrij S. Kryzhevich 8f3f83
- Make -doc noarch and not to require the main package.
Dmitrij S. Kryzhevich 8f3f83
- Add Require to -devel: tcl-devel.
Dmitrij S. Kryzhevich 8f3f83
- "define" -> "global".
Dmitrij S. Kryzhevich 8f3f83
Dmitrij S. Kryzhevich d856fa
* Fri Jul 03 2015 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-46.z
Dmitrij S. Kryzhevich d856fa
- Fix requiers for EPEL (RHBZ #1238627).
Dmitrij S. Kryzhevich d856fa
- Clean spec (buildroot tag, clean section, rm buildroot).
Dmitrij S. Kryzhevich d856fa
Dmitrij S. Kryzhevich 7d4078
* Tue Jun 30 2015 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-45.z
Dmitrij S. Kryzhevich 7d4078
- Fix for RHBZ #1105266.
Dmitrij S. Kryzhevich 7d4078
436b2b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-44.z
436b2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
436b2b
588f50
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-43.z
588f50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
588f50
c6e3bd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-42.z
c6e3bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c6e3bd
Dmitrij S. Kryzhevich 5583a1
* Fri May 30 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-41.z
Dmitrij S. Kryzhevich 5583a1
- Fix for tk-8.6.
Dmitrij S. Kryzhevich 5583a1
Dmitrij S. Kryzhevich 7323f5
* Fri May 30 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-40.z
Dmitrij S. Kryzhevich 7323f5
- Fix for tcl-8.6.
Dmitrij S. Kryzhevich 7323f5
Dmitrij S. Kryzhevich 2e2a33
* Fri May 30 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-39.z
Dmitrij S. Kryzhevich 2e2a33
- Changed requires to require tcl-8.6.
Dmitrij S. Kryzhevich 2e2a33
b4d71d
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4-38.z
b4d71d
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
b4d71d
80f52f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-37.z
80f52f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
80f52f
d214b1
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-36.z
d214b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d214b1
df4d4a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-35.z
df4d4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
df4d4a
83faba
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-34.z
83faba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
83faba
88edae
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-33.z
88edae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
88edae
Michael Thomas 828f70
* Sat Jan 9 2010 Wart <wart at="" kobold.org=""> 2.4-32.z
Michael Thomas 828f70
- Fix segfault caused by use of uninitialized array
Michael Thomas 828f70
- Add upstream patch for drawing text on a bitmap (bz #486165, bz #530277,
Michael Thomas 828f70
  bz #504388)
Michael Thomas 828f70
- Add ZoomStack widget (bz #503483)
Michael Thomas 828f70
- Split doc into subpackage (bz #492453)
Michael Thomas 828f70
701a44
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-31.z
701a44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
701a44
c2d04f
* Fri Feb 27 2009 Jesse Keating <jkeating@redhat.com> - 2.4-30.z
c2d04f
- Rebuild for F11 mass rebuild
Michael Thomas d7c305
- Remove package name from Summary
Michael Thomas d7c305
9c8b86
* Thu May 29 2008 Sergio Pascual <sergiopr at="" fedoraproject.org=""> 2.4-28.z
9c8b86
- Patched to recover blt::graph (bz #446862)
9c8b86
Michael Thomas b229c1
* Thu Apr 3 2008 Wart <wart at="" kobold.org=""> 2.4-27
Michael Thomas b229c1
- Remove man pages due to conflict with iwidgets.  This is a common problem
Michael Thomas b229c1
  among Tk widget extensions. (BZ #439769)
Michael Thomas b229c1
- Trivial cleanup to source URLs.
Michael Thomas b229c1
Michael Thomas 494fa4
* Mon Mar 17 2008 Wart <wart at="" kobold.org=""> 2.4-26
Michael Thomas 494fa4
- Add patch to prevent BLT from puking every time there is a minor
Michael Thomas 042215
  version bump for Tcl. (BZ #437780)
Michael Thomas 494fa4
Michael Thomas cbaf2f
* Sat Feb 9 2008 Wart <wart at="" kobold.org=""> 2.4-25
Michael Thomas cbaf2f
- Rebuild for gcc 4.3
Michael Thomas cbaf2f
- Add patch to add soname and remove rpath
Michael Thomas cbaf2f
Michael Thomas 5328fc
* Mon Jan 07 2008 Wart <wart at="" kobold.org=""> 2.4-24
Michael Thomas 5328fc
- Move pkgIndex.tcl file to %%{_libdir} as it contains arch-specific
Michael Thomas 5328fc
  components
Michael Thomas 5328fc
Michael Thomas b5a8ec
* Mon Jan 07 2008 Wart <wart at="" kobold.org=""> 2.4-23
Michael Thomas b5a8ec
- Clean up spec file by creating patch for broken Makefile stanzas
Michael Thomas b5a8ec
6190ce
* Mon Jan 07 2008 Sergio Pascual <sergiopr at="" fedoraproject.org=""> 2.4-22
6190ce
- Debug files in debug package (bug #427681)
6190ce
67857c
* Sat Jan 05 2008 Sergio Pascual <sergiopr at="" fedoraproject.org=""> 2.4-21
67857c
- Libraries moved to %%libdir, file in ld.so.conf.d not needed
67857c
- Tcl files moved to %%tcl_sitelib
67857c
7a11b9
* Fri Jan 04 2008 Sergio Pascual <sergiopr at="" fedoraproject.org=""> 2.4-20
7a11b9
- Rebuilt for tk 8.5 (added patch)
7a11b9
- Following PackagingDrafts/Tcl
7a11b9
a9fe90
* Thu Nov 15 2007 Sergio Pascual <sergiopr at="" fedoraproject.org=""> 2.4-19
a9fe90
- Renaming the file in /etc/ld.so.conf.d to %%name
a9fe90
b810d3
* Mon Nov 05 2007 Sergio Pascual <sergiopr at="" fedoraproject.org=""> 2.4-18
b810d3
- Providing file in /etc/ld.so.conf.d (bug #333081)
b810d3
2d142c
* Mon Oct 22 2007 Marek Mahut <mmahut fedoraproject.org=""> 2.4-17
cc0050
- Providing devel package as per request in BZ#249812
Jean-Luc Fontaine 0aeef8
Jean-Luc Fontaine 01704b
* Thu Feb 8 2007 Jean-Luc Fontaine <jfontain@free.fr> 2.4-15.z
Jean-Luc Fontaine 01704b
- require tk < 8.5
Jean-Luc Fontaine 01704b
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.