Blame SPECS/perl-Data-Dumper.spec

44cc14
%{?scl:%scl_package perl-Data-Dumper}
44cc14
%{!?scl:%global pkg_name %{name}}
44cc14
44cc14
%global cpan_version 2.145
44cc14
Name:           %{?scl_prefix}perl-Data-Dumper
44cc14
Version:        %(echo '%{cpan_version}' | tr '_' '.')
44cc14
Release:        5%{?dist}
44cc14
Summary:        Stringify perl data structures, suitable for printing and eval
44cc14
License:        GPL+ or Artistic
44cc14
Group:          Development/Libraries
44cc14
URL:            http://search.cpan.org/dist/Data-Dumper/
44cc14
Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-%{cpan_version}.tar.gz
44cc14
BuildRequires:  %{?scl_prefix}perl
44cc14
BuildRequires:  %{?scl_prefix}perl(ExtUtils::MakeMaker)
44cc14
# Run-time:
44cc14
BuildRequires:  %{?scl_prefix}perl(B::Deparse)
44cc14
BuildRequires:  %{?scl_prefix}perl(bytes)
44cc14
BuildRequires:  %{?scl_prefix}perl(Carp)
44cc14
BuildRequires:  %{?scl_prefix}perl(constant)
44cc14
BuildRequires:  %{?scl_prefix}perl(Exporter)
44cc14
BuildRequires:  %{?scl_prefix}perl(Scalar::Util)
44cc14
BuildRequires:  %{?scl_prefix}perl(overload)
44cc14
BuildRequires:  %{?scl_prefix}perl(XSLoader)
44cc14
# perl-Test-Simple is in cycle with perl-Data-Dumper
44cc14
%if !%{defined perl_bootstrap}
44cc14
# Tests only:
44cc14
BuildRequires:  %{?scl_prefix}perl(Config)
44cc14
BuildRequires:  %{?scl_prefix}perl(lib)
44cc14
BuildRequires:  %{?scl_prefix}perl(strict)
44cc14
BuildRequires:  %{?scl_prefix}perl(Test::More) >= 0.98
44cc14
# Optional tests:
44cc14
BuildRequires:  %{?scl_prefix}perl(Encode)
44cc14
%endif
44cc14
%{?scl:%global perl_version %(scl enable %{scl} 'eval "`perl -V:version`"; echo $version')}
44cc14
%{!?scl:%global perl_version %(eval "`perl -V:version`"; echo $version)}
44cc14
Requires:       %{?scl_prefix}perl(:MODULE_COMPAT_%{perl_version})
44cc14
Requires:       %{?scl_prefix}perl(B::Deparse)
44cc14
Requires:       %{?scl_prefix}perl(bytes)
44cc14
Requires:       %{?scl_prefix}perl(Scalar::Util)
44cc14
Requires:       %{?scl_prefix}perl(XSLoader)
44cc14
44cc14
%{?perl_default_filter}
44cc14
44cc14
%description
44cc14
Given a list of scalars or reference variables, writes out their contents
44cc14
in perl syntax. The references can also be objects. The content of each
44cc14
variable is output in a single Perl statement. Handles self-referential
44cc14
structures correctly.
44cc14
44cc14
%prep
44cc14
%setup -q -n Data-Dumper-%{cpan_version}
44cc14
sed -i '/MAN3PODS/d' Makefile.PL
44cc14
44cc14
%build
44cc14
%{?scl:scl enable %{scl} '}
44cc14
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
44cc14
%{?scl:'}
44cc14
%{?scl:scl enable %{scl} "}
44cc14
make %{?_smp_mflags}
44cc14
%{?scl:"}
44cc14
44cc14
%install
44cc14
%{?scl:scl enable %{scl} "}
44cc14
make pure_install DESTDIR=$RPM_BUILD_ROOT
44cc14
%{?scl:"}
44cc14
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
44cc14
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
44cc14
%{_fixperms} $RPM_BUILD_ROOT/*
44cc14
44cc14
%check
44cc14
%if !%{defined perl_bootstrap}
44cc14
%{?scl:scl enable %{scl} "}
44cc14
make test
44cc14
%{?scl:"}
44cc14
%endif
44cc14
44cc14
%files
44cc14
%doc Changes Todo
44cc14
%{perl_vendorarch}/auto/*
44cc14
%{perl_vendorarch}/Data*
44cc14
%{_mandir}/man3/*
44cc14
44cc14
%changelog
44cc14
* Tue Feb 11 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.145-5
44cc14
- Fixed rpmlint error
44cc14
- Resolves: rhbz#1063206
44cc14
44cc14
* Mon Nov 25 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.145-4
44cc14
- Re-rebuild of bootstrapped packages
44cc14
44cc14
* Tue Nov 12 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.145-3
44cc14
- Update condition for filtering
44cc14
44cc14
* Tue Jun 18 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.145-2
44cc14
- Rebuild with disabled perl_bootstrap macro
44cc14
44cc14
* Mon May 20 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.145-1
44cc14
- 2.145 bump
44cc14
44cc14
* Fri Feb  8 2013 Jitka Plesnikova <jplesnik@redhat.com> - 2.139-1
44cc14
- Stack package - initial release