2007-01-15 23:31:24 +00:00
|
|
|
#
|
2009-07-28 23:19:53 +00:00
|
|
|
# spec file for package perl-NetAddr-IP (Version 4.026)
|
2007-01-15 23:31:24 +00:00
|
|
|
#
|
2009-06-18 15:09:00 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:24 +00:00
|
|
|
#
|
2009-06-18 15:09:00 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 23:31:24 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 15:09:00 +00:00
|
|
|
|
2007-01-15 23:31:24 +00:00
|
|
|
Name: perl-NetAddr-IP
|
2009-07-28 23:19:53 +00:00
|
|
|
Summary: NetAddr::IP - Manages IP addresses and subnets
|
|
|
|
Version: 4.026
|
|
|
|
Release: 1
|
|
|
|
Url: http://search.cpan.org/perldoc?NetAddr::IP
|
|
|
|
License: Artistic License ..
|
2007-01-15 23:31:24 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2009-07-28 23:19:53 +00:00
|
|
|
Requires: perl = %{perl_version}
|
2007-01-15 23:31:24 +00:00
|
|
|
Provides: NetAddr
|
2009-06-18 15:09:00 +00:00
|
|
|
AutoReqProv: on
|
2009-07-28 23:19:53 +00:00
|
|
|
Source: NetAddr-IP-%{version}.tar.bz2
|
|
|
|
Patch1: NetAddr-IP-%{version}-no-return-in-nonvoid-function.patch
|
|
|
|
Patch2: NetAddr-IP-%{version}-sequence-point.patch
|
2007-01-15 23:31:24 +00:00
|
|
|
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}
|
2009-07-28 23:19:53 +00:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-01-15 23:31:24 +00:00
|
|
|
|
|
|
|
%build
|
2009-07-28 23:19:53 +00:00
|
|
|
CFLAGS="%optflags" perl Makefile.PL
|
|
|
|
make %{?jobs:-j%jobs}
|
2007-01-15 23:31:24 +00:00
|
|
|
|
2009-07-28 23:19:53 +00:00
|
|
|
%check
|
|
|
|
make test
|
2007-01-15 23:31:24 +00:00
|
|
|
|
|
|
|
%install
|
2009-07-28 23:19:53 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:31:24 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
2009-07-28 23:19:53 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2007-01-15 23:31:24 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-07-28 23:19:53 +00:00
|
|
|
%doc Changes MANIFEST README TODO docs/rfc1884.txt
|
2007-01-30 14:26:17 +00:00
|
|
|
%dir %{perl_vendorarch}/NetAddr
|
2007-01-15 23:31:24 +00:00
|
|
|
%dir %{perl_vendorarch}/auto/NetAddr
|
|
|
|
%dir %{perl_vendorarch}/auto/NetAddr/IP
|
2007-01-30 14:26:17 +00:00
|
|
|
%{perl_vendorarch}/NetAddr/IP.pm
|
|
|
|
%{perl_vendorarch}/NetAddr/IP
|
2007-01-15 23:31:24 +00:00
|
|
|
%{perl_vendorarch}/auto/NetAddr/IP/.packlist
|
2007-01-30 14:26:17 +00:00
|
|
|
%{perl_vendorarch}/auto/NetAddr/IP
|
2007-01-15 23:31:24 +00:00
|
|
|
%doc %{_mandir}/man?/NetAddr::IP.3pm.gz
|
2007-01-30 14:26:17 +00:00
|
|
|
%doc %{_mandir}/man?/NetAddr::IP::Lite.3pm.gz
|
|
|
|
%doc %{_mandir}/man?/NetAddr::IP::Util.3pm.gz
|
|
|
|
%doc %{_mandir}/man?/NetAddr::IP::UtilPP.3pm.gz
|
2007-01-15 23:31:24 +00:00
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|
2009-06-18 15:09:00 +00:00
|
|
|
%changelog
|