[perl-File-Copy-Recursive] Modernize spec
Petr Šabata
psabata at fedoraproject.org
Fri Aug 31 10:24:26 UTC 2012
commit 6e6c5f9309efa1fb575ada6865afc403dc370313
Author: Petr Šabata <contyk at redhat.com>
Date: Fri Aug 31 12:24:22 2012 +0200
Modernize spec
perl-File-Copy-Recursive.spec | 30 +++++++++++++-----------------
1 files 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 <contyk at redhat.com> - 0.38-13
+- Modernize spec, drop command macros, and fix dependencies
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.38-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list