diff --git a/perl-Perl-Critic.spec b/perl-Perl-Critic.spec index 92c9235..ad89fe0 100644 --- a/perl-Perl-Critic.spec +++ b/perl-Perl-Critic.spec @@ -7,7 +7,6 @@ Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Perl-Critic/ Source0: http://search.cpan.org/CPAN/authors/id/E/EL/ELLIOTJS/Perl-Critic-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) @@ -87,18 +86,17 @@ also create new Policy modules that suit your own tastes. %prep %setup -q -n Perl-Critic-%{version} - find . -type f -exec chmod -c -x {} + + %build %{__perl} Build.PL installdirs=vendor ./Build %install -rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 -%{_fixperms} $RPM_BUILD_ROOT/* +%{_fixperms} $RPM_BUILD_ROOT %check @@ -108,10 +106,6 @@ rm -rf $RPM_BUILD_ROOT ./Build test -%clean -rm -rf $RPM_BUILD_ROOT - - %files %defattr(-,root,root,-) %doc Changes LICENSE README TODO.pod examples/ extras/ tools/ @@ -150,6 +144,7 @@ rm -rf $RPM_BUILD_ROOT block; this was fixed by PPI 1.215 (CPAN RT#64132) - bump PPI version requirement to 1.215 - BR/R: perl(Pod::Parser) +- drop redundant (for modern rpm) BuildRoot tag and buildroot cleaning * Mon Mar 7 2011 Marcela Mašláňová - 1.113-1 - update to 1.113