Use fixperms macro instead of our own chmod incantation. BR

ExtUtils::MakeMaker.
epel9
Steven Pritchard 18 years ago
parent baa543f798
commit 041b18815c

@ -1,6 +1,6 @@
Name: perl-Test-Portability-Files Name: perl-Test-Portability-Files
Version: 0.05 Version: 0.05
Release: 3%{?dist} Release: 4%{?dist}
Summary: Check file names portability Summary: Check file names portability
License: GPL or Artistic License: GPL or Artistic
Group: Development/Libraries Group: Development/Libraries
@ -8,6 +8,7 @@ URL: http://search.cpan.org/dist/Test-Portability-Files/
Source0: http://www.cpan.org/authors/id/S/SA/SAPER/Test-Portability-Files-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/S/SA/SAPER/Test-Portability-Files-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
#BuildRequires: perl(Module::Build) #BuildRequires: perl(Module::Build)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -31,10 +32,11 @@ rm -rf $RPM_BUILD_ROOT
#./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 #./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
make install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check
#./Build test #./Build test
@ -50,6 +52,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed Apr 18 2007 Steven Pritchard <steve@kspei.com> 0.05-4
- Use fixperms macro instead of our own chmod incantation.
- BR ExtUtils::MakeMaker.
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.05-3 * Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 0.05-3
- Fix find option order. - Fix find option order.

Loading…
Cancel
Save