Dmitrij S. Kryzhevich 8f3f831
%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)}
Dmitrij S. Kryzhevich 8f3f831
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}}
Dmitrij S. Kryzhevich 8f3f831
%{!?tcl_sitelib: %global tcl_sitelib %{_datadir}/tcl%{tcl_version}}
7a11b9e
Michael Thomas d7c3053
Summary: Widget extension to the Tcl/Tk scripting language
cvsextras 1953b02
Name: blt
cvsextras 1953b02
Version: 2.4
Dmitrij S. Kryzhevich 11f2880
Release: 54.z%{?dist}
4ce3891
cvsextras 1953b02
License: MIT
cvsextras 1953b02
Group: Development/Libraries
7a11b9e
URL: http://sourceforge.net/projects/blt/
Michael Thomas b229c18
Source0: http://downloads.sourceforge.net/blt/BLT2.4z.tar.gz
Michael Thomas 828f700
#Source0: http://downloads.sourceforge.net/blt/blt-20050731cvs.tgz
Michael Thomas b229c18
Patch0: http://downloads.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
Michael Thomas 494fa48
Patch5: blt2.4z-noexactversion.patch
Michael Thomas 828f700
Patch6: blt2.4z-zoomstack.patch
Michael Thomas 828f700
Patch7: blt2.4z-tk8.5.6-patch
Dmitrij S. Kryzhevich 7323f54
Patch8: blt2.4z-tcl8.6.patch
Dmitrij S. Kryzhevich 5583a1d
Patch9: blt2.4z-tk8.6.patch
9c8b866
7a11b9e
7a11b9e
Provides: tk-blt = %{version}-%{release}
Dmitrij S. Kryzhevich 11f2880
BuildRequires: tk-devel >= 8.4.7 gcc
7a11b9e
cc00508
Requires: tk >= 8.4.7
Dmitrij S. Kryzhevich d856fa0
Requires: itcl
Dmitrij S. Kryzhevich d856fa0
%if 0%{?rhel}
Dmitrij S. Kryzhevich d856fa0
Requires: tcl(abi) = 8.5
Dmitrij S. Kryzhevich d856fa0
%else
Dmitrij S. Kryzhevich d856fa0
Requires: tcl(abi) = 8.6
Dmitrij S. Kryzhevich d856fa0
%endif
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
Michael Thomas 828f700
Summary:        Development files for BLT
cc00508
Group:          Development/Libraries
Dmitrij S. Kryzhevich 8f3f831
Requires:       tcl-devel
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
Michael Thomas 828f700
%package doc
Michael Thomas 828f700
Summary:        HTML documentation for BLT
Michael Thomas 828f700
Group:          Development/Libraries
Dmitrij S. Kryzhevich 8f3f831
BuildArch:      noarch
Michael Thomas 828f700
Michael Thomas 828f700
%description doc
Michael Thomas 828f700
This package provides the html documentation for BLT
Michael Thomas 828f700
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 494fa48
%patch5 -p0
Michael Thomas 828f700
%patch6 -p0
Michael Thomas 828f700
%patch7 -p1
Dmitrij S. Kryzhevich d856fa0
Dmitrij S. Kryzhevich d856fa0
%if 0%{?fedora} >= 21
Dmitrij S. Kryzhevich 7323f54
%patch8 -p1
Dmitrij S. Kryzhevich 5583a1d
%patch9 -p1
Dmitrij S. Kryzhevich d856fa0
%endif
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
Dmitrij S. Kryzhevich 7d4078e
# fix RHBZ 1105266
Dmitrij S. Kryzhevich 0f23882
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 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
Dmitrij S. Kryzhevich d856fa0
make install INSTALL_ROOT=%{buildroot}
Michael Thomas b5a8ec1
# Fedora policy is not to generate new shells for Tcl extensions
Dmitrij S. Kryzhevich d856fa0
rm -f %{buildroot}%{_bindir}/bltsh*
Dmitrij S. Kryzhevich d856fa0
rm -f %{buildroot}%{_bindir}/bltwish*
Michael Thomas b5a8ec1
# Remove static libraries
Dmitrij S. Kryzhevich d856fa0
rm -f %{buildroot}%{_libdir}/*.a
Michael Thomas b5a8ec1
# Remove some doc files from the script area
Dmitrij S. Kryzhevich d856fa0
rm -f %{buildroot}%{tcl_sitelib}/%{name}%{version}/{README,NEWS,PROBLEMS}
Michael Thomas b229c18
# Remove man pages.  HTML documentation is already available.
Dmitrij S. Kryzhevich d856fa0
rm -rf %{buildroot}%{_mandir}/
cvsextras 1953b02
b810d33
%post -p /sbin/ldconfig
b810d33
b810d33
%postun -p /sbin/ldconfig
b810d33
cvsextras 1953b02
%files
Michael Thomas 828f700
%doc README INSTALL PROBLEMS
6190cee
%{_libdir}/*.so
Michael Thomas b5a8ec1
%{tcl_sitelib}/%{name}%{version}
Michael Thomas 5328fc2
%{tcl_sitearch}/%{name}%{version}
Michael Thomas b229c18
# Man pages conflict with iwidgets.  This is a common problem among
Michael Thomas b229c18
# Tk widget extensions.
Michael Thomas b229c18
#%{_mandir}/man3/*
Michael Thomas b229c18
#%{_mandir}/mann/*
cvsextras 1953b02
Michael Thomas 828f700
%files doc
Michael Thomas 828f700
%doc html/
Michael Thomas 828f700
cc00508
%files devel
Michael Thomas b5a8ec1
%{_includedir}/%{name}
cc00508
cvsextras 1953b02
%changelog
Dmitrij S. Kryzhevich 11f2880
* Sun Jul 22 2018 Dmitrij S. Kryzhevich <kryzhev@ispms.ru> - 2.4-54.z
Dmitrij S. Kryzhevich 11f2880
- Add gcc to BR.
Dmitrij S. Kryzhevich 11f2880
6d88850
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-53.z
6d88850
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6d88850
7625aad
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-52.z
7625aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7625aad
81829d9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-51.z
81829d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
81829d9
29b0649
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-50.z
29b0649
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
29b0649
04f2eed
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-49.z
04f2eed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
04f2eed
0ce7089
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-48.z
0ce7089
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0ce7089
Dmitrij S. Kryzhevich 8f3f831
* Tue Dec 15 2015 Dmitrij S. Kryzhevich <kryzhev@ispms.ru> - 2.4-47.z
Dmitrij S. Kryzhevich 8f3f831
- Make -doc noarch and not to require the main package.
Dmitrij S. Kryzhevich 8f3f831
- Add Require to -devel: tcl-devel.
Dmitrij S. Kryzhevich 8f3f831
- "define" -> "global".
Dmitrij S. Kryzhevich 8f3f831
Dmitrij S. Kryzhevich d856fa0
* Fri Jul 03 2015 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-46.z
Dmitrij S. Kryzhevich d856fa0
- Fix requiers for EPEL (RHBZ #1238627).
Dmitrij S. Kryzhevich d856fa0
- Clean spec (buildroot tag, clean section, rm buildroot).
Dmitrij S. Kryzhevich d856fa0
Dmitrij S. Kryzhevich 7d4078e
* Tue Jun 30 2015 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-45.z
Dmitrij S. Kryzhevich 7d4078e
- Fix for RHBZ #1105266.
Dmitrij S. Kryzhevich 7d4078e
436b2bb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-44.z
436b2bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
436b2bb
588f505
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-43.z
588f505
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
588f505
c6e3bdf
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-42.z
c6e3bdf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c6e3bdf
Dmitrij S. Kryzhevich 5583a1d
* Fri May 30 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-41.z
Dmitrij S. Kryzhevich 5583a1d
- Fix for tk-8.6.
Dmitrij S. Kryzhevich 5583a1d
Dmitrij S. Kryzhevich 7323f54
* Fri May 30 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-40.z
Dmitrij S. Kryzhevich 7323f54
- Fix for tcl-8.6.
Dmitrij S. Kryzhevich 7323f54
Dmitrij S. Kryzhevich 2e2a33c
* Fri May 30 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.4-39.z
Dmitrij S. Kryzhevich 2e2a33c
- Changed requires to require tcl-8.6.
Dmitrij S. Kryzhevich 2e2a33c
b4d71da
* Wed May 21 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 2.4-38.z
b4d71da
- Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86
b4d71da
80f52fb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-37.z
80f52fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
80f52fb
d214b18
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-36.z
d214b18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d214b18
df4d4ac
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-35.z
df4d4ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
df4d4ac
83fabaf
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-34.z
83fabaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
83fabaf
88edae4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-33.z
88edae4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
88edae4
Michael Thomas 828f700
* Sat Jan 9 2010 Wart <wart at kobold.org> 2.4-32.z
Michael Thomas 828f700
- Fix segfault caused by use of uninitialized array
Michael Thomas 828f700
- Add upstream patch for drawing text on a bitmap (bz #486165, bz #530277,
Michael Thomas 828f700
  bz #504388)
Michael Thomas 828f700
- Add ZoomStack widget (bz #503483)
Michael Thomas 828f700
- Split doc into subpackage (bz #492453)
Michael Thomas 828f700
701a442
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-31.z
701a442
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
701a442
c2d04fe
* Fri Feb 27 2009 Jesse Keating <jkeating@redhat.com> - 2.4-30.z
c2d04fe
- Rebuild for F11 mass rebuild
Michael Thomas d7c3053
- Remove package name from Summary
Michael Thomas d7c3053
9c8b866
* Thu May 29 2008 Sergio Pascual <sergiopr at fedoraproject.org> 2.4-28.z
9c8b866
- Patched to recover blt::graph (bz #446862)
9c8b866
Michael Thomas b229c18
* Thu Apr 3 2008 Wart <wart at kobold.org> 2.4-27
Michael Thomas b229c18
- Remove man pages due to conflict with iwidgets.  This is a common problem
Michael Thomas b229c18
  among Tk widget extensions. (BZ #439769)
Michael Thomas b229c18
- Trivial cleanup to source URLs.
Michael Thomas b229c18
Michael Thomas 494fa48
* Mon Mar 17 2008 Wart <wart at kobold.org> 2.4-26
Michael Thomas 494fa48
- Add patch to prevent BLT from puking every time there is a minor
Michael Thomas 0422153
  version bump for Tcl. (BZ #437780)
Michael Thomas 494fa48
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.