|
@@ -0,0 +1,376 @@
+#
+# spec file for package newt (Version 0.52.7)
+#
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+# norootforbuild
+
+Name: newt
+Url: http://cvs.fedora.redhat.com/viewcvs/devel/newt/
+Summary: Nifty Erik's Windowing Toolkit
+Version: 0.52.7
+Release: 62
+%define soname 0_52
+License: LGPL v2.1 or later
+Group: System/Libraries
+Source: %name-%version.tar.bz2
+Source10: %name-rpmlintrc
+Patch1: newt-0.52.7-snack.patch
+Patch2: newt-0.52.7-whiptail.patch
+Patch3: newt-0.52.7-utf8.patch
+Requires: libnewt%soname = %version
+BuildRequires: popt-devel python-devel slang-devel
+%if 0%{?suse_version} < 1020
+BuildRequires: libpng-devel
+%endif
+# needed for tutorial.pdf
+BuildRequires: docbook-toys
+%if 0%{?sles_version} == 9
+BuildRequires: jadetex
+%endif
+%{py_requires}
+#
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+Newt is a programming library for color text-mode widget-based user
+interfaces. Newt can be used to add stacked windows, entry widgets,
+check boxes, radio buttons, labels, plain text fields, scrollbars,
+etc., to text mode user interfaces.
+
+This package also contains a Dialog replacement called whiptail.
+
+
+
+Authors:
+--------
+ Erik Troan <ewt@redhat.com>
+
+%package -n libnewt0_52
+Summary: Shared libraries for Nifty Erik's Windowing Toolkit
+Group: System/Libraries
+#
+
+%description -n libnewt0_52
+This package contains the shared libraries needed by programs built
+with newt.
+
+Newt is a programming library for color text-mode widget-based user
+interfaces. Newt can be used to add stacked windows, entry widgets,
+check boxes, radio buttons, labels, plain text fields, scrollbars,
+etc., to text mode user interfaces.
+
+
+
+Authors:
+--------
+ Erik Troan <ewt@redhat.com>
+
+%package devel
+Summary: Development files for the Newt windowing toolkit
+Requires: libnewt%soname = %{version}
+Requires: python
+Requires: slang-devel
+Group: Development/Libraries/C and C++
+#
+
+%description devel
+This package contains the header files and libraries necessary for
+developing applications which use newt.
+
+Newt is a development library for text mode user interfaces.
+
+Install newt-devel if you want to develop applications which depend on
+newt.
+
+
+
+Authors:
+--------
+ Erik Troan <ewt@redhat.com>
+
+%package doc
+Summary: Tutorial for Nifty Erik's Windowing Toolkit
+Group: Documentation/Howto
+#
+
+%description doc
+This package contains a tutorial about the Newt windowing toolkit.
+
+Newt is a programming library for color text-mode widget-based user
+interfaces. Newt can be used to add stacked windows, entry widgets,
+check boxes, radio buttons, labels, plain text fields, scrollbars,
+etc., to text mode user interfaces.
+
+
+
+Authors:
+--------
+ Erik Troan <ewt@redhat.com>
+
+%package static
+Summary: Static libraries of Nifty Erik's Windowing Toolkit
+Requires: newt-devel = %{version}
+Group: Development/Libraries/C and C++
+#
+
+%description static
+This package contains the static libraries needed to compile programms
+based on newt which don't need the shared libraries.
+
+Newt is a programming library for color text-mode widget-based user
+interfaces. Newt can be used to add stacked windows, entry widgets,
+check boxes, radio buttons, labels, plain text fields, scrollbars,
+etc., to text mode user interfaces.
+
+
+
+Authors:
+--------
+ Erik Troan <ewt@redhat.com>
+
+%package python
+Summary: Python bindings for newt
+Group: System/Libraries
+Requires: newt = %{version}
+#
+
+%description python
+The newt-python package contains the Python bindings for the newt
+library providing a python API for creating text mode ionterfaces.
+
+
+
+Authors:
+--------
+ Erik Troan <ewt@redhat.com>
+
+%prep
+%setup -q
+%patch1 -p1 -b .snack
+%patch2 -p1 -b .whiptail
+%if 0%{?suse_version} > 1000
+%patch3
+%endif
+
+%build
+## export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
+%configure --without-tcl
+# gpm support seems to smash the stack
+# --with-gpm-support
+## make depend
+make %{?jobs:-j%jobs} all
+
+%install
+make PYTHONVERS="python%{py_ver}" instroot="%buildroot" install install-sh
+# currently we don't support these languages
+#for lang in dz mg tl wo; do
+# rm -rf %buildroot%_datadir/locale/$lang
+#done
+#
+# prepare defaultdocdir with examples and scripts
+#
+install -d -m 755 %buildroot/%_defaultdocdir/%name/examples
+# install COPYING file
+install -m 644 COPYING %buildroot/%_defaultdocdir/%name/
+# install example scripts
+install -m 755 peanuts.py %buildroot/%_defaultdocdir/%name/examples/
+install -m 755 popcorn.py %buildroot/%_defaultdocdir/%name/examples/
+#
+# create tutorial.pdf documentation
+#
+install -m 644 tutorial.sgml %buildroot/%_defaultdocdir/%name/
+pushd %buildroot/%_defaultdocdir/%name/ 1>/dev/null
+db2pdf tutorial.sgml
+rm tutorial.{aux,log,out} CATALOG.* *.dsl
+popd 1>/dev/null
+%find_lang %{name}
+
+%clean
+rm -rf %buildroot
+
+%post -n libnewt%soname -p /sbin/ldconfig
+
+%postun -n libnewt%soname -p /sbin/ldconfig
|