Modernize spec
This commit is contained in:
parent
25ffdac8b4
commit
6e6c5f9309
@ -1,20 +1,18 @@
|
|||||||
Name: perl-File-Copy-Recursive
|
Name: perl-File-Copy-Recursive
|
||||||
Version: 0.38
|
Version: 0.38
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
Summary: Extension for recursively copying files and directories
|
Summary: Extension for recursively copying files and directories
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/File-Copy-Recursive/
|
URL: http://search.cpan.org/dist/File-Copy-Recursive/
|
||||||
Source0: http://www.cpan.org/modules/by-module/File/File-Copy-Recursive-%{version}.tar.gz
|
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
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Exporter)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
BuildRequires: perl(File::Copy)
|
|
||||||
BuildRequires: perl(File::Spec)
|
BuildRequires: perl(File::Spec)
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module copies and moves directories recursively to an optional depth and
|
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}
|
%setup -q -n File-Copy-Recursive-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
chmod -R u+w %{buildroot}/*
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
%{perl_vendorlib}/File
|
%{perl_vendorlib}/File
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 31 2012 Petr Šabata <contyk@redhat.com> - 0.38-13
|
||||||
|
- Modernize spec, drop command macros, and fix dependencies
|
||||||
|
|
||||||
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-12
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-12
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user