# # Conditional build: %bcond_without python # don't build Python module %bcond_without tcl # build Tcl module # Summary: Not Erik's Windowing Toolkit - text mode windowing with slang Summary(de.UTF-8): Nicht Eriks Windowing Toolkit - Textmodus-Windowing mit Slang Summary(fr.UTF-8): Not Erik's Windowing Toolkit - fenêtrage en mode texte avec slang Summary(pl.UTF-8): Not Erik's Windowing Toolkit - okna w trybie tekstowym ze slangiem Summary(tr.UTF-8): Not Erik's Windowing Toolkit - metin kipi pencereleme sistemi Name: newt Version: 0.52.10 Release: 1 License: LGPL Group: Libraries # http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/ Source0: https://fedorahosted.org/releases/n/e/newt/%{name}-%{version}.tar.gz # Source0-md5: bcbcc87ec19ba37d34f819209afa2e15 Patch0: %{name}-textbox.patch Patch1: %{name}-0.51.6-if1close.patch Patch2: %{name}-PIC.patch Patch3: %{name}-gcc34.patch Patch4: %{name}-nopython.patch Patch5: %{name}-make.patch URL: https://fedorahosted.org/newt/ BuildRequires: autoconf BuildRequires: docbook-utils BuildRequires: popt-devel %{?with_python:BuildRequires: python-devel >= 1:2.5} BuildRequires: rpm-pythonprov #BuildRequires: sgml-tools BuildRequires: slang-devel >= 2.0.0 %{?with_tcl:BuildRequires: tcl-devel >= 8.5} 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.UTF-8 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.UTF-8 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.UTF-8 Newt jest biblioteką typu toolkit ale do trybu tekstowego, osadzoną na bibliotece slang. Umożliwia budowanie aplikacji pracujących w trybie tekstowym umożliwiają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.UTF-8 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.UTF-8): Entwickler-Toolkit für die newt-Windowing-Library Summary(fr.UTF-8): Toolkit de développement pour la bibliothèque de fenêtrage newt Summary(pl.UTF-8): Pliki nagłówkowe dla newt Summary(tr.UTF-8): newt pencere kitaplığı için geliştirme dosyaları Group: Development/Libraries Requires: %{name} = %{version}-%{release} %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.UTF-8 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.UTF-8 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.UTF-8 Pliki nagłówkowe dla newt. %description devel -l tr.UTF-8 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.UTF-8): Biblioteka statyczna newt Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Newt static library. %description static -l pl.UTF-8 Biblioteka statyczna newt. %package tcl Summary: Newt Tcl bindings Summary(pl.UTF-8): Dodatki do Tcl z Newta Group: Development/Languages/Tcl Requires: %{name} = %{version}-%{release} %description tcl Newt Tcl bindings. %description tcl -l pl.UTF-8 Dodatki do Tcl z Newta. %package -n python-snack Summary: Newt python bindings Summary(pl.UTF-8): Dodatki do pythona z Newta Group: Development/Languages/Python %pyrequires_eq python Requires: %{name} = %{version}-%{release} Provides: %{name}-python = %{version}-%{release} Provides: snack = %{version}-%{release} Obsoletes: newt-python %description -n python-snack Newt python bindings %description -n python-snack -l pl.UTF-8 Dodatki do pythona z Newta. %package -n whiptail Summary: A dialog compliant program to build tty dialog boxes Summary(pl.UTF-8): 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.UTF-8 Program umożliwiają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 %patch4 -p1 %patch5 -p1 -b .orig %build %{__autoconf} %configure \ --with-gpm-support \ %{!?with_tcl:--without-tcl} %{__make} \ PYTHONVERS=python%{py_ver} \ LIBTCL=-ltcl \ %{!?with_python:SNACKSO=} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ PYTHONVERS=python%{py_ver} \ %{!?with_tcl:WHIPTCLSO=} \ %{!?with_python:SNACKSO=} \ instroot=$RPM_BUILD_ROOT \ libdir=%{_libdir} \ pythondir=%{py_sitedir} \ pythonbindir=%{py_sitedir} %py_comp $RPM_BUILD_ROOT%{py_sitedir} %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} %py_postclean #it just plain doesn't work... fix it if you can #sgml2txt tutorial.sgml %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libnewt.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libnewt.so.0.52 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libnewt.so %{_includedir}/newt.h %files static %defattr(644,root,root,755) %{_libdir}/libnewt.a %if %{with tcl} %files tcl %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/whiptcl.so %endif %if %{with python} %files -n python-snack %defattr(644,root,root,755) %attr(755,root,root) %{py_sitedir}/_snackmodule.so %{py_sitedir}/snack.py[co] %endif %files -n whiptail %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/whiptail %{_mandir}/man1/whiptail.1*