]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added _snackmodule to make install and specfile
authorewt <ewt>
Mon, 3 Nov 1997 15:47:09 +0000 (15:47 +0000)
committerewt <ewt>
Mon, 3 Nov 1997 15:47:09 +0000 (15:47 +0000)
Makefile
newt.spec

index 60f0267dd3c135b0060cfc0700f215bcfed37088..30ce1b43656663bb525badf80ebd3161c37fe794 100644 (file)
--- 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)
index 140a686833dcf3e6253e8a73fc12a50ed9337e12..0995a1c6cdd7580c0d54b24037f9d31762b8cae8 100644 (file)
--- 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