rpms/perl-Net-RawIP/devel Net-RawIP-0.23-format.patch, NONE, 1.1 Net-RawIP-0.23-lib64.patch, NONE, 1.1 import.log, NONE, 1.1 perl-Net-RawIP.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Miloslav Trmac mitr at fedoraproject.org
Wed Aug 6 14:00:20 UTC 2008


Author: mitr

Update of /cvs/pkgs/rpms/perl-Net-RawIP/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8672/devel

Modified Files:
	.cvsignore sources 
Added Files:
	Net-RawIP-0.23-format.patch Net-RawIP-0.23-lib64.patch 
	import.log perl-Net-RawIP.spec 
Log Message:
Import perl-Net-RawIP-0.23-2


Net-RawIP-0.23-format.patch:

--- NEW FILE Net-RawIP-0.23-format.patch ---
diff -up Net-RawIP-0.23/RawIP.xs~ Net-RawIP-0.23/RawIP.xs
--- Net-RawIP-0.23/RawIP.xs~	2007-07-19 07:58:24.000000000 +0200
+++ Net-RawIP-0.23/RawIP.xs	2008-07-30 05:28:09.000000000 +0200
@@ -611,7 +611,7 @@ CODE:
         croak("gettimeofday()");
     }
     else {
-        RETVAL = newSVpvf("%u.%06u",tv.tv_sec,tv.tv_usec);
+        RETVAL = newSVpvf("%lld.%06u",(long long)tv.tv_sec,(unsigned)tv.tv_usec);
     }
 OUTPUT:
     RETVAL

Net-RawIP-0.23-lib64.patch:

--- NEW FILE Net-RawIP-0.23-lib64.patch ---
diff -up Net-RawIP-0.23/Makefile.PL~ Net-RawIP-0.23/Makefile.PL
--- Net-RawIP-0.23/Makefile.PL~	2008-01-08 17:07:18.000000000 +0100
+++ Net-RawIP-0.23/Makefile.PL	2008-07-30 07:08:09.000000000 +0200
@@ -117,7 +117,7 @@ END_REPORT
 
 
     print "The following libpcap.so files were found:\n\n";
-    my @so_files = glob "/usr/lib/libpcap.so*";
+    my @so_files = glob "/usr/lib*/libpcap.so*";
     die "No libpcap.so file found. Makefile.PL was not created.\n"
         if not @so_files;
     print map {"$_\n"} @so_files;


--- NEW FILE import.log ---
perl-Net-RawIP-0_23-2_fc9:HEAD:perl-Net-RawIP-0.23-2.fc9.src.rpm:1218031146


--- NEW FILE perl-Net-RawIP.spec ---
Name:           perl-Net-RawIP
Version:        0.23
Release:        2%{?dist}
Summary:        Perl extension for manipulating raw ip packets using libpcap
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Net-RawIP/
Source0:        http://www.cpan.org/modules/by-module/Net/Net-RawIP-%{version}.tar.gz
Patch0:         Net-RawIP-0.23-format.patch
Patch1:         Net-RawIP-0.23-lib64.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  perl(ExtUtils::MakeMaker), libpcap-devel,
BuildRequires:  perl(Proc::ProcessTable), perl(Test::Perl::Critic)
BuildRequires:  perl(Test::Pod), perl(Test::Pod::Coverage)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This package provides a class object which can be used for creating,
manipulating and sending raw ip packets with optional features for
manipulating ethernet headers.

%prep
%setup -q -n Net-RawIP-%{version}
%patch0 -p1 -b .format
%patch1 -p1 -b .lib64

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

chmod a-x examples/*

%check
%{?!_with_network_tests: rm t/iflist.t }
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes README README.Devel TODO examples
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Net*
%{_mandir}/man3/*

%changelog
* Tue Aug  5 2008 Miloslav Trmač <mitr at redhat.com> - 0.23-2
- Ship the examples

* Wed Jul 30 2008 Miloslav Trmač <mitr at redhat.com> - 0.23-1
- Initial package.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Net-RawIP/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Aug 2008 16:27:45 -0000	1.1
+++ .cvsignore	6 Aug 2008 13:59:50 -0000	1.2
@@ -0,0 +1 @@
+Net-RawIP-0.23.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Net-RawIP/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Aug 2008 16:27:45 -0000	1.1
+++ sources	6 Aug 2008 13:59:50 -0000	1.2
@@ -0,0 +1 @@
+f3b365136ccf88c79167ac3b1292e5b3  Net-RawIP-0.23.tar.gz




More information about the Fedora-perl-devel-list mailing list