%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}
Summary: System Tray Icon Support for Tk on X11
Name: tktray
Version: 1.3.9
Release: 2%{?dist}
URL: http://code.google.com/p/tktray/
Source0: http://tktray.googlecode.com/files/%{name}%{version}.tar.gz
License: BSD
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: tk-devel,tcl-devel
BuildRequires: libXext-devel, libX11-devel
Requires: tk,tcl
Requires: tcl(abi) = 8.5
%description
Tktray is an extension that is able to create system tray icons.
It follows http://www.freedesktop.org specifications when looking
up the system tray manager.
%prep
%setup -q -n %{name}%{version}
chmod 0644 ChangeLog license.terms docs/*
%build
%configure --libdir=%{tcl_sitearch} \
--with-tcl=%{_libdir} \
--with-tk=%{_libdir}
make %{?_smp_mflags} CFLAGS_DEFAULT="" CFLAGS_WARNING="-Wall"
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ChangeLog license.terms docs/tktray.html
%{tcl_sitearch}/%{name}%{version}
%{_mandir}/*/*
%changelog
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Aug 23 2010 Miloš Jakubíček <xjakub@fi.muni.cz> - 1.3.9-1
- Update to 1.3.9
- Update upstream homepage URL and licensing (MIT -> BSD)
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Jun 5 2008 Alexey Lubimov <avl@l14.ru> - 1.1-4
- fix spec follow https://bugzilla.redhat.com/show_bug.cgi?id=446978
* Fri May 16 2008 Alexey Lubimov <avl@l14.ru> - 1.1-1
- init rpm