8
0

Accepting request 44990 from devel:languages:perl

checked in (request 44990)

OBS-URL: https://build.opensuse.org/request/show/44990
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-NetAddr-IP?expand=0&rev=12
This commit is contained in:
OBS User autobuild
2010-08-09 22:27:36 +00:00
committed by Git OBS Bridge
parent be9d79996f
commit b8a8475e3d
6 changed files with 52 additions and 49 deletions

View File

@@ -0,0 +1,12 @@
Index: Lite/Util/Util.xs
===================================================================
--- Lite/Util/Util.xs.orig
+++ Lite/Util/Util.xs
@@ -305,6 +305,7 @@
_128x2(ap); /* times 8 */
(void) adder128(ap,tp,ap128,0);
/* printf("x %04X:%04X:%04X:%04X\n",*((u_int32_t *)ap),*((u_int32_t *)ap +1),*((u_int32_t *)ap +2),*((u_int32_t *)ap +3)); */
+ return 0;
}
/* multiply 128 bit number by 10, add bcd digit to result

View File

@@ -0,0 +1,15 @@
Index: Lite/Util/Util.xs
===================================================================
--- Lite/Util/Util.xs.orig
+++ Lite/Util/Util.xs
@@ -237,8 +237,9 @@
#ifdef host_is_LITTLE_ENDIAN
register u_int32_t * a = ap;
for (/* -- */;len >0;len--) {
- *a++ = (((*a & 0xff000000) >> 24) | ((*a & 0x00ff0000) >> 8) | \
+ *a = (((*a & 0xff000000) >> 24) | ((*a & 0x00ff0000) >> 8) | \
((*a & 0x0000ff00) << 8) | ((*a & 0x000000ff) << 24));
+ a++;
}
#endif
}

3
NetAddr-IP-4.027.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:68d15aa22f4f2e45efc28dc2c48c94b84f171494555a7d43055ab915cc9863b1
size 115135

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e71f61a49051459a33c989a8a77ddb8bed683c9fa01ecda93b18868c7bcb49b3
size 115022

View File

@@ -1,28 +1,3 @@
-------------------------------------------------------------------
Mon Aug 9 09:23:46 UTC 2010 - chris@computersalat.de
- update to 4.030
* Resolve named hosts in Lite.pm using gethostbyname, followed by
gethostbyname6 to determine whether to set ipV6 flag
Thanks to Dusty Mabe <Dusty.Mabe@tekelec.com> for spotting this bug
4.029 Thu Jul 8 18:17:38 PDT 2010
* In NetAddr::IP::Lite,
added support for the sub "new" to resolve host6 names
if the OPTIONAL perl Socket6 module is available
Thanks to "Mabe, Dusty" <Dusty.Mabe@tekelec.com> for spotting
this and suggesting a fix.
4.028 Wed May 12 14:18:20 PDT 2010
* In /Lite/Util/Util.xs v1.32,
changed netswap() to postincrement
*a++ = to *a and added increment after save to mollify some
picky compilers that return possible undefined behavior.
* changed type of _128x10 to 'void'
Thanks to David Bolt <dbolt@davjam.org> for the above two patches
- recreated by cpanspec 1.78
- removed obsolete sequence-point patch
- removed obsolete no-return-in-nonvoid-function patch
o see changes of 4.028
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 20 23:21:17 UTC 2010 - chris@computersalat.de Tue Apr 20 23:21:17 UTC 2010 - chris@computersalat.de

View File

@@ -1,5 +1,5 @@
# #
# spec file for package perl-NetAddr-IP (Version 4.030) # spec file for package perl-NetAddr-IP (Version 4.027)
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@@ -17,45 +17,46 @@
# norootforbuild # norootforbuild
%bcond_with pod
Name: perl-NetAddr-IP Name: perl-NetAddr-IP
%define cpan_name NetAddr-IP %define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Manages IPv4 and IPv6 addresses and subnets Summary: Manages IPv4 and IPv6 addresses and subnets
Version: 4.030 Version: 4.027
Release: 1 Release: 1
License: CHECK(GPL+ or Artistic) License: Artistic License ..
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/NetAddr-IP/ Url: http://search.cpan.org/dist/NetAddr-IP
#Source: http://www.cpan.org/modules/by-module/NetAddr/NetAddr-IP-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2 Source: %{cpan_name}-%{version}.tar.bz2
Patch1: %{cpan_name}-4.026-no-return-in-nonvoid-function.patch
Patch2: %{cpan_name}-4.026-sequence-point.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
%if 0%{?suse_version} < 1120 %if 0%{?suse_version} < 1120
BuildRequires: perl-macros BuildRequires: perl-macros
%endif %endif
%if %{with pod}
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Pod::Coverage)
%endif
Requires: perl = %{perl_version} Requires: perl = %{perl_version}
%description %description
This module provides an object-oriented abstraction on top of IP addresses This distribution is designed as a help for managing (ranges of) IP
or IP subnets, that allows for easy manipulations. Version 4.xx of addresses. It includes efficient implementations for most common tasks
NetAdder::IP will will work older versions of Perl and does not use done to subnets or ranges of IP addresses, namely verifying if an
Math::BigInt as in previous versions. address is within a subnet, comparing, looping, splitting subnets into
longer prefixes, compacting addresses to the shortest prefixes, etc.
Authors: Authors:
-------- --------
Luis E. Munoz <luismunoz@cpan.org> Luis E. Munoz <luismunoz@cpan.org>
%prep %prep
%setup -q -n %{cpan_name}-%{version} %setup -n %{cpan_name}-%{version}
%patch1
%patch2
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags} %{__make} %{?jobs:-j%jobs}
%check %check
%{__make} test %{__make} test
@@ -66,10 +67,10 @@ Authors:
%perl_gen_filelist %perl_gen_filelist
%clean %clean
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(-,root,root)
%doc Changes README TODO docs/rfc1884.txt %doc Changes MANIFEST README TODO docs/rfc1884.txt
%changelog %changelog