Michael Thomas 535543
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
Michael Thomas 535543
%{!?tcl_sitelib: %define tcl_sitelib %{_datadir}/tcl%{tcl_version}}
Michael Thomas 535543
Michael Thomas f78810
Name:           bwidget
Michael Thomas 20006e
Version:        1.8.0
Michael Thomas 535543
Release:        2%{?dist}
Michael Thomas f78810
Summary:        Extended widget set for Tk
Michael Thomas f78810
Michael Thomas f78810
Group:          Development/Libraries
Michael Thomas 535543
License:        TCL
Michael Thomas f78810
URL:            http://tcllib.sourceforge.net/
Michael Thomas 535543
Source0:        http://downloads.sourceforge.net/tcllib/BWidget-1.8.0.tar.gz
Michael Thomas f78810
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Michael Thomas f78810
Michael Thomas f78810
BuildArch:      noarch
Michael Thomas 535543
BuildRequires:  tcl
Michael Thomas 535543
Requires:       tcl(abi) = 8.4 tk
Michael Thomas f78810
Michael Thomas f78810
%description
Michael Thomas f78810
An extended widget set for Tcl/Tk.
Michael Thomas f78810
Michael Thomas f78810
%prep
Michael Thomas f78810
%setup -q -n BWidget-%{version}
Michael Thomas f78810
%{__sed} -i 's/\r//' LICENSE.txt
Michael Thomas f78810
Michael Thomas f78810
%install
Michael Thomas f78810
rm -rf $RPM_BUILD_ROOT
Michael Thomas f78810
# Don't bother with the included configure script and Makefile.  They
Michael Thomas f78810
# are missing a lot of pieces and won't work at all.  Installation is
Michael Thomas f78810
# pretty simple, so we can just do it here manually.
Michael Thomas 535543
mkdir -p $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/
Michael Thomas 535543
mkdir $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/lang
Michael Thomas 535543
mkdir $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/images
Michael Thomas f78810
Michael Thomas 535543
install -m 0644 -pD *.tcl $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/
Michael Thomas 535543
install -m 0644 -pD lang/*.rc $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/lang/
Michael Thomas 535543
install -m 0644 -pD images/*.gif images/*.xbm $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/images/
Michael Thomas f78810
Michael Thomas f78810
Michael Thomas f78810
%clean
Michael Thomas f78810
rm -rf $RPM_BUILD_ROOT
Michael Thomas f78810
Michael Thomas f78810
Michael Thomas f78810
%files
Michael Thomas f78810
%defattr(-,root,root,-)
Michael Thomas 535543
%{tcl_sitelib}/%{name}%{version}
Michael Thomas f78810
%doc README.txt LICENSE.txt
Michael Thomas f78810
%doc BWman/*.html
Michael Thomas f78810
Michael Thomas f78810
%changelog
Michael Thomas 535543
* Wed Aug 22 2007 Wart <wart at kobold.org> 1.8.0-2
Michael Thomas 535543
- License tag clarification
Michael Thomas 535543
- Move files to a tcl-specific directory for faster loading
Michael Thomas 535543
Michael Thomas 20006e
* Thu Oct 19 2006 Wart <wart at kobold.org> 1.8.0-1
Michael Thomas 20006e
- Update to 1.8.0
Michael Thomas 20006e
- Remove patch that was accepted upstream
Michael Thomas 20006e
Michael Thomas f0261b
* Mon Aug 28 2006 Wart <wart at kobold.org> 1.7.0-4
Michael Thomas f0261b
- Rebuild for Fedora Extras
Michael Thomas f0261b
Michael Thomas 9b4905
* Fri Aug 11 2006 Wart <wart at kobold.org> 1.7.0-3
Michael Thomas 9b4905
- Add patch for adding a color selector to the font dialog
Michael Thomas 9b4905
Michael Thomas f78810
* Sat Dec 10 2005 Wart <wart at kobold.org> 1.7.0-2
Michael Thomas f78810
- added dist tag to release tag.
Michael Thomas 9b4905
Michael Thomas f78810
* Sat Dec 10 2005 Wart <wart at kobold.org> 1.7.0-1
Michael Thomas f78810
- Initial spec file.