2007-01-15 23:31:19 +00:00
|
|
|
#
|
2011-11-11 11:20:53 +00:00
|
|
|
# spec file for package perl-Net-Netmask
|
2007-01-15 23:31:19 +00:00
|
|
|
#
|
2025-06-02 15:54:10 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2007-01-15 23:31:19 +00:00
|
|
|
#
|
2009-06-17 22:15:25 +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.
|
|
|
|
|
2021-03-30 10:02:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:31:19 +00:00
|
|
|
#
|
|
|
|
|
2009-06-17 22:15:25 +00:00
|
|
|
|
2021-03-30 10:02:31 +00:00
|
|
|
%define cpan_name Net-Netmask
|
2007-01-15 23:31:19 +00:00
|
|
|
Name: perl-Net-Netmask
|
2025-06-02 15:54:10 +00:00
|
|
|
Version: 2.0003
|
2013-10-04 11:50:52 +00:00
|
|
|
Release: 0
|
2018-06-09 06:41:17 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-09-01 16:46:55 +00:00
|
|
|
Summary: Understand and manipulate IP netmasks
|
2021-03-30 10:02:31 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2018-06-09 06:41:17 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JM/JMASLAK/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 09:36:56 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:02 +02:00
|
|
|
Source100: README.md
|
2013-10-04 11:50:52 +00:00
|
|
|
BuildArch: noarch
|
2010-10-19 11:10:13 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:44:35 +00:00
|
|
|
BuildRequires: perl-macros
|
2018-08-24 10:07:54 +00:00
|
|
|
BuildRequires: perl(Math::BigInt) >= 1.999811
|
|
|
|
BuildRequires: perl(Test2::V0) >= 0.000111
|
2025-06-02 15:54:10 +00:00
|
|
|
BuildRequires: perl(Test::UseAllModules) >= 0.170
|
2018-08-24 10:07:54 +00:00
|
|
|
Requires: perl(Math::BigInt) >= 1.999811
|
2025-06-02 15:54:10 +00:00
|
|
|
Recommends: perl(AnyEvent) >= 7.140
|
2013-10-04 11:50:52 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:19 +00:00
|
|
|
|
|
|
|
%description
|
2018-08-24 10:07:54 +00:00
|
|
|
Net::Netmask parses and understands IPv4 and IPv6 CIDR blocks (see
|
2018-06-28 12:40:10 +00:00
|
|
|
https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing for more
|
|
|
|
information on CIDR blocks). It's built with an object-oriented interface,
|
|
|
|
with functions being methods that operate on a Net::Netmask object.
|
2007-01-15 23:31:19 +00:00
|
|
|
|
2018-06-28 12:40:10 +00:00
|
|
|
These methods provide nearly all types of information about a network block
|
|
|
|
that you might want.
|
2007-01-15 23:31:19 +00:00
|
|
|
|
2018-06-28 12:40:10 +00:00
|
|
|
There are also functions to insert a network block into a table and then
|
|
|
|
later lookup network blocks by IP address using that table. There are
|
|
|
|
functions to turn a IP address range into a list of CIDR blocks. There are
|
|
|
|
functions to turn a list of CIDR blocks into a list of IP addresses.
|
2007-01-15 23:31:19 +00:00
|
|
|
|
2013-10-04 11:50:52 +00:00
|
|
|
There is a function for sorting by text IP address.
|
2007-01-15 23:31:19 +00:00
|
|
|
|
2018-08-24 10:07:54 +00:00
|
|
|
All functions understand both IPv4 and IPv6. Matches, finds, etc, will
|
|
|
|
always return false when an IPv4 address is matched against an IPv6
|
|
|
|
address.
|
|
|
|
|
|
|
|
IPv6 support was added in 1.9104.
|
|
|
|
|
2007-01-15 23:31:19 +00:00
|
|
|
%prep
|
2025-06-02 15:54:10 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2007-01-15 23:31:19 +00:00
|
|
|
|
|
|
|
%build
|
2021-03-30 10:02:31 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-03-24 13:37:28 +00:00
|
|
|
|
|
|
|
%check
|
2021-03-30 10:02:31 +00:00
|
|
|
make test
|
2007-01-15 23:31:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-10-04 11:50:52 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:19 +00:00
|
|
|
|
2013-10-04 11:50:52 +00:00
|
|
|
%files -f %{name}.files
|
2025-06-02 15:54:10 +00:00
|
|
|
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING README TODO
|
2018-06-09 06:41:17 +00:00
|
|
|
%license LICENSE
|
2007-01-15 23:31:19 +00:00
|
|
|
|
2009-06-17 22:15:25 +00:00
|
|
|
%changelog
|