2016-11-20 14:43:53 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Net-IP-Lite
|
|
|
|
#
|
2024-07-25 20:52:22 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2016-11-20 14:43:53 +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.
|
|
|
|
|
2024-07-25 20:52:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-20 14:43:53 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-07-25 20:52:22 +00:00
|
|
|
%define cpan_name Net-IP-Lite
|
2016-11-20 14:43:53 +00:00
|
|
|
Name: perl-Net-IP-Lite
|
2024-07-25 20:52:22 +00:00
|
|
|
Version: 0.30.0
|
2016-11-20 14:43:53 +00:00
|
|
|
Release: 0
|
2024-07-25 20:52:22 +00:00
|
|
|
# 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
|
2016-11-20 14:43:53 +00:00
|
|
|
Summary: Perl extension for manipulating IPv4/IPv6 addresses
|
2024-07-25 20:52:22 +00:00
|
|
|
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
|
2025-08-12 18:16:00 +02:00
|
|
|
Source100: README.md
|
2024-07-25 20:52:22 +00:00
|
|
|
BuildArch: noarch
|
2016-11-20 14:43:53 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::Exception)
|
2024-07-25 20:52:22 +00:00
|
|
|
Requires: perl(Test::Exception)
|
|
|
|
Provides: perl(Net::IP::Lite) = %{version}
|
|
|
|
Provides: perl(Net::IP::Lite::Net)
|
|
|
|
%undefine __perllib_provides
|
2016-11-20 14:43:53 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2024-07-25 20:52:22 +00:00
|
|
|
This is another module to manipulate *IPv4/IPv6* addresses. In contrast of
|
|
|
|
NET::IP, it does not require Math::BigInt. Also, it supports some
|
2016-11-20 14:43:53 +00:00
|
|
|
additional IPv4 formats like 0x7f000001, 2130706433, 017700000001,
|
|
|
|
0177.0.0.1, 0x7f.0.0.0x1.
|
|
|
|
|
|
|
|
The module provides the following capabilities:
|
|
|
|
|
2024-07-25 20:52:22 +00:00
|
|
|
* * 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.
|
2016-11-20 14:43:53 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-25 20:52:22 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2016-11-20 14:43:53 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2024-07-25 20:52:22 +00:00
|
|
|
%make_build
|
2016-11-20 14:43:53 +00:00
|
|
|
|
|
|
|
%check
|
2024-07-25 20:52:22 +00:00
|
|
|
make test
|
2016-11-20 14:43:53 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2024-07-25 20:52:22 +00:00
|
|
|
%doc Changes README
|
2016-11-20 14:43:53 +00:00
|
|
|
|
|
|
|
%changelog
|