|
|
|
@ -1,22 +1,40 @@
|
|
|
|
|
Name: perl-autobox
|
|
|
|
|
Version: 2.77
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 2.82
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Call methods on native types
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/autobox/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/C/CH/CHOCOLATE/autobox-%{version}.tar.gz
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
# Data::Dumper not used at tests
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(Scope::Guard) >= 0.20
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(XSLoader)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(blib)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%{?filter_setup:
|
|
|
|
|
%filter_from_requires /perl(autobox::universal)/d
|
|
|
|
|
%?perl_default_filter
|
|
|
|
|
}
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(autobox::universal\\)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(Scope::Guard) >= 0.20
|
|
|
|
|
# autobox::universal is hiden for PAUSE but documented for public use,
|
|
|
|
|
# CPAN RT#100717
|
|
|
|
|
Provides: perl(autobox::universal) = %{version}
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
# Remove under-specified dependencies
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Scope::Guard\\)$
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The autobox pragma allows methods to be called on integers, floats,
|
|
|
|
@ -27,15 +45,13 @@ blessed references.
|
|
|
|
|
%setup -q -n autobox-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -48,6 +64,9 @@ make test
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Dec 05 2014 Petr Pisar <ppisar@redhat.com> - 2.82-1
|
|
|
|
|
- 2.82 bump
|
|
|
|
|
|
|
|
|
|
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.77-7
|
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
|
|
|
|
|