forked from pool/perl-Data-Validate-IP
0.14
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Validate-IP?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
Data-Validate-IP-0.14.tar.gz
Normal file
3
Data-Validate-IP-0.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:992b5940df192ff0c7faf9a7a865494861086a4b85596c986a85284aa8449374
|
||||
size 8333
|
5
perl-Data-Validate-IP.changes
Normal file
5
perl-Data-Validate-IP.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 23 08:33:57 CET 2011 - pascal.bleser@opensuse.org
|
||||
|
||||
- initial version (0.14)
|
||||
|
56
perl-Data-Validate-IP.spec
Normal file
56
perl-Data-Validate-IP.spec
Normal file
@@ -0,0 +1,56 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
|
||||
Name: perl-Data-Validate-IP
|
||||
Version: 0.14
|
||||
Release: 0
|
||||
Summary: Ipv4 and ipv6 validation methods
|
||||
Source: http://search.cpan.org/CPAN/authors/id/N/NE/NEELY/Data-Validate-IP-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/Data-Validate-IP
|
||||
Group: Development/Libraries/Perl
|
||||
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
%{perl_requires}
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: make
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Net::Netmask)
|
||||
Requires: perl(Net::Netmask)
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%setup -q -n "Data-Validate-IP-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?_smp_flags}
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%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}
|
||||
|
Reference in New Issue
Block a user