Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-A
perl-Algorithm-Interval2Prefix
perl-Algorithm-Interval2Prefix.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Algorithm-Interval2Prefix.spec of Package perl-Algorithm-Interval2Prefix
# # spec file for package perl-Algorithm-Interval2Prefix # # 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 # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Algorithm-Interval2Prefix Version: 0.02 Release: 0 %define cpan_name Algorithm-Interval2Prefix Summary: Generate prefixes from intervals License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Algorithm-Interval2Prefix/ Source0: http://www.cpan.org/authors/id/L/LT/LTHEGLER/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Pod) Requires: perl(Test::Pod) %{perl_requires} %description Taking an interval as input, this module will construct the smallest set of prefixes, such that all numbers in the interval will match exactly one of the prefixes, and no prefix will match a number not in the interval. E.g. all numbers in the interval 39967000 to 39980999 would be matched by the following set of prefixes: 39967 39968 39969 3997 39980 This type of conversion is particularly useful when working with telephony switching equipment, which usually determines call routing based on number prefixes rather than ranges. Note that the numbers in the interval must be of the same length for the result to make sense. The algorithm is much dependent on the number base, which defaults to 10. Other number bases can be specified explicitly. An additional function is provided, that will generate a regular expression string matching *only* those numbers in the interval. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor