forked from pool/perl-Data-Visitor
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Visitor?expand=0&rev=3
68 lines
1.9 KiB
RPMSpec
68 lines
1.9 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Data-Visitor
|
|
Version: 0.27
|
|
Release: 0
|
|
Summary: Visitor style traversal of Perl data structures
|
|
Source: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Data-Visitor-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Data-Visitor/
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: make perl
|
|
BuildRequires: perl(Data::Alias)
|
|
BuildRequires: perl(Moose)
|
|
BuildRequires: perl(ok)
|
|
BuildRequires: perl(Tie::ToObject)
|
|
BuildRequires: perl(namespace::clean)
|
|
Requires: perl(Data::Alias)
|
|
Requires: perl(Moose)
|
|
Requires: perl(ok)
|
|
Requires: perl(Tie::ToObject)
|
|
Requires: perl(namespace::clean)
|
|
|
|
%description
|
|
This module is a simple visitor implementation for Perl values.
|
|
|
|
It has a main dispatcher method, visit, which takes a single perl value and
|
|
then calls the methods appropriate for that value.
|
|
|
|
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).
|
|
|
|
Data::Visitor is meant to be subclassed, but also ships with a callback driven
|
|
subclass, Data::Visitor::Callback.
|
|
|
|
%prep
|
|
%setup -q -n "Data-Visitor-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes
|
|
%dir %{perl_vendorlib}/Data
|
|
%{perl_vendorlib}/Data/Visitor
|
|
%{perl_vendorlib}/Data/Visitor.pm
|
|
%dir %{perl_vendorarch}/auto/Data
|
|
%{perl_vendorarch}/auto/Data/Visitor
|
|
%doc %{perl_man3dir}/Data::Visitor.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/Data::Visitor::*.%{perl_man3ext}%{ext_man}
|
|
|