Modernize spec.

This commit is contained in:
Ralf Corsépius 2016-01-31 06:06:10 +01:00
parent d4da05ed65
commit c1bd76a59c
1 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,12 @@
Name: perl-File-Copy-Recursive
Version: 0.38
Release: 20%{?dist}
Release: 21%{?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
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
@ -22,13 +22,11 @@ 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 NO_PACKLIST=1
make %{?_smp_mflags}
%install
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
@ -40,6 +38,9 @@ make test
%{_mandir}/man3/*
%changelog
* Sun Jan 31 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.38-21
- Modernize spec.
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild