2007-01-15 23:31:24 +00:00
|
|
|
#
|
2010-04-20 23:56:44 +00:00
|
|
|
# spec file for package perl-NetAddr-IP (Version 4.027)
|
2007-01-15 23:31:24 +00:00
|
|
|
#
|
2010-04-20 23:56:44 +00:00
|
|
|
# Copyright (c) 2010 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
|
2010-04-20 23:56:44 +00:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
|
|
Summary: Manages IPv4 and IPv6 addresses and subnets
|
|
|
|
Version: 4.027
|
2009-07-28 23:19:53 +00:00
|
|
|
Release: 1
|
|
|
|
License: Artistic License ..
|
2007-01-15 23:31:24 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-04-20 23:56:44 +00:00
|
|
|
Url: http://search.cpan.org/dist/NetAddr-IP
|
|
|
|
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
|
2007-01-15 23:31:24 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-04-20 23:56:44 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%endif
|
|
|
|
Requires: perl = %{perl_version}
|
2007-01-15 23:31:24 +00:00
|
|
|
|
|
|
|
%description
|
2010-04-20 23:56:44 +00:00
|
|
|
This distribution is designed as a help for managing (ranges of) IP
|
2007-01-15 23:31:24 +00:00
|
|
|
addresses. It includes efficient implementations for most common tasks
|
2010-04-20 23:56:44 +00:00
|
|
|
done to subnets or ranges of IP addresses, namely verifying if an
|
2007-01-15 23:31:24 +00:00
|
|
|
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
|
2010-04-20 23:56:44 +00:00
|
|
|
%setup -n %{cpan_name}-%{version}
|
2009-07-28 23:19:53 +00:00
|
|
|
%patch1
|
|
|
|
%patch2
|
2007-01-15 23:31:24 +00:00
|
|
|
|
|
|
|
%build
|
2010-04-20 23:56:44 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-15 23:31:24 +00:00
|
|
|
|
2009-07-28 23:19:53 +00:00
|
|
|
%check
|
2010-04-20 23:56:44 +00:00
|
|
|
%{__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
|
2010-04-20 23:56:44 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:24 +00:00
|
|
|
|
2009-07-28 23:19:53 +00:00
|
|
|
%clean
|
2010-04-20 23:56:44 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2009-07-28 23:19:53 +00:00
|
|
|
|
2010-04-20 23:56:44 +00:00
|
|
|
%files -f %{name}.files
|
2007-01-15 23:31:24 +00:00
|
|
|
%defattr(-,root,root)
|
2009-07-28 23:19:53 +00:00
|
|
|
%doc Changes MANIFEST README TODO docs/rfc1884.txt
|
2007-01-15 23:31:24 +00:00
|
|
|
|
2009-06-18 15:09:00 +00:00
|
|
|
%changelog
|