From 6e6c5f9309efa1fb575ada6865afc403dc370313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Fri, 31 Aug 2012 12:24:22 +0200 Subject: [PATCH] Modernize spec --- perl-File-Copy-Recursive.spec | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/perl-File-Copy-Recursive.spec b/perl-File-Copy-Recursive.spec index ef641cc..1869a0c 100644 --- a/perl-File-Copy-Recursive.spec +++ b/perl-File-Copy-Recursive.spec @@ -1,20 +1,18 @@ Name: perl-File-Copy-Recursive Version: 0.38 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Extension for recursively copying files and directories License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/File-Copy-Recursive/ Source0: http://www.cpan.org/modules/by-module/File/File-Copy-Recursive-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) BuildArch: noarch - -BuildRequires: perl(Test::More) +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Copy) BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::More) %description This module copies and moves directories recursively to an optional depth and @@ -24,29 +22,27 @@ attempts to preserve each file or directory's mode. %setup -q -n File-Copy-Recursive-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -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 d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - -%clean -rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* %check make test %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/File %{_mandir}/man3/* %changelog +* Fri Aug 31 2012 Petr Ĺ abata - 0.38-13 +- Modernize spec, drop command macros, and fix dependencies + * Fri Jul 20 2012 Fedora Release Engineering - 0.38-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild