2011-07-14 11:19:20 +00:00
|
|
|
#
|
2011-07-19 13:27:18 +00:00
|
|
|
# spec file for package perl-Data-Visitor
|
2011-07-14 11:19:20 +00:00
|
|
|
#
|
2013-07-18 16:04:30 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-07-14 11:19:20 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2010-07-24 23:39:29 +00:00
|
|
|
|
2011-07-19 13:27:18 +00:00
|
|
|
|
2010-07-24 23:39:29 +00:00
|
|
|
Name: perl-Data-Visitor
|
2013-07-18 16:04:30 +00:00
|
|
|
Version: 0.30
|
2012-02-27 09:03:39 +00:00
|
|
|
Release: 0
|
2011-07-14 11:19:20 +00:00
|
|
|
%define cpan_name Data-Visitor
|
2010-07-24 23:39:29 +00:00
|
|
|
Summary: Visitor style traversal of Perl data structures
|
2012-02-27 09:03:39 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-07-24 23:39:29 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2012-02-27 09:03:39 +00:00
|
|
|
Url: http://search.cpan.org/dist/Data-Visitor/
|
|
|
|
Source: http://www.cpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz
|
2011-07-14 11:19:20 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:01:10 +00:00
|
|
|
BuildRequires: perl-macros
|
2012-02-27 09:03:39 +00:00
|
|
|
BuildRequires: perl(Class::Load) >= 0.06
|
2011-07-14 11:19:20 +00:00
|
|
|
BuildRequires: perl(Moose) >= 0.89
|
|
|
|
BuildRequires: perl(Task::Weaken)
|
2012-02-27 09:03:39 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(Test::Requires)
|
2011-07-14 11:19:20 +00:00
|
|
|
BuildRequires: perl(Tie::ToObject) >= 0.01
|
2012-02-27 09:03:39 +00:00
|
|
|
BuildRequires: perl(namespace::clean) >= 0.19
|
|
|
|
#BuildRequires: perl(Data::Visitor)
|
|
|
|
#BuildRequires: perl(Data::Visitor::Callback)
|
|
|
|
#BuildRequires: perl(Sub::Name)
|
|
|
|
Requires: perl(Class::Load) >= 0.06
|
2011-07-14 11:19:20 +00:00
|
|
|
Requires: perl(Moose) >= 0.89
|
|
|
|
Requires: perl(Task::Weaken)
|
|
|
|
Requires: perl(Tie::ToObject) >= 0.01
|
2012-02-27 09:03:39 +00:00
|
|
|
Requires: perl(namespace::clean) >= 0.19
|
2011-07-14 11:19:20 +00:00
|
|
|
%{perl_requires}
|
2010-07-24 23:39:29 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module is a simple visitor implementation for Perl values.
|
|
|
|
|
2011-07-14 11:19:20 +00:00
|
|
|
It has a main dispatcher method, 'visit', which takes a single perl value
|
|
|
|
and then calls the methods appropriate for that value.
|
2010-07-24 23:39:29 +00:00
|
|
|
|
2011-07-14 11:19:20 +00:00
|
|
|
It can recursively map (cloning as necessary) or just traverse most
|
|
|
|
structures, with support for per object behavior, circular structures,
|
|
|
|
visiting tied structures, and all ref types (hashes, arrays, scalars, code,
|
|
|
|
globs).
|
2010-07-24 23:39:29 +00:00
|
|
|
|
2011-07-14 11:19:20 +00:00
|
|
|
the Data::Visitor manpage is meant to be subclassed, but also ships with a
|
|
|
|
callback driven subclass, the Data::Visitor::Callback manpage.
|
2010-07-24 23:39:29 +00:00
|
|
|
|
|
|
|
%prep
|
2011-07-14 11:19:20 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-07-24 23:39:29 +00:00
|
|
|
|
|
|
|
%build
|
2011-07-14 11:19:20 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2010-07-24 23:39:29 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-07-14 11:19:20 +00:00
|
|
|
%perl_gen_filelist
|
2010-07-24 23:39:29 +00:00
|
|
|
|
2011-07-14 11:19:20 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2012-02-27 09:03:39 +00:00
|
|
|
%doc Changes LICENSE README
|
2010-07-24 23:39:29 +00:00
|
|
|
|
2011-07-14 11:19:20 +00:00
|
|
|
%changelog
|