%include /usr/lib/rpm/macros.python Summary: Not Erik's Windowing Toolkit - text mode windowing with slang Summary(de): Nicht Eriks Windowing Toolkit - Textmodus-Windowing mit Slang Summary(fr): Not Erik's Windowing Toolkit - fenętrage en mode texte avec slang Summary(pl): Not Erik's Windowing Toolkit - okna w trybie tekstowym ze slangiem Summary(tr): Not Erik's Windowing Toolkit - metin kipi pencereleme sistemi Name: newt Version: 0.50.34 Release: 3 License: LGPL Group: Libraries Source0: ftp://www.msg.com.mx/pub/Newt/%{name}-%{version}.tar.gz Patch0: %{name}-pythondirs.patch Patch1: %{name}-textbox.patch Patch2: %{name}-install_sh.patch Patch3: %{name}-gpm-fix.diff URL: http://www.msg.com.mx/Newt/ BuildRequires: autoconf BuildRequires: automake BuildRequires: popt-devel BuildRequires: python-devel >= 2.2 BuildRequires: sgml-tools BuildRequires: slang-devel BuildRequires: tcl-devel >= 8.3.2 BuildRequires: docbook-utils BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Newt is a windowing toolkit for text mode built from the slang library. It allows color text mode applications to easily use stackable windows, push buttons, check boxes, radio buttons, lists, entry fields, labels, and displayable text. Scrollbars are supported, and forms may be nested to provide extra functionality. This pacakge contains the shared library for programs that have been built with newt. %description -l de Newt ist ein Windowing-Toolkit für Textmodus, konstruiert auf der Grundlage der Slang-Library, mit dessen Hilfe Farbtext-Modus- Applikationen leicht mit stapelbaren Fenstern, Schaltflächen, Optionskästchen, Listen, Eingabefeldern, Etiketten und Display-Text arbeiten können. Auch Bildlaufleisten erden unterstützt, und der Einbau von Formularen ist möglich, wenn zusätzliche Funktionalität gefordert ist. %description -l fr Newt est une boite ŕ outil de fenétrage en mode texte, construit sur la librarie slang. Elle permet aux applications en mode texte d'utiliser simplement de multiples fenętres, des bouttons, des cases ŕ cocher... Les barres de défilement sont supportées, et les fenętres peuvent ętre imbriquées pour donner des fonctionnalités nouvelles. %description -l pl Newt jest biblioteką typu toolkit ale do trybu tekstowego, osadzoną na bibliotece slang. Umożliwia budowanie aplikacji pracujących w trybie tekstowym umożliwijąc operowanie na okienkach, przyciskach (push button), listach wyboru, etykietach i elementach tekstowych jakie są potrzebne przy tworzeniu interfejsu użytkownika w różnych aplikacjach. %description -l tr Newt ile karakter tabanlý ekranlarda renkli pencereler, kaydýrma çubuklarý, çeţitli tuţlar oluţturulabilir. %package devel Summary: Developer's toolkit for newt windowing library Summary(de): Entwickler-Toolkit für die newt-Windowing-Library Summary(fr): Toolkit de développement pour la bibliothčque de fenętrage newt Summary(pl): Pliki nagłówkowe dla newt Summary(tr): newt pencere kitaplýđý için geliţtirme dosyalarý Group: Development/Libraries Requires: %{name} = %{version} %description devel These are the header files and libraries for developing applications which use newt. Newt is a windowing toolkit for text mode, which provides many widgets and stackable windows. %description devel -l de Dies sind die Header-Dateien und Libraries zur Entwicklung von Applikationen, die mit newt arbeiten. Newt ist ein Windowing-Toolkit für Textmodus, der viele Widgets und stapelbare Fenster enthält. %description devel -l fr En-tętes et bibliothčques pour le développement d'applications utilisant newt. newt est un tookit de fenętrage pour le mode texte offrant de nombreux widgets et des fenętres empilables. %description devel -l pl Pliki nagłówkowe dla newt. %description devel -l tr Bu paket, newt ile geliţtirme yapmak için gereken baţlýk dosyalarýný ve kitaplýklarý içerir. Newt, metin ekranda çalýţan bir pencereleme kitaplýđýdýr. %package static Summary: Newt static library Summary(pl): Biblioteka statyczna newt Group: Development/Libraries Requires: %{name}-devel = %{version} %description static Newt static library. %description static -l pl Biblioteka statyczna newt. %package tcl Summary: Newt Tcl bindings Summary(pl): Dodatki do Tcl z Newta Group: Development/Languages/Tcl Requires: %{name} = %{version} %description tcl Newt Tcl bindings. %description tcl -l pl Dodatki do Tcl z Newta %package python Summary: Newt python bindings Summary(pl): Dodatki do pythona z Newta Group: Development/Languages/Python Requires: %{name} = %{version} Requires: python >= 1.5 Provides: snack %requires_eq python %description python Newt python bindings %description python -l pl Dodatki do pythona z Newta. %package -n whiptail Summary: A dialog compliant program to build tty dialog boxes Summary(pl): Program do tekstowych okienek dialogowych kompatybilny z dialog Group: Applications/Terminal %description -n whiptail Dialog compliant utility that allows you to build user interfaces in a TTY (text mode only). You can call dialog from within a shell script to ask the user questions or present with choices in a more user friendly manner. %description -n whiptail -l pl Program umożliwiący budować interfejsy użytkownika na terminalu tekstowym, kompatybilny z programem dialog. Pozwala wywołać dialog ze skryptu shella, aby zdać pytania użytkownikowi w sposób bardziej przyjazny. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build aclocal autoconf %configure \ --enable-gpm-support %{__make} PROGS="whiptail whiptcl.so testgrid" %{__make} shared %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT %{__make} instroot=$RPM_BUILD_ROOT install %{__make} instroot=$RPM_BUILD_ROOT install-sh #it just plain doesn't work... fix it if you can %ifnarch ppc sgml2txt tutorial.sgml gzip -9nf CHANGES tutorial.txt %else gzip -9nf CHANGES %endif %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/*.so.*.* %files -n whiptail %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/whiptail %files tcl %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/*tcl.so %files python %defattr(644,root,root,755) %{_libdir}/python*/*.py %attr(755,root,root) %{py_libdir}/lib-dynload/*.so %files devel %defattr(644,root,root,755) %doc CHANGES.gz tutorial.txt.gz %{_includedir}/*.h %attr(755,root,root) %{_libdir}/lib*.so %files static %defattr(644,root,root,755) %{_libdir}/*.a