Package init
This commit is contained in:
commit
15a7e3e902
BIN
Data-Dumper-2.172.tar.gz
Normal file
BIN
Data-Dumper-2.172.tar.gz
Normal file
Binary file not shown.
55
perl-Data-Dumper.spec
Normal file
55
perl-Data-Dumper.spec
Normal file
@ -0,0 +1,55 @@
|
||||
Name: perl-Data-Dumper
|
||||
Version: 2.172
|
||||
Release: 2
|
||||
Summary: Stringified perl data structures, suitable for both printing and eval
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Data-Dumper
|
||||
Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Data-Dumper-%{version}.tar.gz
|
||||
|
||||
BuildRequires: make findutils perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) >= 0.98
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(B::Deparse) perl(bytes) perl(Scalar::Util) perl(XSLoader)
|
||||
|
||||
%description
|
||||
Given a list of scalars or reference variables, writes out their contents in perl syntax.
|
||||
The references can also be objects. The content of each variable is output in a single Perl statement.
|
||||
Handles self-referential structures correctly.
|
||||
The return value can be evaled to get back an identical copy of the original reference structure.
|
||||
(Please do consider the security implications of eval'ing code from untrusted sources!)
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n Data-Dumper-%{version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 OPTIMIZE="%{optflags}"
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%pre
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%postun
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes
|
||||
%{perl_vendorarch}/*
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc Todo
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.172-2
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user