[perl-Net-IP-Match-Regexp] Import version 1.01 (RHBZ #790215)

Ken Dreyer ktdreyer at fedoraproject.org
Thu Mar 22 17:56:28 UTC 2012


commit fd0ed8f12f2d3228cd0c0044875fbd1ecbd0df4c
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date:   Thu Mar 22 11:54:27 2012 -0600

    Import version 1.01 (RHBZ #790215)

 .gitignore                    |    1 +
 perl-Net-IP-Match-Regexp.spec |   54 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2bd13a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Net-IP-Match-Regexp-1.01.tar.gz
diff --git a/perl-Net-IP-Match-Regexp.spec b/perl-Net-IP-Match-Regexp.spec
new file mode 100644
index 0000000..058c6ab
--- /dev/null
+++ b/perl-Net-IP-Match-Regexp.spec
@@ -0,0 +1,54 @@
+Name:           perl-Net-IP-Match-Regexp
+Version:        1.01
+Release:        1%{?dist}
+Summary:        Efficiently match IP addresses against ranges
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Net-IP-Match-Regexp/
+Source0:        http://www.cpan.org/modules/by-module/Net/Net-IP-Match-Regexp-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module allows you to check an IP address against one or more IP
+ranges. It employs Perl's highly optimized regular expression engine to do
+the hard work, so it is very fast. It is optimized for speed by doing the
+match against a regexp which implicitly checks the broadest IP ranges
+first. An advantage is that the regexp can be computed and stored in
+advance (in source code, in a database table, etc) and reused, saving much
+time if the IP ranges don't change too often. The match can optionally
+report a value (e.g. a network name) instead of just a boolean, which makes
+module useful for mapping IP ranges to names or codes or anything else.
+
+%prep
+%setup -q -n Net-IP-Match-Regexp-%{version}
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Feb 13 2012 ktdreyer at ktdreyer.com 1.01-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..a7a6840 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5558a916d5d15884be949c9f7fc71a49  Net-IP-Match-Regexp-1.01.tar.gz


More information about the scm-commits mailing list