Files
perl-Data-Dump-Partial/perl-Data-Dump-Partial.spec

50 lines
1.3 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
Name: perl-Data-Dump-Partial
Version: 0.03
Release: 0
Summary: Dump data structure compactly and potentially partially
Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHARYANTO/Data-Dump-Partial-%{version}.tar.gz
URL: http://search.cpan.org/dist/Data-Dump-Partial
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
BuildRequires: perl(Data::Dump) >= 1.17
Requires: perl(Data::Dump) >= 1.17
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
Sometimes you want to dump a data structure, but need it to be short, more than
need it to be complete, for example when logging to log files or database.
%prep
%setup -q -n "Data-Dump-Partial-%{version}"
%build
%__perl ./Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes LICENSE README
%dir %{perl_vendorlib}/Data
%dir %{perl_vendorlib}/Data/Dump
%{perl_vendorlib}/Data/Dump/Partial.pm
%doc %{perl_man3dir}/Data::Dump::Partial.%{perl_man3ext}%{ext_man}