OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   30-Dec-2009 10:10:05
  Branch: HEAD                             Handle: 2009123009100500

  Modified files:
    openpkg-src/perl-net    perl-net.patch perl-net.spec

  Log:
    add Net::RabbitMQ for AMQP communication

  Summary:
    Revision    Changes     Path
    1.37        +19 -6      openpkg-src/perl-net/perl-net.patch
    1.201       +11 -1      openpkg-src/perl-net/perl-net.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/perl-net/perl-net.patch
  ============================================================================
  $ cvs diff -u -r1.36 -r1.37 perl-net.patch
  --- openpkg-src/perl-net/perl-net.patch       11 Oct 2009 10:35:56 -0000      
1.36
  +++ openpkg-src/perl-net/perl-net.patch       30 Dec 2009 09:10:05 -0000      
1.37
  @@ -1,6 +1,6 @@
   Index: Net-Packet-3.26/Makefile.PL
   --- Net-Packet-3.26/Makefile.PL.orig 2008-04-19 18:41:49 +0200
  -+++ Net-Packet-3.26/Makefile.PL      2009-10-11 10:33:36 +0200
  ++++ Net-Packet-3.26/Makefile.PL      2009-12-30 10:05:13 +0100
   @@ -14,7 +14,6 @@
          Net::Libdnet  => 0,
          Time::HiRes   => 0,
  @@ -11,7 +11,7 @@
       ABSTRACT_FROM => 'lib/Net/Packet.pm',
   Index: Net-Patricia-1.15/libpatricia/patricia.c
   --- Net-Patricia-1.15/libpatricia/patricia.c.orig    2009-04-19 06:28:15 
