[weasel-commit] Source: pump=0.8.24-5

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

================================
pump:source=0.8.24-5 (previous: 0.8.24-4)
cvc rdiff pump -1 /weasel.rpath.org@wgl:3-devel/0.8.24-5
================================
0.8.24-5 Filip Brcic (brcha@xxxxxxx) Sat Jan 23 10:07:53 2010
    version bump + metadata

pump_0.8.24.orig.tar.gz: new
pump_0.8.24-5.diff.gz: new
pump.recipe: changed
Index: pump.recipe
====================================================================
contents(size sha1)
inode(mtime)
--- pump.recipe /weasel.rpath.org@wgl:3-devel/0.8.24-4
+++ pump.recipe /weasel.rpath.org@wgl:3-devel/0.8.24-5
@@ -1,31 +1,53 @@
 #
-# Copyright (c) 2004-2006 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
+# Copyright (c) 2010 Filip Brcic <brcha@xxxxxxxxxxxx>
+# Distributed under the terms of the GNU General Public License v3
 #
 
-loadSuperClass('rpmpackage')
-class Pump(RPMPackageRecipe, CPackageRecipe):
+class Pump(CPackageRecipe):
     name = 'pump'
     version = '0.8.24'
+    patchlevel = '5'
 
-    buildRequires = [ 'newt:devel', 'gettext:runtime', 'popt:devel', ]
+    buildRequires = [
+        'popt:devel',
+        ]
 
-    rpmRelease = '1.2.2.1'
+    shortDesc  = 'This is the DHCP/BOOTP client written by RedHat'
+    url        = 'http://ftp.debian.org/debian/pool/main/p/pump/'
+    licenses   = [ 'GPL-2' ]
+    categories = [ 'Network/Misc' ]
 
     def setup(r):
-        r.unpack()
-        if Arch.x86_64:
-            # First build 32bit libs
-            r.Run('cp -a %(builddir)s %(builddir)s/../32bit')
-            macros32 = r.macros.copy()
-            macros32.cc = '"gcc -m32"'
-            macros32.cxx = '"g++ -m32"'
-            macros32.libdir = '%(prefix)s/lib'
-            r.Make(dir='../32bit', overrideMacros=macros32)
-            r.MakePathsInstall('RPM_BUILD_ROOT=%(destdir)s', dir='../32bit',
-                               overrideMacros=macros32)
+        r.addArchive('mirror://debian/pool/main/p/%(name)s/'
+                     '%(name)s_%(version)s.orig.tar.gz')
 
-        r.Make()
-        r.MakePathsInstall('RPM_BUILD_ROOT=%(destdir)s')
-        # XXX should we have a netconfig package as well as pump?
+        r.macros.patchlevel = r.patchlevel
+        r.addPatch('mirror://debian/pool/main/p/%(name)s/'
+                   '%(name)s_%(version)s-%(patchlevel)s.diff.gz')
+
+        r.addArchive('mirror://gentoo/%(name)s-%(version)s-1-patches.tar.bz2')
+
+        r.addPatches('../%(version)s')
+
+        
+        r.Make(
+            ' CC="%(cc)s"'
+            ' DEB_CFLAGS="-fPIC %(cflags)s"'
+            ' pump'
+            )
+
+        r.Install('pump', '%(essentialsbindir)s/')
+        
+        r.Install('pump.8', '%(mandir)s/man8/')
+
+        r.Doc('CREDITS')
+
+        r.Install('libpump.a', '%(libdir)s/')
+
+        r.Install('pump.h', '%(includedir)s/')
+
+        r.Make(
+            ' -C po'
+            ' install'
+            ' datadir=%(destdir)s/%(datadir)s/'
+            )


pump-0.8.24-1-patches.tar.bz2: new
pump-0.8.24-1.2.2.1.src.rpm: removed
pump-0.8.24.tar.gz: removed

Committed by: brcha

Other related posts: