-Summary: A Tk toolkit extension, including widgets, geometry managers, etc.
+Summary: A Tk toolkit extension, including widgets, geometry managers, etc
+Summary(es): Componentes (widgets) y comandos extras para aplicaciones tk
+Summary(pl): Rozszerzenie Tk umo¿liwiaj±ce operowanie na kontrolkach i wiele innych
+Summary(pt_BR): Componentes (widgets) e comandos extras para aplicações tk
+Summary(ru): òÁÓÛÉÒÅÎÉÅ ÎÁÂÏÒÁ tk, ×ËÌÀÞÁÑ ÇÒÁÆÉÞÅÓËÉÅ ÐÒÉÍÉÔÉ×Ù, ÍÅÎÅÄÖÅÒÙ ÇÅÏÍÅÔÒÉÉ É Ô.Ä
+Summary(uk): òÏÚÛÉÒÅÎÎÑ ÎÁÂÏÒÕ tk, ×ËÌÀÞÁÀÞÉ ÇÒÁƦÞΦ ÐÒÉͦÔÉ×É, ÍÅÎÅÄÖÅÒÉ ÇÅÏÍÅÔÒ¦§ ¦ Ô.¦
Name: blt
-Version: 2.4g
-Release: 5
-Copyright: MIT
+Version: 2.4u
+Release: 8
+License: MIT
Group: Development/Tools
-Obsoletes: blt-devel
-Source0: ftp://ftp.tcltk.org/pub/blt/BLT%{version}.tar.gz
-Patch0: blt-prefix.patch
-Buildroot: /tmp/%{name}-%{version}-root
+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: autoconf
+#BuildRequires: automake
+BuildRequires: tcl-devel >= 8.3.2
+BuildRequires: tk-devel >= 8.3.2
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-BLT is an extension to the Tk toolkit. BLT's most useful feature is the
-provision of more widgets for Tk, but it also provides more geometry
-managers and miscellaneous other commands. Note that you won't need to do
-any patching of the Tcl or Tk source files to use BLT, but you will need to
-have Tcl/Tk installed in order to use BLT.
-
+BLT is an extension to the Tk toolkit. BLT's most useful feature is
+the provision of more widgets for Tk, but it also provides more
+geometry managers and miscellaneous other commands. Note that you
+won't need to do any patching of the Tcl or Tk source files to use
+BLT, but you will need to have Tcl/Tk installed in order to use BLT.
If you are programming with the Tk toolkit, you should install BLT.
You will need to have Tcl/Tk installed.
-%description
-BLT jest rozszerzeniem Tk. Najbardziej u¿yteczn± funkcj± BLT jest dostarczenie
-Tk wiêkszej ilo¶ci widgetów; oferuje równie¿ wiêcej mened¿erów geometrii i
-innych poleceñ. Aby u¿ywaæ BLT nie trzeba ³ataæ plików ¼ród³owych Tcl ani Tk,
-trzeba jednak mieæ zainstalowanego Tcl/Tk.
-
-Je¶li programuje siê w Tcl/tk, nale¿y zainstalowaæ BLT. Trzeba równie¿
-zainstalowaæ Tcl/Tk.
+%description -l es
+BLT ofrece componentes (widgets) y comandos extras para programas tk.
+Incluye componentes gráficos, administración de geometría de tablas y
+folders.
+
+%description -l pl
+BLT jest rozszerzeniem Tk. Najbardziej u¿yteczn± funkcj± BLT jest
+rozszerzenie Tk o wiêksz± ilo¶æ kontrolek; oferuje równie¿ wiêcej
+funkcji zarz±dzania geometri± i innych poleceñ. Aby u¿ywaæ BLT nie
+trzeba ³ataæ plików ¼ród³owych Tcl ani Tk, trzeba jednak mieæ
+zainstalowanego Tcl/Tk. Je¶li programuje siê w Tcl/Tk, lepiej
+zainstalowaæ BLT. Trzeba równie¿ zainstalowaæ Tcl/Tk.
+
+%description -l pt_BR
+O BLT fornece componentes (widgets) e comandos extras para programas
+tk. Ele inclui componentes gráficos, gerenciamento de geometria de
+tabelas e folders.
+
+%description -l ru
+BLT - ÜÔÏ ÒÁÓÛÉÒÅÎÉÅ ÎÁÂÏÒÁ Tk. îÁÉÂÏÌÅÅ ÃÅÎÎÏÊ ÏÓÏÂÅÎÎÏÓÔØÀ BLT
+Ñ×ÌÑÅÔÓÑ ÐÒÅÄÏÓÔÁ×ÌÅÎÉÅ ÂïÌØÛÅÇÏ ÎÁÂÏÒÁ ÐÒÉÍÉÔÉ×Ï× ÄÌÑ Tk, ÎÏ ÏÎ ÔÁËÖÅ
+ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÂÏÌØÛÅ ÍÅÎÅÄÖÅÒÏ× ÇÅÏÍÅÔÒÉÉ É ÐÒÏÞÉÈ ËÏÍÁÎÄ. óÌÅÄÕÅÔ
+ÏÔÍÅÔÉÔØ, ÞÔÏ ×ÁÍ ÎÅ ÎÁÄÏ ÉÚÍÅÎÑÔØ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× Tcl ÉÌÉ Tk ÄÌÑ
+ÔÏÇÏ, ÞÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ BLT, ÎÏ ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÕÓÔÁÎÏ×ÉÔØ Tcl/Tk ÄÌÑ
+ÉÓÐÏÌØÚÏ×ÁÎÉÑ BLT.
+
+%description -l uk
+BLT - ÃÅ ÒÏÚÛÉÒÅÎÎÑ ÎÁÂÏÒÕ Tk. îÁʦÌØÛ Ã¦ÎÎÏÀ ÏÓÏÂÌÉצÓÔÀ BLT ¤
+ÎÁÄÁÎÎÑ Â¦ÌØÛÏÇÏ ÎÁÂÏÒÕ ÐÒÉͦÔÉ×¦× ÄÌÑ Tk, ÁÌŠצΠÔÁËÏÖ ÎÁÄÁ¤ ¦ÌØÛÅ
+ÍÅÎÄÖÅÒ¦× ÇÅÏÍÅÔÒ¦§ ÔÁ ¦ÎÛÉÈ ËÏÍÁÎÄ. óÌ¦Ä ÚÁÚÎÁÞÉÔÉ, ÝÏ ×ÁÍ ÎÅ ÔÒÅÂÁ
+ÚͦÎÀ×ÁÔÉ ×ÉȦÄÎÉÈ ÔÅËÓÔ¦× Tcl ÁÂÏ Tk ÄÌÑ ÔÏÇÏ, ÝÏ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ
+BLT, ÁÌÅ ×ÁÍ ÎÅÏÂȦÄÎÏ ×ÓÔÁÎÏ×ÉÔÉ Tcl/Tk ÄÌÑ ×ÉËÏÒÉÓÔÁÎÎÑ BLT.
%package devel
+Summary: BLT development package
+Summary(pl): Pakiet dla programistów BLT
+Group: Development/Tools
+Requires: %{name} = %{version}
+
+%description devel
+BLT header files.
+
+%description devel -l pl
+Pliki nag³ówkowe BLT.
%package static
+Summary: BLT static libraries
+Summary(pl): Biblioteki statyczne BLT
+Group: Development/Tools
+Requires: %{name}-devel = %{version}
+
+%description static
+BLT static libraries.
+
+%description static -l pl
+Biblioteki statyczne BLT.
+
+%package demos
+Summary: BLT demos and examples
+Summary(pl): Dema i przyk³ady do BLT
+Summary(pt_BR): Programas que demonstram as características do BLT
+Summary(es): BLT Demonstrations
+Group: Development/Tools
+Requires: %{name} = %{version}
+
+%description demos
+BLT demos and examples.
+
+%description demos -l es
+BLT Demonstrations.
+
+%description demos -l pl
+Programy demonstracyjne i przyk³adowe do BLT.
+
+%description demos -l pt_BR
+Programas que demonstram as características do BLT.
%prep
%setup -q -n blt%{version}
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
-LDFLAGS="-s"; export LDFLAGS
-%configure
-make
+#aclocal
+#%{__autoconf}
+%configure2_13
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc,sbin}
-make exec_prefix=$RPM_BUILD_ROOT/usr prefix=$RPM_BUILD_ROOT/usr \
- scriptdir=$RPM_BUILD_ROOT/usr/lib/blt2.4 bare_prefix=/usr install
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
-ln -sf libBLT.so.2.4 $RPM_BUILD_ROOT/usr/lib/libBLT.so
+ln -sf libBLT24.so $RPM_BUILD_ROOT%{_libdir}/libBLT.so
+ln -sf libBLTlite24.so $RPM_BUILD_ROOT%{_libdir}/libBLTlite.so
-rm -f $RPM_BUILD_ROOT%{_mandir}/mann/{bitmap,tabset,watch}.n
+# use dynamically linked binaries
+mv -f $RPM_BUILD_ROOT%{_bindir}/bltsh24 $RPM_BUILD_ROOT%{_bindir}/bltsh
+mv -f $RPM_BUILD_ROOT%{_bindir}/bltwish24 $RPM_BUILD_ROOT%{_bindir}/bltwish
-strip $RPM_BUILD_ROOT/usr/bin/* || :
+# bitmap.n is provided by tk-devel
+rm -f $RPM_BUILD_ROOT%{_mandir}/mann/bitmap.n
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/mann/*
- README
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+mv -f $RPM_BUILD_ROOT%{_libdir}/blt2.4/demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+cp -rf examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+rm -f html/Makefile* $RPM_BUILD_ROOT%{_libdir}/blt2.4/{NEWS,README,PROBLEMS}
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
-%doc README.gz html
-%attr(755,root,root) /usr/bin/*
-%attr(755,root,root) /usr/lib/lib*.so.*.*
-/usr/lib/blt2.4
+%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) /usr/lib/lib*.so
-/usr/include/blt.h
+%doc README NEWS PROBLEMS html
+%attr(755,root,root) %{_libdir}/lib*[a-zA-Z].so
+%{_includedir}/blt.h
%{_mandir}/mann/*
%files static
-%attr(644,root,root) /usr/lib/lib*.a
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
+%files demos
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}