Michael Thomas 52bd52
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
Michael Thomas 52bd52
%{!?tcl_sitelib: %define tcl_sitelib %{_datadir}/tcl%{tcl_version}}
Michael Thomas 52bd52
Michael Thomas f78810
Name:           bwidget
Michael Thomas cf5ac5
Version:        1.9.0
Dennis Gilmore 4dbded
Release:        3%{?dist}
Michael Thomas f78810
Summary:        Extended widget set for Tk
Michael Thomas f78810
Michael Thomas f78810
Group:          Development/Libraries
Michael Thomas 52bd52
License:        TCL
Michael Thomas f78810
URL:            http://tcllib.sourceforge.net/
Michael Thomas cf5ac5
Source0:        http://downloads.sourceforge.net/tcllib/BWidget-%{version}.tar.gz
Michael Thomas f78810
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Michael Thomas f78810
Michael Thomas f78810
BuildArch:      noarch
Marcela Mašláňová eda8d8
Requires:       tcl(abi) = 8.5 tk
Michael Thomas 52bd52
BuildRequires:  tcl
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 cf5ac5
%build
Michael Thomas cf5ac5
# Nothing to build!
Michael Thomas cf5ac5
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 52bd52
mkdir -p $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/
Michael Thomas 52bd52
mkdir $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/lang
Michael Thomas 52bd52
mkdir $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/images
Michael Thomas f78810
Michael Thomas 52bd52
install -m 0644 -pD *.tcl $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/
Michael Thomas 52bd52
install -m 0644 -pD lang/*.rc $RPM_BUILD_ROOT/%{tcl_sitelib}/%{name}%{version}/lang/
Michael Thomas 52bd52
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 52bd52
%{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
Dennis Gilmore 4dbded
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-3
Dennis Gilmore 4dbded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore 4dbded
Dennis Gilmore a2cd54
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-2
Dennis Gilmore a2cd54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore a2cd54
Michael Thomas cf5ac5
* Sun Jan 10 2010 Wart <wart@kobold.org> 1.9.0-1
Michael Thomas cf5ac5
- Update to 1.9.0
Michael Thomas cf5ac5
Jesse Keating 04df8c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-5
Jesse Keating 04df8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating 04df8c
Jesse Keating d97101
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
Jesse Keating d97101
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating d97101
Marcela Mašláňová eda8d8
* Fri Jan  3 2008 Marcela Maslanova <mmaslano@redhat.com> 1.8.0-3
Marcela Mašláňová eda8d8
- rebuild with new tcl8.5, changed abi in spec
Marcela Mašláňová eda8d8
Michael Thomas 52bd52
* Wed Aug 22 2007 Wart <wart at kobold.org> 1.8.0-2
Michael Thomas 52bd52
- License tag clarification
Michael Thomas 52bd52
- Move files to a tcl-specific directory for faster loading
Michael Thomas 52bd52
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.