2007-01-15 23:31:17 +00:00
|
|
|
#
|
2011-11-17 15:42:00 +00:00
|
|
|
# spec file for package perl-Net-IP
|
2007-01-15 23:31:17 +00:00
|
|
|
#
|
2019-11-13 13:09:03 +00:00
|
|
|
# Copyright (c) 2019 SUSE LLC.
|
2007-01-15 23:31:17 +00:00
|
|
|
#
|
2008-08-21 23:56:41 +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.
|
|
|
|
|
2019-11-13 09:54:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:31:17 +00:00
|
|
|
#
|
|
|
|
|
2008-08-21 23:56:41 +00:00
|
|
|
|
2007-12-14 16:08:13 +00:00
|
|
|
Name: perl-Net-IP
|
2013-06-09 14:13:26 +00:00
|
|
|
Version: 1.26
|
|
|
|
Release: 0
|
2019-11-13 13:09:03 +00:00
|
|
|
%define cpan_name Net-IP
|
|
|
|
Summary: Perl extension for manipulating IPv4/IPv6 addresses
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2015-07-06 07:28:58 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2019-11-13 13:09:03 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MANU/%{cpan_name}-%{version}.tar.gz
|
2015-09-19 05:51:53 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:16:00 +02:00
|
|
|
Source100: README.md
|
2015-07-06 07:28:58 +00:00
|
|
|
Patch0: %{name}-1.25-zero_address.diff
|
2015-09-19 05:51:53 +00:00
|
|
|
Patch1: ipcount-invalid_chars_in_IP.patch
|
2010-10-19 11:09:36 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:44:28 +00:00
|
|
|
BuildRequires: perl-macros
|
2015-07-06 07:28:58 +00:00
|
|
|
Provides: perl_Net-IP = %{version}
|
|
|
|
Obsoletes: perl_Net-IP < %{version}
|
2019-11-13 09:54:32 +00:00
|
|
|
BuildArch: noarch
|
2015-07-06 07:28:58 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:31:17 +00:00
|
|
|
|
|
|
|
%description
|
2019-11-13 13:09:03 +00:00
|
|
|
This module provides functions to deal with *IPv4/IPv6* addresses. The
|
|
|
|
module can be used as a class, allowing the user to instantiate IP objects,
|
|
|
|
which can be single IP addresses, prefixes, or ranges of addresses. There
|
|
|
|
is also a procedural way of accessing most of the functions. Most
|
|
|
|
subroutines can take either *IPv4* or *IPv6* addresses transparently.
|
2007-01-15 23:31:17 +00:00
|
|
|
|
|
|
|
%prep
|
2024-03-06 07:50:09 +00:00
|
|
|
%autosetup -p1 -n %{cpan_name}-%{version}
|
2007-01-15 23:31:17 +00:00
|
|
|
|
|
|
|
%build
|
2019-11-13 13:09:03 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2010-01-12 11:00:45 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-12-14 16:08:13 +00:00
|
|
|
|
|
|
|
%check
|
2015-07-06 07:28:58 +00:00
|
|
|
make %{?_smp_mflags} test
|
2007-01-15 23:31:17 +00:00
|
|
|
|
|
|
|
%install
|
2019-11-13 09:54:32 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:31:17 +00:00
|
|
|
%perl_process_packlist
|
2019-11-13 09:54:32 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:17 +00:00
|
|
|
|
2019-11-13 09:54:32 +00:00
|
|
|
%files -f %{name}.files
|
2019-11-13 13:09:03 +00:00
|
|
|
%defattr(-,root,root,755)
|
2007-01-15 23:31:17 +00:00
|
|
|
%doc Changes MANIFEST README
|
2019-11-13 13:09:03 +00:00
|
|
|
%license COPYING
|
2007-01-15 23:31:17 +00:00
|
|
|
|
2007-12-14 16:08:13 +00:00
|
|
|
%changelog
|