From: teg Date: Fri, 15 Dec 2000 21:47:46 +0000 (+0000) Subject: Add python2 subpackage. Fixes for python2 X-Git-Tag: r0-50-19~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5805a3931311b7d3cdd4b531615bf304b13d8711;p=thirdparty%2Fnewt.git Add python2 subpackage. Fixes for python2 --- diff --git a/configure.in b/configure.in index cf403a0..b470291 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(newt_pr.h) AC_CONFIG_HEADER(config.h) -VERSION=0.50.18 +VERSION=0.50.19 SONAME=0.50 AC_SUBST(VERSION) AC_SUBST(SONAME) diff --git a/newt.spec b/newt.spec index 4e2501f..0113644 100644 --- a/newt.spec +++ b/newt.spec @@ -6,17 +6,22 @@ Release: 1 Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.redhat.com/pub/redhat/code/newt/newt-%{version}.tar.gz -BuildRequires: python, slang-devel +BuildRequires: python,python2,perl Requires: slang Provides: snack +BuildRoot: %{_tmppath}/%{name}-%{version}-%{root} %package devel Summary: Newt windowing toolkit development files. Requires: slang-devel %{name} = %{version} Group: Development/Libraries -BuildRoot: /var/tmp/newtroot -%description +%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, checkboxes, radio buttons, labels, plain text fields, scrollbars, @@ -34,6 +39,9 @@ the slang library. 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 @@ -53,6 +61,15 @@ 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")' +# 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")' + + %clean rm -rf $RPM_BUILD_ROOT @@ -80,9 +97,15 @@ rm -rf $RPM_BUILD_ROOT /usr/lib/libnewt.a /usr/lib/libnewt.so +%files python2 +%defattr (-,root,root) +/usr/lib/python2.0 + %changelog -* Tue Sep 12 2000 Florian La Roche -- add slang-devel to BuildRequires: +* Fri Dec 15 2000 Trond Eivind Glomsrød +- use %%{_tmppath} +- add python2 subpackage, with such support +- fix use of append in snack.py * Fri Sep 08 2000 Trond Eivind Glomsrød - bytecompile the snack python module