Use Makefile.PL temporarily to work around Module::Build breakage.

epel9
Steven Pritchard 19 years ago
parent 4f0f6f72d5
commit 9b301fd8b7

@ -1,6 +1,6 @@
Name: perl-Test-Portability-Files Name: perl-Test-Portability-Files
Version: 0.05 Version: 0.05
Release: 1%{?dist} Release: 2%{?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,7 +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(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))
%description %description
@ -21,19 +21,24 @@ a distribution can select which tests to execute.
%setup -q -n Test-Portability-Files-%{version} %setup -q -n Test-Portability-Files-%{version}
%build %build
%{__perl} Build.PL installdirs=vendor #%{__perl} Build.PL installdirs=vendor
./Build %{__perl} Makefile.PL INSTALLDIRS=vendor
#./Build
make
%install %install
rm -rf $RPM_BUILD_ROOT 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
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \; find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/* chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
%check %check
./Build test #./Build test
make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -45,5 +50,8 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Fri May 12 2006 Steven Pritchard <steve@kspei.com> 0.05-2
- Use Makefile.PL temporarily to work around Module::Build breakage.
* Fri May 12 2006 Steven Pritchard <steve@kspei.com> 0.05-1 * Fri May 12 2006 Steven Pritchard <steve@kspei.com> 0.05-1
- Specfile autogenerated by cpanspec 1.66. - Specfile autogenerated by cpanspec 1.66.

Loading…
Cancel
Save