|
|
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 |
|
|
Michael Thomas |
d7c3053 |
Summary: Widget extension to the Tcl/Tk scripting language
|
|
cvsextras |
1953b02 |
Name: blt
|
|
cvsextras |
1953b02 |
Version: 2.4
|
|
|
df4d4ac |
Release: 35.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
|
|
|
9c8b866 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
9c8b866 |
|
|
|
7a11b9e |
|
|
|
7a11b9e |
Provides: tk-blt = %{version}-%{release}
|
|
|
cc00508 |
BuildRequires: tk-devel >= 8.4.7
|
|
|
7a11b9e |
|
|
|
cc00508 |
Requires: tk >= 8.4.7
|
|
Michael Thomas |
828f700 |
Requires: tcl(abi) = 8.5 itcl
|
|
|
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
|
|
|
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
|
|
Michael Thomas |
828f700 |
Requires: %{name} = %{version}-%{release}
|
|
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
|
|
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}
|
|
Michael Thomas |
b229c18 |
# Remove man pages. HTML documentation is already available.
|
|
Michael Thomas |
b229c18 |
rm -rf $RPM_BUILD_ROOT%{_mandir}/
|
|
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)
|
|
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 |
%defattr(-,root,root,0755)
|
|
Michael Thomas |
828f700 |
%doc html/
|
|
Michael Thomas |
828f700 |
|
|
|
cc00508 |
%files devel
|
|
|
cc00508 |
%defattr(-,root,root,-)
|
|
Michael Thomas |
b5a8ec1 |
%{_includedir}/%{name}
|
|
|
cc00508 |
|
|
cvsextras |
1953b02 |
%changelog
|
|
|
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.
|