-Summary: A Tk toolkit extension, including widgets, geometry managers, etc.
+Summary: A Tk toolkit extension, including widgets, geometry managers, etc
+Summary(pl): Rozszerezenie Tk umo¿liwiajace operowanie na kontrolkach i wiele innych
Name: blt
Version: 2.4u
-Release: 1
+Release: 5
License: MIT
Group: Development/Tools
Group(de): Entwicklung/Werkzeuge
Source0: ftp://tcltk.sourceforge.net/pub/tcltk/blt/BLT%{version}.tar.gz
Patch0: %{name}-DESTDIR.patch
Patch1: %{name}-paths.patch
+Patch2: %{name}-excl.patch
+BuildRequires: tcl-devel >= 8.3.2
+BuildRequires: tk-devel >= 8.3.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%setup -q -n blt%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%configure
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc,sbin}
%{__make} install DESTDIR=$RPM_BUILD_ROOT
mv -f $RPM_BUILD_ROOT%{_bindir}/bltwish24 $RPM_BUILD_ROOT%{_bindir}/bltwish
# bitmap.n is provided by tk-devel
-# but why remove tabset.n and watch.n?
-#rm -f $RPM_BUILD_ROOT%{_mandir}/mann/{bitmap,tabset,watch}.n
rm -f $RPM_BUILD_ROOT%{_mandir}/mann/bitmap.n
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
cp -rf examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
rm -f html/Makefile* $RPM_BUILD_ROOT%{_libdir}/blt2.4/{NEWS,README,PROBLEMS}
+
gzip -9nf README NEWS PROBLEMS
%post -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc *.gz html
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/lib*24.so
%{_libdir}/blt2.4
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*[a-zA-Z].so
+%doc *.gz html
%{_includedir}/blt.h
%{_mandir}/mann/*