+0200
  -+++ Net-Patricia-1.15/libpatricia/patricia.c 2009-10-11 10:33:36 +0200
  ++++ Net-Patricia-1.15/libpatricia/patricia.c 2009-12-30 10:05:13 +0100
   @@ -38,24 +38,24 @@
    /* prefix_tochar
     * convert prefix information to bytes
  @@ -121,7 +121,7 @@
        assert (patricia);
   Index: Net-Patricia-1.15/libpatricia/patricia.h
   --- Net-Patricia-1.15/libpatricia/patricia.h.orig    2009-04-19 06:28:15 
+0200
  -+++ Net-Patricia-1.15/libpatricia/patricia.h 2009-10-11 10:33:36 +0200
  ++++ Net-Patricia-1.15/libpatricia/patricia.h 2009-12-30 10:05:13 +0100
   @@ -15,10 +15,10 @@
    #ifndef _PATRICIA_H
    #define _PATRICIA_H
  @@ -175,7 +175,7 @@
    
   Index: Net-Pcap-0.16/Makefile.PL
   --- Net-Pcap-0.16/Makefile.PL.orig   2007-12-24 00:06:15 +0100
  -+++ Net-Pcap-0.16/Makefile.PL        2009-10-11 10:33:36 +0200
  ++++ Net-Pcap-0.16/Makefile.PL        2009-12-30 10:05:13 +0100
   @@ -23,7 +23,8 @@
    }
    else {
  @@ -188,7 +188,7 @@
    for my $arg (@ARGV) {
   Index: Net-Pcap-0.16/Pcap.xs
   --- Net-Pcap-0.16/Pcap.xs.orig       2008-01-01 05:22:22 +0100
  -+++ Net-Pcap-0.16/Pcap.xs    2009-10-11 10:33:36 +0200
  ++++ Net-Pcap-0.16/Pcap.xs    2009-12-30 10:05:13 +0100
   @@ -33,7 +33,7 @@
    #define NEED_sv_2pv_nolen 1
    #include "ppport.h"
  @@ -198,9 +198,22 @@
    
    #ifdef _CYGWIN
    #include <Win32-Extensions.h>
  +Index: Net-RabbitMQ-0.0.4/librabbitmq/amqp.h
  +--- Net-RabbitMQ-0.0.4/librabbitmq/amqp.h.orig       2009-12-19 08:59:44 
+0100
  ++++ Net-RabbitMQ-0.0.4/librabbitmq/amqp.h    2009-12-30 10:05:33 +0100
  +@@ -5,6 +5,9 @@
  + extern "C" {
  + #endif
  + 
  ++#include <sys/types.h>
  ++#include <unistd.h>
  ++
  + typedef int amqp_boolean_t;
  + typedef uint32_t amqp_method_number_t;
  + typedef uint32_t amqp_flags_t;
   Index: Net-Stomp-0.34/lib/Net/Stomp.pm
   --- Net-Stomp-0.34/lib/Net/Stomp.pm.orig     2008-06-27 10:31:46 +0200
  -+++ Net-Stomp-0.34/lib/Net/Stomp.pm  2009-10-11 12:33:07 +0200
  ++++ Net-Stomp-0.34/lib/Net/Stomp.pm  2009-12-30 10:05:13 +0100
   @@ -5,17 +5,27 @@
    use IO::Select;
    use Net::Stomp::Frame;
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/perl-net/perl-net.spec
  ============================================================================
  $ cvs diff -u -r1.200 -r1.201 perl-net.spec
  --- openpkg-src/perl-net/perl-net.spec        2 Dec 2009 16:03:46 -0000       
1.200
  +++ openpkg-src/perl-net/perl-net.spec        30 Dec 2009 09:10:05 -0000      
1.201
  @@ -55,6 +55,7 @@
   %define       V_net_proxy             0.12
   %define       V_net_stomp             0.34
   %define       V_net_stomp_receipt     0.36
  +%define       V_net_rabbitmq          0.0.4
   
   #   package information
   Name:         perl-net
  @@ -67,7 +68,7 @@
   Group:        Perl
   License:      GPL/Artistic
   Version:      %{V_perl}
  -Release:      20091202
  +Release:      20091230
   
   #   package options
   %option       with_pcap   no
  @@ -105,6 +106,7 @@
   Source29:     
http://www.cpan.org/modules/by-module/Net/Net-Proxy-%{V_net_proxy}.tar.gz
   Source30:     
http://www.cpan.org/modules/by-module/Net/Net-Stomp-%{V_net_stomp}.tar.gz
   Source31:     
http://www.cpan.org/modules/by-module/Net/Net-Stomp-Receipt-%{V_net_stomp_receipt}.tar.gz
  +Source32:     
http://www.cpan.org/authors/id/J/JE/JESUS/Net-RabbitMQ-%{V_net_rabbitmq}.tar.gz
   Patch0:       perl-net.patch
   
   #   build information
  @@ -167,6 +169,7 @@
       - Net::Proxy (%{V_net_proxy})
       - Net::Stomp (%{V_net_stomp})
       - Net::Stomp::Receipt (%{V_net_stomp_receipt})
  +    - Net::RabbitMQ (%{V_net_rabbitmq})
   
   %track
       prog perl-net:Net-Netmask = {
  @@ -331,6 +334,11 @@
           url       = http://www.cpan.org/modules/by-module/Net/
           regex     = Net-Stomp-Receipt-(__VER__)\.tar\.gz
       }
  +    prog perl-net:Net-RabbitMQ = {
  +        version   = %{V_net_rabbitmq}
  +        url       = http://www.cpan.org/modules/by-module/Net/
  +        regex     = Net-RabbitMQ-(__VER__)\.tar\.gz
  +    }
   
   %prep
       %setup -q -c
  @@ -367,6 +375,7 @@
       %setup -q -T -D -a 29
       %setup -q -T -D -a 30
       %setup -q -T -D -a 31
  +    %setup -q -T -D -a 32
       sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
   
   %build
  @@ -411,6 +420,7 @@
       %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
       %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
       %{l_prefix}/bin/perl-openpkg -d %{SOURCE31} configure build install
  +    %{l_prefix}/bin/perl-openpkg -d %{SOURCE32} configure build install
       %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat 
perl-openpkg-files`
   
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to