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

86 lines
2.7 KiB
RPMSpec
Raw Normal View History

2012-12-12 13:05:42 +00:00
%global cpan_version 2.139
2012-04-13 13:46:42 +00:00
Name: perl-Data-Dumper
2012-10-05 09:06:11 +00:00
Version: %(echo '%{cpan_version}' | tr '_' '.')
Release: 2%{?dist}
2012-04-13 13:46:42 +00:00
Summary: Stringify perl data structures, suitable for printing and eval
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Data-Dumper/
2012-10-05 09:06:11 +00:00
Source0: http://www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-%{cpan_version}.tar.gz
2012-04-13 13:46:42 +00:00
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(XSLoader)
2012-08-27 07:17:57 +00:00
# perl-Test-Simple is in cycle with perl-Data-Dumper
%if !%{defined perl_bootstrap}
2012-04-13 13:46:42 +00:00
# Tests only:
BuildRequires: perl(Test::More) >= 0.60
# Optional tests:
BuildRequires: perl(Encode)
2012-08-27 07:17:57 +00:00
%endif
2012-04-13 13:46:42 +00:00
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Scalar::Util)
Requires: perl(XSLoader)
%{?perl_default_filter}
%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.
%prep
2012-10-05 09:06:11 +00:00
%setup -q -n Data-Dumper-%{cpan_version}
2012-04-13 13:46:42 +00:00
sed -i '/MAN3PODS/d' Makefile.PL
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
2012-08-27 07:17:57 +00:00
%if !%{defined perl_bootstrap}
2012-04-13 13:46:42 +00:00
make test
2012-08-27 07:17:57 +00:00
%endif
2012-04-13 13:46:42 +00:00
%files
%doc Changes Todo
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Data*
%{_mandir}/man3/*
%changelog
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.139-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-12-12 13:05:42 +00:00
* Wed Dec 12 2012 Petr Pisar <ppisar@redhat.com> - 2.139-1
- 2.139 bump
2012-10-05 09:06:11 +00:00
* Fri Oct 05 2012 Petr Pisar <ppisar@redhat.com> - 2.136-1
- 2.136 bump
2012-08-27 07:17:57 +00:00
* Fri Aug 24 2012 Petr Pisar <ppisar@redhat.com> - 2.135.07-241
- Disable tests on bootstrap
* Mon Aug 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 2.135.07-240
- update the version to override the module from perl.srpm
- bump release to override sub-package from perl.spec
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.131-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-06-06 21:12:16 +00:00
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.131-2
- Perl 5.16 rebuild
2012-04-13 13:46:42 +00:00
* Tue Apr 10 2012 Petr Pisar <ppisar@redhat.com> 2.131-1
- Specfile autogenerated by cpanspec 1.78.