forked from pool/perl-Data-Validate-IP
Accepting request 357524 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/357524 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Validate-IP?expand=0&rev=5
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2977fb1183da439c4c216bec94b28e683c9769b13140381fe85ea327f509e318
|
||||
size 30535
|
||||
3
Data-Validate-IP-0.25.tar.gz
Normal file
3
Data-Validate-IP-0.25.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b0386bb8aa31ed1b9b58760745eaab4d29edb0c7bdc7dc16dd5479d21f26ee3b
|
||||
size 34109
|
||||
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 3 09:55:36 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 0.25
|
||||
see /usr/share/doc/packages/perl-Data-Validate-IP/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 15 09:35:25 UTC 2014 - mlin@suse.com
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
#
|
||||
# spec file for package perl-Data-Validate-IP
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,60 +17,49 @@
|
||||
|
||||
|
||||
Name: perl-Data-Validate-IP
|
||||
Version: 0.24
|
||||
Version: 0.25
|
||||
Release: 0
|
||||
Summary: Ipv4 and ipv6 validation methods
|
||||
License: GPL-1.0+ or Artistic-1.0
|
||||
%define cpan_name Data-Validate-IP
|
||||
Summary: IPv4 and IPv6 validation methods
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Data-Validate-IP-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/Data-Validate-IP
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Net::Netmask)
|
||||
BuildRequires: perl(NetAddr::IP)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Requires)
|
||||
Requires: perl(Net::Netmask)
|
||||
Requires: perl(NetAddr::IP)
|
||||
%if 0%{?suse_version} >= 1120
|
||||
Url: http://search.cpan.org/dist/Data-Validate-IP/
|
||||
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(NetAddr::IP) >= 4
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
BuildRequires: perl(Test::Requires)
|
||||
Requires: perl(NetAddr::IP) >= 4
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module collects ip validation routines to make input validation, and
|
||||
untainting easier and more readable.
|
||||
All functions return an untainted value if the test passes, and undef if
|
||||
it fails. This means that you should always check for a defined status
|
||||
explicitly. Don't assume the return will be true. (e.g. is_username('0'))
|
||||
The value to test is always the first (and often only) argument.
|
||||
This module provides a number IP address validation subs that both validate
|
||||
and untaint their input. This includes both basic validation ('is_ipv4()'
|
||||
and 'is_ipv6()') and special cases like checking whether an address belongs
|
||||
to a specific network or whether an address is public or private
|
||||
(reserved).
|
||||
|
||||
%prep
|
||||
%setup -q -n "Data-Validate-IP-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?_smp_flags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README.md LICENSE
|
||||
%dir %{perl_vendorlib}/Data
|
||||
%dir %{perl_vendorlib}/Data/Validate
|
||||
%{perl_vendorlib}/Data/Validate/IP.pm
|
||||
%doc %{perl_man3dir}/Data::Validate::IP.%{perl_man3ext}%{ext_man}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes LICENSE README.md
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user