This commit is contained in:
committed by
Git OBS Bridge
parent
afd2c108bb
commit
6b4b9a5f75
76
newt.spec
76
newt.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package newt (Version 0.52.6)
|
||||
# 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
|
||||
@@ -11,19 +11,18 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: newt
|
||||
URL: ftp://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/newt-0.52.6-3.fc7.src.rpm
|
||||
URL: ftp://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/newt-0.52.7-1.fc8.src.rpm
|
||||
Summary: Nifty Erik's Windowing Toolkit
|
||||
Version: 0.52.6
|
||||
Release: 30
|
||||
Version: 0.52.7
|
||||
Release: 1
|
||||
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
||||
Group: System/Libraries
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Patch1: newt-0.52.6-entry.patch
|
||||
Patch2: newt-0.52.6-cursor.patch
|
||||
Patch3: newt-0.52.6-countitems.patch
|
||||
Patch4: newt-0.52.6-memleaks.patch
|
||||
Source10: %name-rpmlintrc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel slang-devel
|
||||
# needed for tutorial.pdf
|
||||
BuildRequires: docbook-toys
|
||||
%{py_requires}
|
||||
Provides: snack = %{version}-%{release}
|
||||
####################
|
||||
@@ -46,14 +45,19 @@ BuildRequires: popt-devel
|
||||
Summary: Development files for the Newt windowing toolkit
|
||||
Provides: newtd = %{version}
|
||||
Requires: newt = %{version}
|
||||
Requires: python
|
||||
Requires: slang-devel %{name} = %{version}
|
||||
Group: Development/Libraries/C and C++
|
||||
Obsoletes: newtd <= %{version}
|
||||
#
|
||||
%package doc
|
||||
Summary: Tutorial for Nifty Erik's Windowing Toolkit
|
||||
Group: Documentation/Howto
|
||||
#
|
||||
%package static
|
||||
Summary: Nifty Erik's Windowing Toolkit
|
||||
Requires: newt-devel = %{version}
|
||||
Group: System/Libraries
|
||||
Group: Development/Libraries/C and C++
|
||||
|
||||
%description
|
||||
Newt is a programming library for color text-mode widget-based user
|
||||
@@ -82,6 +86,21 @@ newt.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Erik Troan <ewt@redhat.com>
|
||||
|
||||
|
||||
%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>
|
||||
@@ -104,21 +123,15 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p0 -b .entry
|
||||
%patch2 -p0 -b .cursor
|
||||
%patch3 -p0 -b .countitems
|
||||
%patch4 -p0 -b .memleaks
|
||||
|
||||
%build
|
||||
%{?suse_update_config:%{suse_update_config -f}}
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fPIC -Wall -fno-strict-aliasing"
|
||||
%configure --without-tcl
|
||||
# gpm support seems to smash the stack
|
||||
# --with-gpm-support
|
||||
make depend
|
||||
make PYTHONVERS=python%{py_ver}
|
||||
make shared PYTHONVERS=python%{py_ver}
|
||||
chmod 0644 peanuts.py popcorn.py
|
||||
## make depend
|
||||
make PYTHONVERS=python%{py_ver} %{?_smp_mflags}
|
||||
make shared PYTHONVERS=python%{py_ver}
|
||||
|
||||
%install
|
||||
make instroot=%buildroot install PYTHONVERS=python%{py_ver}
|
||||
@@ -127,6 +140,15 @@ make instroot=%buildroot install-sh PYTHONVERS=python%{py_ver}
|
||||
for lang in dz mg tl wo; do
|
||||
rm -rf %buildroot%_datadir/locale/$lang
|
||||
done
|
||||
# install documentation
|
||||
install -d -m 755 %buildroot/%_defaultdocdir/%name
|
||||
for i in peanuts.py popcorn.py tutorial.sgml COPYING; do
|
||||
install -m 644 %_builddir/%name-%version/$i %buildroot/%_defaultdocdir/%name/
|
||||
done
|
||||
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
|
||||
@@ -138,7 +160,8 @@ rm -rf %buildroot
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr (-,root,root)
|
||||
%doc COPYING
|
||||
%dir %_defaultdocdir/%name
|
||||
%doc %_defaultdocdir/%name/COPYING
|
||||
%{_bindir}/whiptail
|
||||
%{_libdir}/libnewt.so.*
|
||||
%{py_sitedir}/*
|
||||
@@ -146,15 +169,28 @@ rm -rf %buildroot
|
||||
|
||||
%files devel
|
||||
%defattr (-,root,root)
|
||||
%doc tutorial.sgml peanuts.py popcorn.py
|
||||
%doc %_defaultdocdir/%name/*.py
|
||||
%{_includedir}/newt.h
|
||||
%{_libdir}/libnewt.so
|
||||
|
||||
%files doc
|
||||
%defattr (-,root,root)
|
||||
%doc %_defaultdocdir/%name/tutorial.*
|
||||
|
||||
%files static
|
||||
%defattr (-,root,root)
|
||||
%{_libdir}/libnewt.a
|
||||
|
||||
%changelog
|
||||
* Tue Jun 26 2007 - lrupp@suse.de
|
||||
- update to 0.52.7:
|
||||
+ add support to snack for multiple selection and border in listbox
|
||||
and cursorAtEnd in entry (patch by Shawn Starr)
|
||||
+ fix scrollbar positioning in listbox
|
||||
+ cope with backward system time jumps (RH#240691)
|
||||
+ free helplines and windows in newtFinished, check for overflow (RH#239992)
|
||||
- remove included patches
|
||||
- created doc package for tutorial (N#287087)
|
||||
* Wed Jun 13 2007 - lrupp@suse.de
|
||||
- included patches from Miroslav Lichvar:
|
||||
+ fix cursor positioning when setting entry or checkbox flags
|
||||
|
||||
Reference in New Issue
Block a user