Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
perl-PPIx-Regexp
perl-PPIx-Regexp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-PPIx-Regexp.spec of Package perl-PPIx-Regexp
# # spec file for package perl-PPIx-Regexp # # Copyright (c) 2012 SUSE LINUX Products 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-PPIx-Regexp Version: 0.026 Release: 0 %define cpan_name PPIx-Regexp Summary: Represent a regular expression of some sort License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/PPIx-Regexp/ Source: http://www.cpan.org/authors/id/W/WY/WYANT/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Module::Build) BuildRequires: perl(PPI::Document) >= 1.117 BuildRequires: perl(Task::Weaken) BuildRequires: perl(Test::More) >= 0.88 #BuildRequires: perl(PPIx::Regexp) #BuildRequires: perl(PPIx::Regexp::Build) #BuildRequires: perl(PPIx::Regexp::Constant) #BuildRequires: perl(PPIx::Regexp::Dumper) #BuildRequires: perl(PPIx::Regexp::Element) #BuildRequires: perl(PPIx::Regexp::Lexer) #BuildRequires: perl(PPIx::Regexp::Meta) #BuildRequires: perl(PPIx::Regexp::Node) #BuildRequires: perl(PPIx::Regexp::Node::Range) #BuildRequires: perl(PPIx::Regexp::Structure) #BuildRequires: perl(PPIx::Regexp::Structure::Assertion) #BuildRequires: perl(PPIx::Regexp::Structure::BranchReset) #BuildRequires: perl(PPIx::Regexp::Structure::Capture) #BuildRequires: perl(PPIx::Regexp::Structure::CharClass) #BuildRequires: perl(PPIx::Regexp::Structure::Code) #BuildRequires: perl(PPIx::Regexp::Structure::Main) #BuildRequires: perl(PPIx::Regexp::Structure::Modifier) #BuildRequires: perl(PPIx::Regexp::Structure::NamedCapture) #BuildRequires: perl(PPIx::Regexp::Structure::Quantifier) #BuildRequires: perl(PPIx::Regexp::Structure::Regexp) #BuildRequires: perl(PPIx::Regexp::Structure::Replacement) #BuildRequires: perl(PPIx::Regexp::Structure::Subexpression) #BuildRequires: perl(PPIx::Regexp::Structure::Switch) #BuildRequires: perl(PPIx::Regexp::Structure::Unknown) #BuildRequires: perl(PPIx::Regexp::Support) #BuildRequires: perl(PPIx::Regexp::Test) #BuildRequires: perl(PPIx::Regexp::Token) #BuildRequires: perl(PPIx::Regexp::Token::Assertion) #BuildRequires: perl(PPIx::Regexp::Token::Backreference) #BuildRequires: perl(PPIx::Regexp::Token::Backtrack) #BuildRequires: perl(PPIx::Regexp::Token::CharClass) #BuildRequires: perl(PPIx::Regexp::Token::CharClass::POSIX) #BuildRequires: perl(PPIx::Regexp::Token::CharClass::POSIX::Unknown) #BuildRequires: perl(PPIx::Regexp::Token::CharClass::Simple) #BuildRequires: perl(PPIx::Regexp::Token::Code) #BuildRequires: perl(PPIx::Regexp::Token::Comment) #BuildRequires: perl(PPIx::Regexp::Token::Condition) #BuildRequires: perl(PPIx::Regexp::Token::Control) #BuildRequires: perl(PPIx::Regexp::Token::Delimiter) #BuildRequires: perl(PPIx::Regexp::Token::Greediness) #BuildRequires: perl(PPIx::Regexp::Token::GroupType) #BuildRequires: perl(PPIx::Regexp::Token::GroupType::Assertion) #BuildRequires: perl(PPIx::Regexp::Token::GroupType::BranchReset) #BuildRequires: perl(PPIx::Regexp::Token::GroupType::Code) #BuildRequires: perl(PPIx::Regexp::Token::GroupType::Modifier) #BuildRequires: perl(PPIx::Regexp::Token::GroupType::NamedCapture) #BuildRequires: perl(PPIx::Regexp::Token::GroupType::Subexpression) #BuildRequires: perl(PPIx::Regexp::Token::GroupType::Switch) #BuildRequires: perl(PPIx::Regexp::Token::Interpolation) #BuildRequires: perl(PPIx::Regexp::Tokenizer) #BuildRequires: perl(PPIx::Regexp::Token::Literal) #BuildRequires: perl(PPIx::Regexp::Token::Modifier) #BuildRequires: perl(PPIx::Regexp::Token::Operator) #BuildRequires: perl(PPIx::Regexp::Token::Quantifier) #BuildRequires: perl(PPIx::Regexp::Token::Recursion) #BuildRequires: perl(PPIx::Regexp::Token::Reference) #BuildRequires: perl(PPIx::Regexp::Token::Structure) #BuildRequires: perl(PPIx::Regexp::Token::Unknown) #BuildRequires: perl(PPIx::Regexp::Token::Unmatched) #BuildRequires: perl(PPIx::Regexp::Token::Whitespace) #BuildRequires: perl(PPIx::Regexp::Util) #BuildRequires: perl(Test::CPAN::Changes) #BuildRequires: perl(Test::Kwalitee) #BuildRequires: perl(Test::Perl::Critic) #BuildRequires: perl(Test::Pod) #BuildRequires: perl(Test::Pod::Coverage) #BuildRequires: perl(Test::Spelling) #BuildRequires: perl(Text::CSV) #BuildRequires: perl(YAML::Any) Requires: perl(List::MoreUtils) Requires: perl(PPI::Document) >= 1.117 Requires: perl(Task::Weaken) %{perl_requires} %description The purpose of the _PPIx-Regexp_ package is to parse regular expressions in a manner similar to the way the PPI package parses Perl. This class forms the root of the parse tree, playing a role similar to PPI::Document. This package shares with PPI the property of being round-trip safe. That is, my $expr = 's/ ( \d+ ) ( \D+ ) /$2$1/smxg'; my $re = PPIx::Regexp->new( $expr ); print $re->content() eq $expr ? "yes\n" : "no\n" should print 'yes' for any valid regular expression. Navigation is similar to that provided by PPI. That is to say, things like 'children', 'find_first', 'snext_sibling' and so on all work pretty much the same way as in PPI. The class hierarchy is also similar to PPI. Except for some utility classes (the dumper, the lexer, and the tokenizer) all classes are descended from PPIx::Regexp::Element, which provides basic navigation. Tokens are descended from PPIx::Regexp::Token, which provides content. All containers are descended from PPIx::Regexp::Node, which provides for children, and all structure elements are descended from PPIx::Regexp::Structure, which provides beginning and ending delimiters, and a type. There are two features of PPI that this package does not provide - mutability and operator overloading. There are no plans for serious mutability, though something like PPI's 'prune' functionality might be considered. Similarly there are no plans for operator overloading, which appears to the author to represent a performance hit for little tangible gain. %prep %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %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 eg LICENSES README xt %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