File perl-NetAddr-IP.spec of Package perl-NetAddr-IP

#
# spec file for package perl-NetAddr-IP (Version 4.026)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-NetAddr-IP
Summary:        NetAddr::IP - Manages IP addresses and subnets
Version:        4.026
Release:        1
Url:            http://search.cpan.org/perldoc?NetAddr::IP
License:        Artistic License ..
Group:          Development/Libraries/Perl
Requires:       perl = %{perl_version}
Provides:       NetAddr
AutoReqProv:    on
Source:         NetAddr-IP-%{version}.tar.bz2
Patch1:         NetAddr-IP-%{version}-no-return-in-nonvoid-function.patch
Patch2:         NetAddr-IP-%{version}-sequence-point.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This  module 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.



Authors:
--------
    Luis E. Munoz <luismunoz@cpan.org>

%prep
%setup -n NetAddr-IP-%{version}
%patch1
%patch2

%build
CFLAGS="%optflags" perl Makefile.PL 
make %{?jobs:-j%jobs}

%check
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Changes MANIFEST README TODO docs/rfc1884.txt
%dir %{perl_vendorarch}/NetAddr
%dir %{perl_vendorarch}/auto/NetAddr
%dir %{perl_vendorarch}/auto/NetAddr/IP
%{perl_vendorarch}/NetAddr/IP.pm
%{perl_vendorarch}/NetAddr/IP
%{perl_vendorarch}/auto/NetAddr/IP/.packlist
%{perl_vendorarch}/auto/NetAddr/IP
%doc %{_mandir}/man?/NetAddr::IP.3pm.gz
%doc %{_mandir}/man?/NetAddr::IP::Lite.3pm.gz
%doc %{_mandir}/man?/NetAddr::IP::Util.3pm.gz
%doc %{_mandir}/man?/NetAddr::IP::UtilPP.3pm.gz
/var/adm/perl-modules/%{name}

%changelog
openSUSE Build Service is sponsored by