2006-12-21 15:29:33 +00:00
|
|
|
#
|
2008-09-05 18:30:59 +00:00
|
|
|
# spec file for package newt (Version 0.52.10)
|
2006-12-21 15:29:33 +00:00
|
|
|
#
|
2009-09-26 22:11:58 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-21 15:29:33 +00:00
|
|
|
#
|
2008-09-05 18:30:59 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2006-12-21 15:29:33 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-04-08 22:38:42 +00:00
|
|
|
|
2006-12-21 15:29:33 +00:00
|
|
|
Name: newt
|
2008-09-05 18:30:59 +00:00
|
|
|
Url: https://fedorahosted.org/newt/
|
2006-12-21 15:29:33 +00:00
|
|
|
Summary: Nifty Erik's Windowing Toolkit
|
2008-09-05 18:30:59 +00:00
|
|
|
Version: 0.52.10
|
2009-09-26 22:11:58 +00:00
|
|
|
Release: 8
|
2007-12-18 17:51:42 +00:00
|
|
|
%define soname 0_52
|
|
|
|
|
License: LGPL v2.1 or later
|
2006-12-21 15:29:33 +00:00
|
|
|
Group: System/Libraries
|
2007-12-18 17:51:42 +00:00
|
|
|
Source: %name-%version.tar.bz2
|
2007-06-28 17:36:00 +00:00
|
|
|
Source10: %name-rpmlintrc
|
2009-09-26 22:11:58 +00:00
|
|
|
Patch1: newt-CVE-2009-2905.patch
|
2007-12-18 17:51:42 +00:00
|
|
|
Requires: libnewt%soname = %version
|
2007-10-11 20:00:42 +00:00
|
|
|
BuildRequires: popt-devel python-devel slang-devel
|
2007-12-18 17:51:42 +00:00
|
|
|
%if 0%{?suse_version} < 1020
|
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
|
%endif
|
2007-06-28 17:36:00 +00:00
|
|
|
# needed for tutorial.pdf
|
|
|
|
|
BuildRequires: docbook-toys
|
2007-12-18 17:51:42 +00:00
|
|
|
%if 0%{?sles_version} == 9
|
|
|
|
|
BuildRequires: jadetex
|
|
|
|
|
%endif
|
2007-06-14 13:44:43 +00:00
|
|
|
%{py_requires}
|
2007-04-01 23:00:44 +00:00
|
|
|
#
|
2007-12-18 17:51:42 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-11 20:00:42 +00:00
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
%description
|
2008-09-05 18:30:59 +00:00
|
|
|
Newt is a programming library for color text-mode, widget-based user
|
2007-12-18 17:51:42 +00:00
|
|
|
interfaces. Newt can be used to add stacked windows, entry widgets,
|
2008-09-05 18:30:59 +00:00
|
|
|
checkboxes, radio buttons, labels, plain text fields, scrollbars, etc.,
|
|
|
|
|
to text mode user interfaces.
|
2007-10-11 20:00:42 +00:00
|
|
|
|
2008-09-05 18:30:59 +00:00
|
|
|
This package also contains a Dialog replacement called whiptail. Newt
|
|
|
|
|
is based on the slang library.
|
2007-10-11 20:00:42 +00:00
|
|
|
|
|
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
|
|
|
|
%package -n libnewt0_52
|
2008-04-08 22:38:42 +00:00
|
|
|
License: LGPL v2.1 or later
|
2007-12-18 17:51:42 +00:00
|
|
|
Summary: Shared libraries for Nifty Erik's Windowing Toolkit
|
2007-10-11 20:00:42 +00:00
|
|
|
Group: System/Libraries
|
2007-12-18 17:51:42 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
%description -n libnewt0_52
|
|
|
|
|
This package contains the shared libraries needed by programs built
|
|
|
|
|
with newt.
|
2006-12-21 15:29:33 +00:00
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
%package devel
|
2008-04-08 22:38:42 +00:00
|
|
|
License: LGPL v2.1 or later
|
2007-12-18 17:51:42 +00:00
|
|
|
Summary: Development files for the Newt windowing toolkit
|
|
|
|
|
Requires: libnewt%soname = %{version}
|
2008-04-08 22:38:42 +00:00
|
|
|
Requires: python-devel
|
|
|
|
|
Requires: slang-devel
|
|
|
|
|
Requires: popt-devel
|
|
|
|
|
Recommends: newt = %{version}
|
2007-12-18 17:51:42 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
#
|
|
|
|
|
|
2006-12-21 15:29:33 +00:00
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-06-28 17:36:00 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
%package doc
|
2008-04-08 22:38:42 +00:00
|
|
|
License: LGPL v2.1 or later
|
2007-12-18 17:51:42 +00:00
|
|
|
Summary: Tutorial for Nifty Erik's Windowing Toolkit
|
|
|
|
|
Group: Documentation/Howto
|
|
|
|
|
#
|
|
|
|
|
|
2007-06-28 17:36:00 +00:00
|
|
|
%description doc
|
|
|
|
|
This package contains a tutorial about the Newt windowing toolkit.
|
|
|
|
|
|
2008-09-05 18:30:59 +00:00
|
|
|
Newt is a programming library for color text-mode, widget-based user
|
2007-06-28 17:36:00 +00:00
|
|
|
interfaces. Newt can be used to add stacked windows, entry widgets,
|
|
|
|
|
check boxes, radio buttons, labels, plain text fields, scrollbars,
|
2008-09-05 18:30:59 +00:00
|
|
|
etc., to text mode user interfaces. Newt is based on the slang library.
|
2007-06-28 17:36:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
%package static
|
2008-04-08 22:38:42 +00:00
|
|
|
License: LGPL v2.1 or later
|
2007-12-18 17:51:42 +00:00
|
|
|
Summary: Static libraries of Nifty Erik's Windowing Toolkit
|
|
|
|
|
Requires: newt-devel = %{version}
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
#
|
|
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
%description static
|
2008-04-08 22:38:42 +00:00
|
|
|
This package contains the static libraries needed to compile programs
|
2008-09-05 18:30:59 +00:00
|
|
|
based on newt which don't need the shared libraries. Install it if you
|
|
|
|
|
need to link statically with libnewt.
|
2007-12-18 17:51:42 +00:00
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-11 20:00:42 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
2008-09-05 18:30:59 +00:00
|
|
|
%package -n python-newt
|
2009-09-26 22:11:58 +00:00
|
|
|
License: GPL v2 only ; GPL v2 or later ; LGPL v2.1 or later
|
2007-12-18 17:51:42 +00:00
|
|
|
Summary: Python bindings for newt
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Requires: newt = %{version}
|
2008-09-05 18:30:59 +00:00
|
|
|
Provides: newt-python = %{version}
|
|
|
|
|
Obsoletes: newt-python < 0.52.10
|
2007-12-18 17:51:42 +00:00
|
|
|
#
|
|
|
|
|
|
2008-09-05 18:30:59 +00:00
|
|
|
%description -n python-newt
|
2007-10-11 20:00:42 +00:00
|
|
|
The newt-python package contains the Python bindings for the newt
|
2008-09-05 18:30:59 +00:00
|
|
|
library providing a python API for creating text mode interfaces.
|
2007-10-11 20:00:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-21 15:29:33 +00:00
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
Erik Troan <ewt@redhat.com>
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2009-09-26 22:11:58 +00:00
|
|
|
%patch1 -p0
|
2006-12-21 15:29:33 +00:00
|
|
|
|
|
|
|
|
%build
|
2007-06-14 13:44:43 +00:00
|
|
|
# gpm support seems to smash the stack
|
|
|
|
|
# --with-gpm-support
|
2008-09-05 18:30:59 +00:00
|
|
|
%configure --without-tcl
|
2007-06-28 17:36:00 +00:00
|
|
|
## make depend
|
2007-12-18 17:51:42 +00:00
|
|
|
make %{?jobs:-j%jobs} all
|
2006-12-21 15:29:33 +00:00
|
|
|
|
|
|
|
|
%install
|
2007-12-18 17:51:42 +00:00
|
|
|
make PYTHONVERS="python%{py_ver}" instroot="%buildroot" install install-sh
|
2006-12-21 15:29:33 +00:00
|
|
|
# currently we don't support these languages
|
2008-09-05 18:30:59 +00:00
|
|
|
# FIXME: add to filesystem
|
|
|
|
|
for lang in bal sr@latin wo; do
|
2008-04-08 22:38:42 +00:00
|
|
|
rm -rf %buildroot%_datadir/locale/$lang
|
|
|
|
|
done
|
2007-12-18 17:51:42 +00:00
|
|
|
#
|
|
|
|
|
# prepare defaultdocdir with examples and scripts
|
|
|
|
|
#
|
2007-10-11 20:00:42 +00:00
|
|
|
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/
|
2007-12-18 17:51:42 +00:00
|
|
|
#
|
2007-10-11 20:00:42 +00:00
|
|
|
# create tutorial.pdf documentation
|
2007-12-18 17:51:42 +00:00
|
|
|
#
|
2007-10-11 20:00:42 +00:00
|
|
|
install -m 644 tutorial.sgml %buildroot/%_defaultdocdir/%name/
|
2007-06-28 17:36:00 +00:00
|
|
|
pushd %buildroot/%_defaultdocdir/%name/ 1>/dev/null
|
|
|
|
|
db2pdf tutorial.sgml
|
|
|
|
|
rm tutorial.{aux,log,out} CATALOG.* *.dsl
|
|
|
|
|
popd 1>/dev/null
|
2006-12-21 15:29:33 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %buildroot
|
|
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
%post -n libnewt%soname -p /sbin/ldconfig
|
2006-12-21 15:29:33 +00:00
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
%postun -n libnewt%soname -p /sbin/ldconfig
|
2006-12-21 15:29:33 +00:00
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr (-,root,root)
|
2007-06-28 17:36:00 +00:00
|
|
|
%dir %_defaultdocdir/%name
|
|
|
|
|
%doc %_defaultdocdir/%name/COPYING
|
2006-12-21 15:29:33 +00:00
|
|
|
%{_bindir}/whiptail
|
|
|
|
|
%{_mandir}/man1/whiptail.1*
|
|
|
|
|
|
2007-12-18 17:51:42 +00:00
|
|
|
%files -n libnewt0_52
|
|
|
|
|
%defattr (-,root,root)
|
|
|
|
|
%{_libdir}/libnewt.so.*
|
|
|
|
|
|
2006-12-21 15:29:33 +00:00
|
|
|
%files devel
|
|
|
|
|
%defattr (-,root,root)
|
|
|
|
|
%{_includedir}/newt.h
|
|
|
|
|
%{_libdir}/libnewt.so
|
|
|
|
|
|
2007-06-28 17:36:00 +00:00
|
|
|
%files doc
|
|
|
|
|
%defattr (-,root,root)
|
|
|
|
|
%doc %_defaultdocdir/%name/tutorial.*
|
|
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
%files static
|
|
|
|
|
%defattr (-,root,root)
|
|
|
|
|
%{_libdir}/libnewt.a
|
|
|
|
|
|
2008-09-05 18:30:59 +00:00
|
|
|
%files -n python-newt
|
2007-10-11 20:00:42 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %_defaultdocdir/%name/examples
|
|
|
|
|
%doc %_defaultdocdir/%name/examples/*.py
|
|
|
|
|
%{py_sitedir}/*
|
2007-12-18 17:51:42 +00:00
|
|
|
|
2007-03-07 22:15:32 +00:00
|
|
|
%changelog
|