Browse Source

add Net::RabbitMQ for AMQP communication

master
parent
commit
2a71b46a1c
  1. 25
      perl-net/perl-net.patch
  2. 12
      perl-net/perl-net.spec

25
perl-net/perl-net.patch

@ -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 @@ Index: Net-Packet-3.26/Makefile.PL
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 @@ Index: Net-Patricia-1.15/libpatricia/patricia.c
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-Patricia-1.15/libpatricia/patricia.h
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 @@ Index: Net-Pcap-0.16/Makefile.PL
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 @@ Index: Net-Pcap-0.16/Pcap.xs
#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;

12
perl-net/perl-net.spec

@ -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 @@ Class: BASE
Group: Perl
License: GPL/Artistic
Version: %{V_perl}
Release: 20091202
Release: 20091230
# package options
%option with_pcap no
@ -105,6 +106,7 @@ Source28: http://www.cpan.org/modules/by-module/Net/Net-DHCP-%{V_net_dhcp}.t
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 @@ AutoReqProv: no
- 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 @@ AutoReqProv: no
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 @@ AutoReqProv: no
%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 @@ AutoReqProv: no
%{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`

Loading…
Cancel
Save