diff --git a/perl-Class-Prototyped.spec b/perl-Class-Prototyped.spec index 61e6b21..58604be 100644 --- a/perl-Class-Prototyped.spec +++ b/perl-Class-Prototyped.spec @@ -6,12 +6,23 @@ License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Class-Prototyped/ Source0: http://www.cpan.org/authors/id/T/TE/TEVERETT/Class-Prototyped-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +BuildRequires: perl BuildRequires: perl(Module::Build) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Run-time: +BuildRequires: perl(Carp) +# GraphViz not used for tests +# IO::File not used for tests +BuildRequires: perl(strict) +# Tests: +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(IO::File) +BuildRequires: perl(Test) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} +%global __provides_exclude %{?__provides_exclude?__provides_exclude|}^perl\\(My[^\\)]*Class\\)$ +%global __requires_exclude %{?__requires_exclude?__requires_exclude|}^perl\\(Class::Prototyped::Graph\\)$ %description This package provides for efficient and simple prototype-based programming @@ -20,44 +31,23 @@ have objects inherit their behavior and state from another object. %prep %setup -q -n Class-Prototyped-%{version} - -# RPM 4.8 style -%{?filter_setup: -%filter_from_provides /^perl(My[^)]*Class)$/g -%filter_from_requires /^perl(Class::Prototyped::Graph)$/g -%filter_requires_in %{_docdir}/examples -%filter_setup -} -# RPM 4.9 style -%global __provides_exclude %{?__provides_exclude?__provides_exclude|}^perl\\(My[^\\)]*Class\\)$ -%global __requires_exclude %{?__requires_exclude?__requires_exclude|}^perl\\(Class::Prototyped::Graph\\)$ -%global __requires_exclude_from %{?__requires_exclude_from?__requires_exclude_from|}%{_docdir}/examples - # Documentation and libraries should not be executable chmod -x perf/* examples/* Changes lib/Class/*.pm lib/Class/Prototyped/* %build -%{__perl} Build.PL installdirs=vendor +perl Build.PL installdirs=vendor ./Build %install -rm -rf %{buildroot} - ./Build install destdir=%{buildroot} create_packlist=0 -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; - %{_fixperms} %{buildroot}/* %check # PERL_PERTURB_KEYS=0 to work around hash randomization, CPAN RT#84317 PERL_PERTURB_KEYS=0 ./Build test -%clean -rm -rf %{buildroot} - %files -%defattr(-,root,root,-) %doc Changes README perf/ examples/ %{perl_vendorlib}/* %{_mandir}/man3/* @@ -66,6 +56,7 @@ rm -rf %{buildroot} * Wed Jul 17 2013 Petr Pisar - 1.11-16 - Perl 5.18 rebuild - Work around hash randomization (CPAN RT#84317) +- Modernize spec file * Thu Feb 14 2013 Fedora Release Engineering - 1.11-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild