forked from pool/perl-NetAddr-IP
Updating link to change in openSUSE:Factory/perl-NetAddr-IP revision 11.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-NetAddr-IP?expand=0&rev=3ca85f194d684eb91b28cccfe830f1e5
This commit is contained in:
committed by
Git OBS Bridge
parent
b8a8475e3d
commit
0c79e2aad1
@@ -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
|
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.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@@ -17,46 +17,45 @@
|
|||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
|
%bcond_with pod
|
||||||
|
|
||||||
Name: perl-NetAddr-IP
|
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
|
Summary: Manages IPv4 and IPv6 addresses and subnets
|
||||||
Version: 4.027
|
Version: 4.030
|
||||||
Release: 1
|
Release: 1
|
||||||
License: Artistic License ..
|
License: CHECK(GPL+ or Artistic)
|
||||||
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 distribution is designed as a help for managing (ranges of) IP
|
This module provides an object-oriented abstraction on top of IP addresses
|
||||||
addresses. It includes efficient implementations for most common tasks
|
or IP subnets, that allows for easy manipulations. Version 4.xx of
|
||||||
done to subnets or ranges of IP addresses, namely verifying if an
|
NetAdder::IP will will work older versions of Perl and does not use
|
||||||
address is within a subnet, comparing, looping, splitting subnets into
|
Math::BigInt as in previous versions.
|
||||||
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 -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch1
|
|
||||||
%patch2
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||||
%{__make} %{?jobs:-j%jobs}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
%{__make} test
|
||||||
@@ -67,10 +66,10 @@ Authors:
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes MANIFEST README TODO docs/rfc1884.txt
|
%doc Changes README TODO docs/rfc1884.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user