libdir = $(prefix)/lib
bindir = $(prefix)/bin
ARCHNAME = $(shell uname -m | sed 's/i.86/i386/')
-pythondir = $(prefix)/lib/python1.5
-pythonbindir = $(prefix)/lib/python1.5/lib-dynload
+pythondir = $(prefix)/lib/python2.2
+pythonbindir = $(prefix)/lib/python2.2/lib-dynload
#--------------------------------------
gcc --shared $(SHCFLAGS) -o _snackmodule.so snackmodule.o -L . $(LIBNEWTSH)
snackmodule.o: snackmodule.c
- gcc -I/usr/include/python1.5 -fPIC $(CFLAGS) -c snackmodule.c
+ gcc -I/usr/include/python2.2 -fPIC $(CFLAGS) -c snackmodule.c
whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
gcc -g -o whiptail $(NDIALOGOBJS) -L . $(LIBNEWTSH) $(LIBS) -lpopt
Summary: A development library for text mode user interfaces.
Name: newt
-%define version 0.50.33
+%define version 0.50.34
Version: %{version}
Release: 1
License: LGPL
Requires: slang-devel %{name} = %{version}
Group: Development/Libraries
-%package python2
-Summary: Snack for python2
-Requires: python2
-Group: System Environment/Libraries
-
%Description
Newt is a programming library for color text mode, widget based user
interfaces. Newt can be used to add stacked windows, entry widgets,
Install newt-devel if you want to develop applications which will use
newt.
-%description python2
-The newt-python2 package contains a snack module for python2.
%prep
%setup
make instroot=$RPM_BUILD_ROOT install
make instroot=$RPM_BUILD_ROOT install-sh
-python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/usr/lib/python1.5",10,"/usr/lib/python1.5")'
-
-%if 0
-# cheat... build python2 stuff here
-make clean
-perl -pi -e "s/python1.5/python2.0/g" *
-./configure
-make instroot=$RPM_BUILD_ROOT install
-make instroot=$RPM_BUILD_ROOT install-sh
-python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/usr/lib/python2.0",10,"/usr/lib/python2.0")'
-%endif
+python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/usr/lib/python2.2",10,"/usr/lib/python2.2")'
%clean
rm -rf $RPM_BUILD_ROOT
%doc CHANGES COPYING
/usr/lib/libnewt.so.*
/usr/bin/whiptail
-/usr/lib/python1.5/snack.py*
-/usr/lib/python1.5/lib-dynload/_snackmodule.so
+/usr/lib/python2.2/snack.py*
+/usr/lib/python2.2/lib-dynload/_snackmodule.so
%files devel
%defattr (-,root,root)
/usr/lib/libnewt.a
/usr/lib/libnewt.so
-%if 0
-%files python2
-%defattr (-,root,root)
-/usr/lib/python2.0
-%endif
-
%changelog
+* Fri Sep 15 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.50.34-1
+- remove python2 subpackage
+- compile package for python 2.2
+
* Wed Aug 29 2001 Trond Eivind Glomsrød <teg@redhat.com> 0.50.33-1
- s/Copyright/License/
- Add slang-devel to build dependencies (#49542)