[weasel-commit] Source: newt=0.52.6-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Sat, 23 Jan 2010 08:03:43 -0500

================================
newt:source=0.52.6-1
cvc rdiff newt -1 /weasel.rpath.org@wgl:3-devel/0.52.6-1
================================
0.52.6-1 Filip Brcic (brcha@xxxxxxx) Sat Jan 23 08:03:33 2010
    Automatic promote by rBuild.

newt-0.52.6-3.fc7.src.rpm: new
newt.recipe: new
--- /dev/null
+++ newt.recipe
@@ -0,0 +46 @@
+#
+# Copyright (c) 2004-2007 rPath, Inc.
+# This file is distributed under the terms of the MIT License.
+# A copy is available at http://www.rpath.com/permanent/mit-license.html
+#
+
+loadInstalled('tcl')
+loadSuperClass('rpmpackage')
+loadSuperClass('python')
+class Newt(RPMPackageRecipe, AutoPackageRecipe, Python.VersionMixIn):
+    name = 'newt'
+    version = '0.52.6'
+    rpmRelease = '3.fc7'
+
+    buildRequires = [ 'python:devel', 'python:runtime', 'slang:devel',
+        'popt:devel', 'tcl:devel', ]
+
+    def configure(r):
+        r.setDefaultPython()
+        # First set tcl version to proper
+        r.macros.tclmajorminor = '.'.join(Tcl.version.split('.')[:-1])
+        r.Replace('-ltcl8.4', '-ltcl%(tclmajorminor)s', 'Makefile.in', 
allowNoChange=True)
+
+        if Arch.x86_64:
+            # Build 32bit version
+            macros32 = r.macros.copy()
+            macros32.cc = '"gcc -m32"'
+            macros32.cxx = '"g++ -m32"'
+            macros32.libdir = '%(prefix)s/lib'
+            r.Run('cp -a %(builddir)s %(builddir)s/../32bit')
+            r.Configure(dir='../32bit', overrideMacros=macros32)
+            r.Make(dir='../32bit', overrideMacros=macros32)
+            r.MakeInstall('libdir=%(libdir)s', rootVar='instroot',
+                          dir='../32bit', overrideMacros=macros32)
+
+            r.NonMultilibComponent(exceptions='.*')
+
+        r.Configure()
+
+    # Do not configure with --with-gpm-support; bugs affect anaconda
+    def makeinstall(r):
+        r.MakeInstall('libdir=%(libdir)s', rootVar='instroot')
+        r.CompilePython('%(libdir)s/python*')
+        r.Doc('tutorial.sgml', 'peanuts.py', 'popcorn.py')
+        r.Requires('slang:devel', '%(includedir)s/newt.h')
+        r.ComponentSpec('tcl', '%(libdir)s/whiptcl.so')

newt-0.52.6.tar.gz: new

Committed by: brcha

Other related posts: