Projects
home:Eustace:branches:Eulaceura:Factory
perl-Net-IP-Match-Regexp
_service:obs_scm:perl-Net-IP-Match-Regexp.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-Net-IP-Match-Regexp.spec of Package perl-Net-IP-Match-Regexp
%global _empty_manifest_terminate_build 0 Name: perl-Net-IP-Match-Regexp Version: 1.01 Release: 1 Summary: Efficiently match IP addresses against ranges License: GPL-1.0-only or Artistic-1.0-Perl Group: Development/Libraries URL: http://search.cpan.org/dist/Net-IP-Match-Regexp/ Source0: http://www.cpan.org/authors/id/C/CD/CDOLAN/Net-IP-Match-Regexp-%{version}.tar.gz BuildArch: noarch BuildRequires: perl >= 1:5.6.0 BuildRequires: perl-generators BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) %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. %package help Summary : Efficiently match IP addresses against ranges Provides: perl-Net-IP-Match-Regexp-doc %description help 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 export PERL_MM_OPT="" %{__perl} Build.PL --installdirs=vendor ./Build %install export PERL_MM_OPT="" 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/* pushd %{buildroot} touch filelist.lst if [ -d usr/bin ];then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ];then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ];then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib ];then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi popd mv %{buildroot}/filelist.lst . %check || : ./Build test %clean rm -rf $RPM_BUILD_ROOT %files -f filelist.lst %defattr(-,root,root,-) %doc CHANGES LICENSE README %{perl_vendorlib}/* %files help %{_mandir}/* %changelog * Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 1.01-1 - Specfile autogenerated by Perl_Bot
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2