forked from pool/perl-NetAddr-IP
Accepting request 44988 from home:computersalat:devel:perl
Copy from home:computersalat:devel:perl/perl-NetAddr-IP via accept of submit request 44988 revision 2. Request was accepted with message: self accept OBS-URL: https://build.opensuse.org/request/show/44988 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-NetAddr-IP?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
ed6e65b233
commit
be9d79996f
@@ -1,12 +0,0 @@
|
||||
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
|
@@ -1,15 +0,0 @@
|
||||
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
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:68d15aa22f4f2e45efc28dc2c48c94b84f171494555a7d43055ab915cc9863b1
|
||||
size 115135
|
3
NetAddr-IP-4.030.tar.bz2
Normal file
3
NetAddr-IP-4.030.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e71f61a49051459a33c989a8a77ddb8bed683c9fa01ecda93b18868c7bcb49b3
|
||||
size 115022
|
@@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package perl-NetAddr-IP (Version 4.027)
|
||||
# spec file for package perl-NetAddr-IP (Version 4.030)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@@ -17,46 +17,45 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%bcond_with pod
|
||||
|
||||
Name: perl-NetAddr-IP
|
||||
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
||||
%define cpan_name NetAddr-IP
|
||||
Summary: Manages IPv4 and IPv6 addresses and subnets
|
||||
Version: 4.027
|
||||
Version: 4.030
|
||||
Release: 1
|
||||
License: Artistic License ..
|
||||
License: CHECK(GPL+ or Artistic)
|
||||
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
|
||||
Patch1: %{cpan_name}-4.026-no-return-in-nonvoid-function.patch
|
||||
Patch2: %{cpan_name}-4.026-sequence-point.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
%if %{with pod}
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Pod::Coverage)
|
||||
%endif
|
||||
Requires: perl = %{perl_version}
|
||||
|
||||
%description
|
||||
This distribution is designed as a help for managing (ranges of) IP
|
||||
addresses. It includes efficient implementations for most common tasks
|
||||
done to subnets or ranges of IP addresses, namely verifying if an
|
||||
address is within a subnet, comparing, looping, splitting subnets into
|
||||
longer prefixes, compacting addresses to the shortest prefixes, etc.
|
||||
|
||||
|
||||
This module provides an object-oriented abstraction on top of IP addresses
|
||||
or IP subnets, that allows for easy manipulations. Version 4.xx of
|
||||
NetAdder::IP will will work older versions of Perl and does not use
|
||||
Math::BigInt as in previous versions.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Luis E. Munoz <luismunoz@cpan.org>
|
||||
|
||||
%prep
|
||||
%setup -n %{cpan_name}-%{version}
|
||||
%patch1
|
||||
%patch2
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
@@ -67,10 +66,10 @@ Authors:
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes MANIFEST README TODO docs/rfc1884.txt
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README TODO docs/rfc1884.txt
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user