perl-Data-Dumper/perl-Data-Dumper.spec

77 lines
2.1 KiB
RPMSpec
Raw Normal View History

%define mod_name Data-Dumper
Name: perl-%{mod_name}
2021-11-22 20:50:43 +08:00
Version: 2.183
Release: 2
2019-09-30 11:11:53 -04:00
Summary: Stringified perl data structures, suitable for both printing and eval
License: GPL+ or Artistic
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/%{mod_name}-%{version}.tar.gz
2019-09-30 11:11:53 -04:00
BuildRequires: make findutils perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More) >= 0.98
2021-06-29 10:09:14 +08:00
BuildRequires: perl-devel gcc
2019-09-30 11:11:53 -04:00
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 %{mod_name}-%{version} -p1
2019-09-30 11:11:53 -04:00
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 OPTIMIZE="%{optflags}"
%make_build
%install
%make_install
2019-12-25 16:01:27 +08:00
%{_fixperms} %{buildroot}/*
2019-09-30 11:11:53 -04:00
%check
make test
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%doc Changes
%{perl_vendorarch}/*
%files help
%defattr(-,root,root)
%doc Todo
%{_mandir}/*/*
%changelog
* Tue Oct 25 2022 zhoushuiqing <zhoushuiqing2@huawei.com> - 2.183-2
- define mod_name to opitomize the specfile
2021-11-22 20:50:43 +08:00
* Mon Nov 22 2021 shixuantong <shixuantong@huawei.com> - 2.183-1
- update version to 2.183
2022-06-15 16:01:57 +08:00
* Tue Jun 29 2021 wuchaochao <wuchaochao4@huawei.com> - 2.173-2
2021-06-29 10:09:14 +08:00
- add buildrequers gcc
2020-07-23 11:03:20 +08:00
* Thu Jul 23 2020 shixuantong <shixuantong@huawei.com> - 2.173-1
- update to 2.173-1
2020-05-13 16:49:05 +08:00
* Wed May 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.172-4
- Add build requires of perl-devel
2019-12-25 16:01:27 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.172-3
- Change mod of files
2019-09-30 11:11:53 -04:00
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.172-2
- Package init