# # spec file for package perl-Net-IP-Lite # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name Net-IP-Lite Name: perl-Net-IP-Lite Version: 0.30.0 Release: 0 # 0.03 -> normalize -> 0.30.0 %define cpan_version 0.03 #Upstream: 2013 Alexey A. Komarov License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl extension for manipulating IPv4/IPv6 addresses URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/A/AL/ALEXKOM/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::Exception) Requires: perl(Test::Exception) Provides: perl(Net::IP::Lite) = %{version} Provides: perl(Net::IP::Lite::Net) %undefine __perllib_provides %{perl_requires} %description This is another module to manipulate *IPv4/IPv6* addresses. In contrast of NET::IP, it does not require Math::BigInt. Also, it supports some additional IPv4 formats like 0x7f000001, 2130706433, 017700000001, 0177.0.0.1, 0x7f.0.0.0x1. The module provides the following capabilities: * * validating IP addresses; * * converting IP addresses in different format; * * comparing IP addresses; * * verifying whether an IP is an IPv4 or an IPv6 or an IPv4-embedded IPv6 address; * * verifying whether an IP is in a range. Most subroutines have two implementations, so you can use procedural or object-oriented approach. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %changelog