From: ewt Date: Mon, 3 Nov 1997 15:47:09 +0000 (+0000) Subject: added _snackmodule to make install and specfile X-Git-Tag: r0-20~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c1056ccc7b2f26d381089cd333e05e7970ac5a4;p=thirdparty%2Fnewt.git added _snackmodule to make install and specfile --- diff --git a/Makefile b/Makefile index 60f0267..30ce1b4 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,8 @@ prefix = /usr includedir = $(prefix)/include libdir = $(prefix)/lib bindir = $(prefix)/bin +ARCHNAME = $(shell uname -m | sed 's/i.86/i386/') +pythondir = $(prefix)/lib/python1.4/linux-$(ARCHNAME) #-------------------------------------- @@ -98,10 +100,12 @@ install: $(LIBNEWT) whiptail install -m 644 $(LIBNEWT) $(instroot)/$(libdir) install -s -m 755 whiptail $(instroot)/$(bindir) -install-sh: sharedlib whiptcl.so +install-sh: sharedlib whiptcl.so _snackmodule.so install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir) ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/libnewt.so install -m 755 whiptcl.so $(instroot)/$(libdir) + [ -d $(instroot)/$(pythondir) ] || install -m 755 -d $(instroot)/$(pythondir) + install -m 755 _snackmodule.so $(instroot)/$(pythondir) archive: @cvs tag -F $(CVSTAG) diff --git a/newt.spec b/newt.spec index 140a686..0995a1c 100644 --- a/newt.spec +++ b/newt.spec @@ -1,6 +1,6 @@ Summary: Not Erik's Windowing Toolkit - text mode windowing with slang Name: newt -%define version 0.13 +%define version 0.20 Version: %{version} Release: 1 Copyright: LGPL @@ -87,3 +87,4 @@ rm -rf $RPM_BUILD_ROOT /usr/include/newt.h /usr/lib/libnewt.a /usr/lib/libnewt.so +/usr/lib/python1.4/%{RPM_OS}-%{RPM_ARCH}/_snackmodule.so