Summary: A Tk toolkit extension, including widgets, geometry managers, etc. Name: blt Version: 2.4u Release: 1 License: MIT Group: Development/Tools Group(de): Entwicklung/Werkzeuge Group(fr): Development/Outils Group(pl): Programowanie/Narzędzia Source0: ftp://tcltk.sourceforge.net/pub/tcltk/blt/BLT%{version}.tar.gz Patch0: %{name}-DESTDIR.patch Patch1: %{name}-paths.patch 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. If you are programming with the Tk toolkit, you should install BLT. You will need to have Tcl/Tk installed. %description -l pl 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. %package devel Summary: A Tk toolkit extension, including widgets, geometry managers, etc. Group: Development/Tools Group(de): Entwicklung/Werkzeuge Group(fr): Development/Outils Group(pl): Programowanie/Narzędzia Requires: %{name} = %{version} %description devel BLT header files. %package static Summary: A Tk toolkit extension, including widgets, geometry managers, etc. Group: Development/Tools Group(de): Entwicklung/Werkzeuge Group(fr): Development/Outils Group(pl): Programowanie/Narzędzia Requires: %{name}-devel = %{version} %description static BLT static libraries. %package demos Summary: A Tk toolkit extension, including widgets, geometry managers, etc. Group: Development/Tools Group(de): Entwicklung/Werkzeuge Group(fr): Development/Outils Group(pl): Programowanie/Narzędzia Requires: %{name} = %{version} %description demos BLT demos and examples. %prep %setup -q -n blt%{version} %patch0 -p1 %patch1 -p1 %build %configure %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/{etc,sbin} %{__make} install DESTDIR=$RPM_BUILD_ROOT ln -sf libBLT24.so $RPM_BUILD_ROOT%{_libdir}/libBLT.so ln -sf libBLTlite24.so $RPM_BUILD_ROOT%{_libdir}/libBLTlite.so # 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 # 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} mv -f $RPM_BUILD_ROOT%{_libdir}/blt2.4/demos $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 %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %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 %{_includedir}/blt.h %{_mandir}/mann/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a %files demos %defattr(644,root,root,755) %{_examplesdir}/%{name}